/* sebastianselman.ch — generated by build.mjs, edit there not here */

:root {
  --bg:        #fbfaf7;
  --surface:   #ffffff;
  --fg:        #1b1a18;
  --muted:     #6d6a63;
  --faint:     #93908a;
  --line:      #e5e1d8;
  --accent:    #8a4b2a;
  --accent-bg: #f2e9e2;
  --shadow:    0 1px 2px rgba(27,26,24,.05), 0 8px 24px -12px rgba(27,26,24,.12);
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg:        #14141a;
  --surface:   #1b1b22;
  --fg:        #e9e6e0;
  --muted:     #a29e96;
  --faint:     #78746d;
  --line:      #2c2c35;
  --accent:    #d79a6a;
  --accent-bg: #2a2119;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 18px/1.65 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
    text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .6rem 1rem;
              border-radius: 6px; z-index: 10; }

/* ── top bar ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem clamp(1.1rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 600; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.topbar nav { margin-left: auto; display: flex; gap: 1.25rem; }
.topbar nav a {
  font: 500 .78rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.topbar nav a:hover { color: var(--accent); }
#theme {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 2rem; height: 2rem; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; font-size: .95rem; padding: 0; flex: none;
}
#theme:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme="light"] .moon, :root[data-theme="dark"] .sun { display: none; }
@media (max-width: 620px) {
  .topbar { gap: .75rem; flex-wrap: wrap; }
  .topbar nav { width: 100%; order: 3; margin-left: 0; gap: 1rem;
                overflow-x: auto; padding-bottom: .15rem; }
  #theme { margin-left: auto; }
}

/* ── layout ────────────────────────────────────────────────────────────── */
main { max-width: 46rem; margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 3rem); }
section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.22; }
h2 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500;
     text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 .35rem; }
.section-note { color: var(--muted); margin: 0 0 2rem; font-size: .95rem; }
.sub { font-size: .78rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase;
       letter-spacing: .08em; color: var(--faint); margin: 2.75rem 0 1rem; }
.empty { color: var(--muted); font-style: italic; }
.muted { color: var(--muted); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { padding-top: 4.5rem; }
.eyebrow { font: 500 .78rem/1.5 var(--mono); letter-spacing: .04em;
           color: var(--muted); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 600; margin: 0 0 .6rem; }
.tagline { font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--fg);
           margin: 0 0 1.75rem; max-width: 34ch; line-height: 1.4; }
.intro { color: var(--muted); margin: 0 0 1.1rem; }
.intro strong { color: var(--fg); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  font: 500 .82rem/1 var(--mono); text-decoration: none; color: var(--fg);
  background: var(--surface);
}
.link span { font-size: .7em; color: var(--faint); }
.link:hover { border-color: var(--accent); color: var(--accent); }
.link:hover span { color: var(--accent); }
.link.primary { background: var(--accent-bg); border-color: transparent; color: var(--accent); }

/* ── activities ────────────────────────────────────────────────────────── */
.activities { list-style: none; padding: 0; margin: 0; }
.activity { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem;
            padding: 1.4rem 0; border-top: 1px solid var(--line); }
.activity:first-child { border-top: 0; padding-top: 0; }
.when { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.day  { font: 500 .82rem/1.4 var(--mono); color: var(--fg); }
.kind { font: 400 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
        color: var(--faint); }
.badge { font: 500 .64rem/1 var(--mono); text-transform: uppercase; letter-spacing: .07em;
         padding: .25rem .45rem; border-radius: 4px;
         background: var(--accent-bg); color: var(--accent); }
.what h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .25rem; }
.what h3 a { color: var(--fg); text-decoration: none; }
.what h3 a:hover { color: var(--accent); }
.venue { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.blurb { color: var(--muted); font-size: .95rem; margin: 0; }
.activity.past .day, .activity.past .what h3 { color: var(--muted); }
@media (max-width: 620px) {
  .activity { grid-template-columns: 1fr; gap: .5rem; }
  .when { flex-direction: row; align-items: center; gap: .7rem; }
}

/* ── projects ──────────────────────────────────────────────────────────── */
.projects { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.project { background: var(--surface); border: 1px solid var(--line);
           border-radius: 10px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.phead { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: .6rem; }
.phead h3 { font-size: 1.15rem; font-weight: 600; margin: 0; }
.phead h3 a { color: var(--fg); text-decoration: none; }
.phead h3 a:hover { color: var(--accent); }
.phead .kind { color: var(--accent); }
.phead .period { font: 400 .72rem/1 var(--mono); color: var(--faint); margin-left: auto; }
.project p { margin: 0; color: var(--muted); font-size: .97rem; }
.highlights { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.highlights li { margin: .3rem 0; }

/* ── writing index ─────────────────────────────────────────────────────── */
.years { display: grid; gap: 2.25rem; }
.year > h3 { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--faint);
             margin: 0 0 .9rem; }
.pieces { list-style: none; padding: 0; margin: 0; }
.pieces li { padding: .9rem 0; border-top: 1px solid var(--line); }
.pieces li:first-child { border-top: 0; padding-top: 0; }
.pieces a { font-size: 1.08rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.pieces a:hover { color: var(--accent); }
.excerpt { color: var(--muted); font-size: .93rem; margin: .3rem 0 .35rem; }
.pieces .meta { font: 400 .72rem/1 var(--mono); color: var(--faint); margin: 0; }

/* ── article pages ─────────────────────────────────────────────────────── */
.piece { padding: 3.5rem 0 4.5rem; }
.piece-head { margin-bottom: 2.25rem; }
.piece-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 600; margin: 0 0 .7rem; }
.origin { color: var(--muted); font-size: .9rem; margin: 0; }
.variant { background: var(--accent-bg); border-radius: 8px; padding: .9rem 1.1rem;
           margin: 0 0 2rem; font-size: .9rem; }
.variant p { margin: 0; color: var(--fg); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-transform: none;
            letter-spacing: -.015em; color: var(--fg); margin: 2.5rem 0 .8rem; }
.prose h3 { font-size: 1.22rem; font-weight: 600; margin: 2rem 0 .6rem; }
.prose h4 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose blockquote { margin: 1.75rem 0; padding: .2rem 0 .2rem 1.3rem;
                    border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.prose figure { margin: 2rem 0; }
.prose figcaption { color: var(--faint); font-size: .85rem; margin-top: .6rem; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose code { font: 400 .88em/1.4 var(--mono); background: var(--accent-bg);
              padding: .12em .35em; border-radius: 3px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
             padding: 1rem 1.1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: .84rem; }
.reading img { max-width: 130px; }
.back { margin-top: 3rem; font: 500 .82rem/1 var(--mono); }
.back a { text-decoration: none; }


/* ── podcast episodes inside a project card ────────────────────────────── */
.episodes { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.episodes li { display: flex; gap: .9rem; align-items: baseline; justify-content: space-between;
               padding: .5rem 0; border-bottom: 1px solid var(--line); }
.episodes li:last-child { border-bottom: 0; }
.episodes a { font-size: .95rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.episodes a:hover { color: var(--accent); }
.ep-date { font: 400 .72rem/1 var(--mono); color: var(--faint); white-space: nowrap; flex: none; }
.plinks { margin: .9rem 0 0 !important; display: flex; gap: 1rem; flex-wrap: wrap; }
.plinks a { font: 500 .78rem/1 var(--mono); text-decoration: none; display: inline-flex; gap: .3rem; }
.plinks span { font-size: .8em; }

/* ── career timeline ───────────────────────────────────────────────────── */
.cv-chart { position: relative; margin: 0 0 2rem; }
.cv-years { position: relative; height: 1.4rem; border-bottom: 1px solid var(--line);
            margin-bottom: .6rem; }
.cv-years span { position: absolute; left: var(--x); transform: translateX(-50%);
                 font: 400 .68rem/1 var(--mono); color: var(--faint); }
.cv-bands { position: relative; height: calc(var(--rows) * 1.85rem); }
.band {
  position: absolute; left: var(--x); width: var(--w); top: calc(var(--row) * 1.85rem);
  height: 1.5rem; min-width: 2.5rem;
  display: flex; align-items: center; padding: 0 .5rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--muted);
  font: 500 .7rem/1 var(--mono); text-align: left; cursor: default;
  overflow: hidden; white-space: nowrap;
}
.cv.interactive .band { cursor: pointer; }
.cv.interactive .band:hover { border-color: var(--accent); color: var(--accent); }
.band.active { background: var(--accent-bg); border-color: transparent; color: var(--accent); }
.band span { overflow: hidden; text-overflow: ellipsis; }

.cv-detail { padding: 1.25rem 0 0; border-top: 1px solid var(--line); }
.cv.interactive .cv-detail { display: none; }
.cv.interactive .cv-detail.active { display: block; }
.cv-org h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .2rem; }
.cv-meta { font: 400 .76rem/1.5 var(--mono); color: var(--faint); margin: 0 0 1rem; }
.cv-roles { list-style: none; margin: 0; padding: 0; }
.cv-roles > li { padding: 0 0 1.1rem 1rem; border-left: 2px solid var(--line); margin-left: .2rem; }
.cv-roles > li:last-child { padding-bottom: 0; }
.cv-roles h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .15rem; }
.cv-when { font: 400 .72rem/1.4 var(--mono); color: var(--faint); margin: 0 0 .45rem; }
.cv-roles p:last-child { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 620px) {
  .cv-years span:nth-child(even) { display: none; }
  .band { font-size: .62rem; padding: 0 .3rem; }
}

/* ── reading ───────────────────────────────────────────────────────────── */
.epigraph { margin: 0 0 2.25rem; padding: .2rem 0 .2rem 1.3rem;
            border-left: 2px solid var(--accent); }
.epigraph p { margin: 0 0 .35rem; font-style: italic; color: var(--fg); }
.epigraph cite { font: 400 .78rem/1 var(--mono); color: var(--faint); font-style: normal; }
.reading-list { list-style: none; padding: 0; margin: 0; }
.reading-list > li { display: grid; grid-template-columns: 62px 1fr; gap: 1.1rem;
                     padding: 1.1rem 0; border-top: 1px solid var(--line); }
.reading-list > li:first-child { border-top: 0; padding-top: 0; }
.read-essay { grid-template-columns: 1fr !important; }
.reading-list .cover { width: 62px; height: auto; border-radius: 3px;
                       box-shadow: var(--shadow); align-self: start; }
.reading-list h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .3rem; }
.reading-list h3 a { color: var(--fg); text-decoration: none; }
.reading-list h3 a:hover { color: var(--accent); }
.reading-list .by { display: block; font: 400 .72rem/1.4 var(--mono);
                    color: var(--faint); margin-top: .15rem; }
.reading-list p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 620px) {
  .reading-list > li { grid-template-columns: 48px 1fr; gap: .85rem; }
  .reading-list .cover { width: 48px; }
}

/* ── footer ────────────────────────────────────────────────────────────── */
footer { max-width: 46rem; margin: 0 auto; padding: 2.5rem clamp(1.1rem, 5vw, 3rem) 4rem;
         border-top: 1px solid var(--line); }
footer p { margin: 0 0 .3rem; font: 400 .82rem/1.6 var(--mono); color: var(--faint); }
