/* Coffee Tokens site stylesheet. Built from the Coffee Tokens design system (ds-bundle.css) plus page layouts.
   Tokens: https://claude.ai/artifact/WB9RuamhUpQ6DyATZwC3rq */
:root {
  color-scheme: light;
  --paper: #F2EFE8; --tint: #ECE8E0; --ink: #1C1A17; --body: #4A443B; --muted: #6E6558;
  --rule: #DAD3C4; --accent: #B14E17; --accent-fill: #B14E17; --accent-text: #AA4B16; --kicker: #8A5A30; --on-accent: #F2EFE8;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Libre Franklin', Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;
}
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* Coffee Tokens site components. Values copied from Home mockup v23. Class prefix ct-. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.ct a { color: inherit; text-decoration: none; }
.ct a:focus-visible, .ct button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* container: every section shares the hero's left edge */
.ct-in { max-width: 1240px; margin-inline: 0; padding-inline: clamp(20px, 7vw, 80px); box-sizing: border-box; }

/* header */
.ct-header { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; padding-block: 26px; }
.ct-mark { font-family: var(--font-mono); font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
.ct-menu { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--font-serif); font-size: 16px; }
.ct-menu a { color: var(--body); }
.ct-menu a:hover, .ct-menu a[aria-current="page"] { color: var(--accent-text); }
.ct-menu-btn { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--rule); padding: 0 14px; min-height: 44px; cursor: pointer; }

/* hero (top of every page) */
.ct-hero { container-type: inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-block: 1px solid var(--rule); background: var(--tint); }
.ct-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 56px 36px 56px clamp(20px, 7vw, 80px); min-width: 0; }
.ct-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 3.7cqi, 50px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.ct-hero h1 span { display: block; }
.ct-hero p { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.75; color: var(--body); max-width: 36em; }
.ct-hero-img { position: relative; min-width: 0; }
.ct-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.ct-hero-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; background: linear-gradient(90deg, var(--tint), rgb(236 232 224 / 0)); z-index: 1; }

/* section heading + lede */
.ct-sec { padding-block: 48px 8px; display: flex; flex-direction: column; gap: 22px; }
.ct-h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 30px); letter-spacing: -.015em; line-height: 1.1; color: var(--ink); }
.ct-lede { margin: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: var(--body); max-width: 62em; }
.ct-lede strong { font-weight: 400; color: var(--ink); }
.ct-prose { margin: 0; font-family: var(--font-sans); font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 34em; text-wrap: pretty; }
.ct-prose strong { font-weight: 500; color: var(--ink); }

/* text link */
.ct-go { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: var(--ink); }
.ct-go:hover { color: var(--accent-text); }
.ct-go.ct-accent { color: var(--accent-text); }

/* notes list, stretched */
.ct-list { border-top: 1px solid var(--muted); margin-top: 10px; }
.ct-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 24px; gap: 8px 40px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--rule); }
.ct-row:hover .ct-ttl { color: var(--accent-text); }
.ct-row img { width: 220px; aspect-ratio: 16 / 10; max-width: 100%; object-fit: cover; display: block; }
.ct-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--kicker); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ct-tag { color: var(--accent-text); border: 1px solid var(--accent-text); padding: 1px 7px; font-size: 10px; }
.ct-ttl { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); transition: color .15s; }
.ct-sum { font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--body); }
.ct-arrow { font-size: 20px; color: var(--ink); justify-self: end; }

/* closing band */
.ct-band { margin-top: 40px; background: var(--tint); border-block: 1px solid var(--rule); }
.ct-band-in { max-width: 1240px; box-sizing: border-box; padding: 48px clamp(20px, 7vw, 80px) 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.ct-band-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct-band-me { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 22px; align-items: start; }
.ct-band-me img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; display: block; }
.ct-band-h { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.ct-band-p { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: var(--body); max-width: 40em; }
.ct-band-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 4px; }

/* footer */
.ct-foot { padding-block: 26px 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ct-foot div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 760px) { .ct-foot span { white-space: nowrap; } }

/* phones */
@media (max-width: 760px) {
  .ct-header { align-items: center; padding-block: 14px; row-gap: 0; }
  .ct-mark { font-size: 13px; letter-spacing: .26em; }
  .ct-menu-btn { display: inline-flex; align-items: center; }
  .ct-menu { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--rule); font-size: 19px; }
  .ct-header.open .ct-menu { display: flex; }
  .ct-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .ct-hero { grid-template-columns: 1fr; }
  .ct-hero-img { order: -1; height: 230px; }
  .ct-hero-img::before { display: none; }
  .ct-hero-text { padding: 30px clamp(20px, 6vw, 64px) 36px; }
  .ct-hero h1 { font-size: 36px; }
  .ct-hero h1 span { display: inline; }
  .ct-row { grid-template-columns: 1fr; gap: 14px; }
  .ct-row img { width: 100%; }
  .ct-arrow { display: none; }
  .ct-band-in { grid-template-columns: 1fr; padding-block: 36px 40px; }
  .ct-band-me { grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; }
  .ct-band-me img { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .ct-ttl { transition: none; } }


/* ---------- phone menu without JavaScript (the site's CSP blocks scripts) ---------- */
.ct-header { position: relative; }
.ct-menu-phone { display: none; }
.ct-menu-phone summary { list-style: none; }
.ct-menu-phone summary::-webkit-details-marker { display: none; }
.ct-menu-phone .c, .ct-menu-phone[open] .o { display: none; }
.ct-menu-phone[open] .c { display: inline; }
.ct-menu-list { display: flex; flex-direction: column; position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--muted); font-family: var(--font-serif); font-size: 19px; }
.ct-menu-list a { display: block; padding: 13px clamp(20px, 7vw, 80px); border-bottom: 1px solid var(--rule); color: var(--ink); }
.ct-menu-list a:last-child { border-bottom: 0; }
.ct-menu-list a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 760px) {
  .ct-header > .ct-menu { display: none; }
  .ct-menu-phone { display: block; }
  .ct-menu-phone summary.ct-menu-btn { display: inline-flex; }
}

/* ---------- accessibility: skip link, shown only when focused by keyboard ---------- */
.ct-skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 13px; }
.ct-skip:focus { left: 16px; }

/* ---------- bigger text and tap targets ---------- */
.ct-foot { font-size: 13px; }
.ct-foot .ct-foot-id { flex-direction: column; gap: 8px; }
.ct-foot a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 761px) { .ct-header > .ct-menu a { display: inline-block; padding-block: 12px; margin-block: -12px; } }

/* ---------- Home: keep the two-line headline as two lines on phones ---------- */
@media (max-width: 760px) {
  .ct-hero.ct-two-line h1 { font-size: clamp(24px, 7.4vw, 36px); }
  .ct-hero.ct-two-line h1 span { display: block; }
}

/* ---------- hero extras for inner pages ---------- */
.ct-hero .ct-kind { margin-bottom: -6px; }
.ct-by { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); letter-spacing: .02em; }
.ct-by a { border-bottom: 1px solid currentColor; }

/* ---------- article / page body ---------- */
.ct-page { padding-bottom: 8px; }
.ct-block { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ct-block > .ct-kind { margin-bottom: -8px; }
.ct-prose a { color: var(--accent-text); border-bottom: 1px solid currentColor; }
ul.ct-prose, ol.ct-prose { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.ct-quote { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; color: var(--ink); max-width: 26em; text-wrap: balance; }
.ct-pull { margin: 0; font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); max-width: 28em; text-wrap: balance; }
.ct-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.ct-stat b { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.ct-stat span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-cta { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: baseline; }
.ct-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ct-note a { color: var(--ink); border-bottom: 1px solid currentColor; }
.ct-note a:hover { color: var(--accent-text); }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; max-width: 62em; }
.ct-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.ct-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.ct-item h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.ct-item p { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--body); }
.ct-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--kicker); }
.ct-asks { display: flex; flex-direction: column; gap: 6px; }
.ct-asks p { margin: 0; font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; color: var(--ink); }

/* typographic thumbnail for a note without a photo */
.ct-tile { width: 220px; aspect-ratio: 16 / 10; max-width: 100%; box-sizing: border-box; background: var(--tint); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--font-serif); font-size: 44px; letter-spacing: -.02em; color: var(--ink); }

/* short takes on the Notes page: not links */
/* tinted cards with no arrow and no hover, so they don't read like the linked note rows */
.ct-takes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.ct-take { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--tint); border-left: 3px solid var(--rule); }
.ct-take h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.ct-take p { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--body); max-width: 62em; }

/* GEO Review request form (posts to the site's Cloudflare Pages Function; no JavaScript) */
.rq { display: flex; flex-direction: column; gap: 28px; max-width: 46em; padding-block: 48px 64px; }
.rq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.rq-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rq-f label { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; color: var(--ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rq-opt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rq-hint { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.rq-f input, .rq-f textarea { font: 16px/1.5 var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 0; padding: 12px 14px; min-height: 48px; box-sizing: border-box; width: 100%; }
.rq-f textarea { min-height: 150px; resize: vertical; }
.rq-f textarea.short { min-height: 96px; }
.rq-f input::placeholder, .rq-f textarea::placeholder { color: var(--muted); opacity: .8; }
.rq-f input:focus, .rq-f textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: var(--accent-text); }
.rq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-send { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; padding-top: 8px; border-top: 1px solid var(--rule); }
.rq-btn { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent-fill); border: 0; min-height: 48px; padding: 0 26px; cursor: pointer; }
.rq-btn:hover { background: var(--ink); }
.rq-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.rq-small { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--body); max-width: 34em; }
.rq-small a { border-bottom: 1px solid currentColor; color: var(--ink); }

/* who wrote this */
.ct-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 22px; align-items: start; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 46em; }
.ct-author.noimg { grid-template-columns: minmax(0, 1fr); }
.ct-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.ct-author > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-author h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; color: var(--ink); }

/* read next */
.ct-next { border-top: 1px solid var(--muted); }
.ct-next a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.ct-next a:hover .ct-ttl { color: var(--accent-text); }
.ct-next .ct-ttl { font-size: clamp(18px, 1.8vw, 20px); }
.ct-next .ct-txt { gap: 4px; }

/* meet michael */
.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px 64px; align-items: start; }
.ct-split > div { min-width: 0; }
.ct-portrait { margin: 48px 0 0; }
.ct-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ct-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.ct-figs figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-figs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ct-figs figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.ct-shot { margin: 0; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.ct-shot img { width: 100%; height: auto; display: block; }
.ct-shot figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--muted); }

/* cv */
.ct-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--body); }
.ct-meta a { border-bottom: 1px solid currentColor; }
.ct-jobs { border-top: 1px solid var(--muted); }
.ct-job { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 48px; padding-block: 30px; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.ct-job-when { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: .02em; }
.ct-job-when b { font-weight: 400; color: var(--ink); }
.ct-job-what { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-job h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.ct-org { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--kicker); }
.ct-job ul.ct-prose { max-width: 40em; font-size: 15.5px; }

@media (max-width: 760px) {
  .ct-grid, .ct-grid.three, .ct-split, .ct-figs, .ct-takes, .rq-row { grid-template-columns: 1fr; }
  .ct-portrait { margin-top: 8px; max-width: 320px; }
  .ct-job { grid-template-columns: 1fr; }
  .ct-tile { width: 100%; }
  .ct-author { grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; }
  .ct-author img { width: 56px; height: 56px; }
}
@media (min-width: 761px) and (max-width: 1040px) { .ct-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media print {
  @page { margin: 14mm; }
  body { background: #FFFFFF; }
  .ct-header, .ct-hero-img, .ct-foot, .ct-band, [data-noprint] { display: none !important; }
  .ct-hero { display: block; background: none; border: 0; }
  .ct-hero-text { padding: 0 0 12px; }
  .ct-in { padding-inline: 0; max-width: none; }
  .ct-block { padding-top: 24px; }
  .ct-job { break-inside: avoid; page-break-inside: avoid; padding-block: 16px; }
}

/* images carry width/height attributes for layout stability; let CSS set the real size */
.ct-row img, .ct-band-me img, .ct-author img, .ct-portrait img, .ct-figs img { height: auto; }
.ct-band-me img, .ct-author img { aspect-ratio: 1; }

/* closing band with only the "Something I'm working on" half (notes that end with their own author box) */
.ct-band-in.ct-band-solo { grid-template-columns: minmax(0, 1fr); }
.ct-band-solo .ct-band-p { max-width: 40em; }

/* ---------- wide screens: center the page instead of leaving the right side empty ---------- */
/* Header, sections, closing band and footer sit in one centered 1240px column. The hero photo
   still runs to the right edge; the hero text starts on the same left edge as everything else and gets
   740px, so headlines keep the line breaks they have on a laptop. */
.ct-in, .ct-band-in { margin-inline: auto; }
@media (min-width: 761px) {
  .ct-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 740px) minmax(0, 500px) minmax(0, 1fr); }
  .ct-hero-text { grid-column: 2; }
  .ct-hero-img { grid-column: 3 / 5; }
}
