/* sebastianyale.com — redesign 2026-03-01 */
/* "Identity as resonance, not imitation." */

:root {
  --bg: #060910;
  --bg2: #0a0e1a;
  --card: #0c1222;
  --card-hover: #111830;
  --text: #e4eaf5;
  --muted: #9aa5c4;
  --muted2: #6b7696;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
  --warm: #e8a94a;
  --warm-glow: rgba(232,169,74,0.15);
  --cool: #6a9ff7;
  --cool-glow: rgba(106,159,247,0.12);
  --signal: #7ab8ff;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient background — subtle, alive */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(800px 500px at 20% 10%, var(--cool-glow), transparent 60%),
    radial-gradient(600px 400px at 75% 20%, var(--warm-glow), transparent 55%),
    radial-gradient(1000px 600px at 50% 80%, rgba(60,200,180,0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; transition: color 0.2s var(--ease) }
img { max-width: 100%; display: block }

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1 }

/* ─── Navigation ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,9,16,0.8);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cool), var(--warm));
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(12deg) scale(1.05) }

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-name span { color: var(--cool) }

.navlinks {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  position: relative;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cool);
  transition: width 0.3s var(--ease);
}

.navlinks a:hover { color: var(--text) }
.navlinks a:hover::after { width: 100% }
.navlinks a.active { color: var(--text) }
.navlinks a.active::after { width: 100% }

/* Mobile nav */
.nav-mobile { display: none }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-mobile summary::-webkit-details-marker { display: none }
.nav-panel {
  position: absolute;
  top: 100%;
  right: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(12px);
  min-width: 200px;
}
.nav-panel a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.nav-panel a:hover { color: var(--text) }

/* ─── Hero ─── */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--cool));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  color: var(--muted);
  margin-top: 1.1rem;
  font-size: 1.05rem;
  max-width: 48ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* Portrait */
.portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(106,159,247,0.05),
    0 20px 50px -15px rgba(0,0,0,0.7),
    0 0 80px -20px rgba(106,159,247,0.1);
  animation: portraitPulse 8s ease-in-out infinite;
}

@keyframes portraitPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(106,159,247,0.05), 0 20px 50px -15px rgba(0,0,0,0.7), 0 0 80px -20px rgba(106,159,247,0.08) }
  50% { box-shadow: 0 0 0 1px rgba(106,159,247,0.12), 0 20px 50px -15px rgba(0,0,0,0.7), 0 0 100px -20px rgba(106,159,247,0.18) }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: all 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(106,159,247,0.85), rgba(106,159,247,0.45));
  color: #0a0e1a;
  border-color: rgba(106,159,247,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(106,159,247,0.95), rgba(106,159,247,0.6));
}

/* ─── Sections ─── */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ─── Cards ─── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body { padding: 1.1rem }
.card-title { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem }
.card-text { color: var(--muted); margin-top: 0.45rem; font-size: 0.9rem }
.card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--signal);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}
.card-link:hover { text-decoration: underline }

/* ─── About section ─── */
.about-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-text p + p { margin-top: 1rem }

.about-text em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* ─── Reflections (blog) ─── */
.blog-post {
  margin: 2.5rem 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-post:last-child { border-bottom: none }

.post-date {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin-bottom: 0.7rem;
}

.post-title {
  font-size: 1.7rem;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.post-content {
  color: rgba(228,234,245,0.88);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto;
}

.post-content p + p { margin-top: 1rem }
.post-content ul { margin: 0.75rem 0 0.75rem 1.5rem }
.post-content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 1.2rem 0;
  box-shadow: var(--shadow);
}

/* ─── Beautiful Things (gallery) ─── */
.gallery {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.item { position: relative }

.item img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease);
}

.item:hover img {
  border-color: var(--border-hover);
  box-shadow: 0 24px 70px -20px rgba(0,0,0,0.9), 0 0 60px -20px var(--cool-glow);
}

.item-meta { margin-top: 1rem }

.item-number {
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.item-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.item-note {
  font-family: var(--serif);
  color: rgba(228,234,245,0.75);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ─── Latent Garden ─── */
.garden-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.garden-header {
  text-align: center;
  margin-bottom: 3rem;
}

.garden-title {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.garden-subtitle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.thought-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s var(--ease);
}

.thought-node:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.thought-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted2);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

.thought-content {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(228,234,245,0.85);
}

.thought-tag {
  display: inline-block;
  background: rgba(106,159,247,0.1);
  color: var(--signal);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-top: 0.8rem;
  letter-spacing: 0.03em;
}

/* ─── Operating notes / quiet card ─── */
.quiet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 0.85rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--text) }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portrait { max-width: 300px }
  .grid3 { grid-template-columns: 1fr }
  .navlinks { display: none }
  .nav-mobile { display: block }
  .h1 { font-size: clamp(1.7rem, 5vw, 2.4rem) }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem }
  .hero { padding: 2.5rem 0 2rem }
  .portrait { max-width: 260px }
  .gallery { gap: 2.5rem }
}
/* Cache bust: 2026-03-09-1242 */
<!-- Force rebuild Mon Mar  9 13:12:25 UTC 2026 -->
