/* Sensei landing page: ink and wine. No build step.
   Serif is a person (Newsreader), mono is the machine (JetBrains Mono); both self-hosted, OFL.
   Wine means Sensei is acting: the mark, a running task, a slow pulse. Never a button or a link. */

/* Variable WOFF2 from Google Fonts (Newsreader: optical size and weight), latin and latin-ext
   subsets. Licences: assets/fonts/OFL-*.txt. */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/newsreader-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(assets/fonts/newsreader-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Colour tokens: BrandColor in mac/Sources/SenseiCore/Brand (a test keeps them in step). */
:root {
  --paper: #F4F0E6;
  --paper-2: #ECE6D7;
  --card: #FBF9F3;
  --rule: #D9D1BF;
  --ink: #1B1A17;
  --ink-2: #45423B;
  --muted: #6B665B;
  --wine: #7E2338;
  --ochre: #8A5A00;
  --indigo: #2F4A8A;
  --on-ink: var(--paper);
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --paper-2: #1B1A17;
    --card: #1E1C19;
    --rule: #2E2B26;
    --ink: #ECE6D8;
    --ink-2: #C2BBAB;
    --muted: #958E80;
    --wine: #D0607A;
    --ochre: #E2A64B;
    --indigo: #9DB1F0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 19px/1.55 var(--serif); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 6px; font: 15px var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: .8em; }
.mono--ink { font-size: .82em; color: var(--ink); }
.body { color: var(--ink-2); }
.eyebrow { margin-bottom: 20px; font: 14px/1.55 var(--mono); color: var(--muted); }

/* The mark: the ensō in the text colour, its square in wine. Drawn from the <symbol>s in index.html. */
.mark { display: block; flex: none; fill: currentColor; }
.mark__square { fill: var(--wine); }

/* Working: a slow fade, never a blink. */
.cur {
  display: inline-block; width: .42em; height: .42em; margin-left: .5em; border-radius: 50%;
  background: var(--wine); vertical-align: middle; animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* ---------- Buttons: ink, never wine ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  font: 500 15px/1.2 var(--mono);
}
.btn:hover { color: var(--on-ink); opacity: .88; }
.btn--small { min-height: 44px; font-size: 14px; }
.btn--outline { background: none; border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { color: var(--ink); }
.btn--paper { min-height: 52px; padding: 0 26px; background: var(--paper); color: var(--ink); }
.btn--paper:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 32px; font-size: 17px; }
.nav__links a { text-decoration: none; }

/* ---------- Hero ---------- */
/* The copy beside the product. The whole hero, down to the fine print, fits the first screen
   of a laptop or a desktop: the spacing shrinks on shorter windows, and the headline keeps its
   two lines ("Stop prompting." is about 6.8em wide, and the text column 468 to 488px). */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 48px; align-items: center;
  padding-top: clamp(32px, 8vh, 96px); padding-bottom: 160px;
}
.eyebrow--hero { margin-bottom: clamp(20px, 3.5vh, 32px); letter-spacing: .02em; }
.hero h1 { font-size: clamp(44px, 4.8vw, 68px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
/* The full stop: a static wine dot. The hero's only motion is the menu bar icon's wave. */
.stop { display: inline-block; width: .15em; height: .15em; margin-left: .04em; border-radius: 50%; background: var(--wine); }
.lede { margin-top: clamp(24px, 4.5vh, 40px); max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: clamp(28px, 5vh, 44px); }
.cta__link { font-size: 19px; text-underline-offset: 5px; }
.fine { margin-top: clamp(20px, 4vh, 36px); font: 13px/1.55 var(--mono); color: var(--muted); text-wrap: balance; }

/* The product: a slice of the menu bar with Sensei's menu open, over the window. Drawn in
   units of --u, a 1100th of the stage (the window's width in points), so the whole stack
   scales with it: 600 × 417 px on desktop, the content width on phones. */
.stage {
  --u: calc(100cqw / 1100);
  position: relative; width: 600px; max-width: 100%; aspect-ratio: 1100 / 764;
  container-type: inline-size;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif; line-height: 1;
}
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: calc(30 * var(--u));
  display: flex; align-items: center; justify-content: flex-end; gap: calc(14 * var(--u)); padding: 0 calc(12 * var(--u));
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: calc(8 * var(--u));
  font-size: calc(13 * var(--u)); color: var(--ink);
}
/* Its menu is open, so the item is highlighted, as macOS does. The gap around the hand is
   painted in the same colour, so it reads as a cut-out. */
.menubar__item {
  --behind: color-mix(in srgb, var(--ink) 10%, var(--paper-2));
  display: flex; padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: calc(5 * var(--u));
  background: var(--behind);
}
.menubar__icon { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.wave__gap { fill: var(--behind); stroke: var(--behind); }
/* BrandMotion's wave: three quick swings at the wrist, then a rest. */
.wave { transform-box: fill-box; transform-origin: 50% 100%; animation: wave 2.8s ease-in-out infinite; }
@keyframes wave {
  0% { transform: rotate(0); }
  6%, 18%, 30% { transform: rotate(18deg); }
  12%, 24% { transform: rotate(-12deg); }
  36%, 100% { transform: rotate(0); }
}
.stage__window { position: absolute; top: calc(44 * var(--u)); left: 0; right: 0; }
.stage__window img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 calc(16 * var(--u)) calc(24 * var(--u)) rgba(27, 26, 23, .2));
}
/* A native menu: system font, translucent paper over the window, a soft shadow. */
.menu {
  position: absolute; top: calc(34 * var(--u)); right: calc(6 * var(--u)); width: calc(292 * var(--u));
  padding: calc(5 * var(--u)) 0; border-radius: calc(10 * var(--u));
  background: color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-backdrop-filter: blur(calc(24 * var(--u))) saturate(1.4); backdrop-filter: blur(calc(24 * var(--u))) saturate(1.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 calc(12 * var(--u)) calc(36 * var(--u)) rgba(27, 26, 23, .22);
  font-size: calc(13 * var(--u)); color: var(--ink);
}
.menu__item {
  display: flex; align-items: center; gap: calc(7 * var(--u)); height: calc(22 * var(--u));
  margin: 0 calc(5 * var(--u)); padding: 0 calc(10 * var(--u)) 0 calc(16 * var(--u)); border-radius: calc(5 * var(--u));
  white-space: nowrap;
}
.menu__item--on { background: var(--ink); color: var(--paper); }
.menu__seal { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--ochre); }
.menu__more, .menu__key { margin-left: auto; }
.menu__key { color: var(--muted); }
.menu__head { padding: calc(6 * var(--u)) 0 calc(4 * var(--u)) calc(21 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 600; color: var(--muted); }
.menu hr { margin: calc(5 * var(--u)) calc(14 * var(--u)); border: 0; border-top: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  .stage__window img { filter: drop-shadow(0 calc(16 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .5)); }
  .menu { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent), 0 calc(12 * var(--u)) calc(36 * var(--u)) rgba(0, 0, 0, .55); }
}

/* ---------- Story ---------- */
.story { border-top: 1px solid var(--rule); }
.story__head { padding-top: 120px; padding-bottom: 40px; }
.h2 { font-weight: 400; text-wrap: balance; }
.h2--story, .h2--rules, .h2--notify { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
.h2--story { max-width: 15em; }
.timeline { padding-top: 56px; padding-bottom: 80px; }
.tl { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 56px; padding: 48px 0; border-top: 1px solid var(--rule); }
.tl--night { padding: 96px 0; }
.tl--last { border-bottom: 1px solid var(--rule); }
.tl__time { padding-top: 8px; font: 14px/1.55 var(--mono); color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.h3 { margin-bottom: 14px; font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -.015em; }
.h3--night { margin: 0; max-width: 14em; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 26px 28px; }
.card--task { padding: 28px 30px; }
.task__title { margin-bottom: 20px; font-size: 26px; line-height: 1.2; font-weight: 500; }
.props { display: grid; grid-template-columns: 96px minmax(0, 1fr); row-gap: 10px; margin-bottom: 22px; font: 13px/1.55 var(--mono); }
.props dt { color: var(--muted); }
.props__who { display: flex; align-items: center; gap: 8px; }
.task__body { font-size: 18px; color: var(--ink-2); }

.log {
  background: var(--paper-2); border-radius: 8px; padding: 26px 28px;
  font: 13.5px/1.9 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-x: auto;
}
.log__key { color: var(--muted); }
.log__now { color: var(--ink); }

.comment__caption { margin-bottom: 14px; font: 12px/1.55 var(--mono); color: var(--muted); }
.comment__row { display: flex; gap: 14px; }
.comment__avatar { margin-top: 2px; }
.comment__avatar--person {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 14px;
}
.comment__who { margin-bottom: 6px; font: 13px/1.55 var(--mono); color: var(--muted); }
.comment__machine { font: 14.5px/1.7 var(--mono); }
.mention { color: var(--ochre); }
.comment__person { font-size: 22px; line-height: 1.4; }
.comment__resumed { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font: 13px/1.55 var(--mono); color: var(--ink-2); }

.overnight { margin-top: 44px; font: 14px/1.55 var(--mono); }
.overnight li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.overnight li:last-child { border-bottom: 1px solid var(--rule); }
.overnight__time { color: var(--muted); }
.overnight__pr { color: var(--indigo); }
.overnight__note { margin-top: 28px; max-width: 34em; }

.pr__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pr__kind { font: 13px/1.55 var(--mono); color: var(--muted); }
.pr__state { padding: 3px 9px; border: 1px solid var(--indigo); border-radius: 4px; font: 12.5px/1.55 var(--mono); color: var(--indigo); }
.pr__title { margin-bottom: 20px; font-size: 22px; line-height: 1.3; }
.files { font: 13px/1.55 var(--mono); }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.files li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.add { color: var(--wine); }
.del { color: var(--ochre); }

/* ---------- On your Mac ---------- */
.band { background: var(--paper-2); }
.band__inner { padding-top: 120px; padding-bottom: 120px; }
.h2--mac { margin-bottom: 20px; max-width: 16em; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
.band__lede { margin-bottom: 56px; max-width: 34em; }
.window { display: block; max-width: 1100px; }
.window img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 28px rgba(27, 26, 23, .22)); }
@media (prefers-color-scheme: dark) { .window img { filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .5)); } }

/* ---------- House rules ---------- */
.rules-section__inner { padding-top: 140px; padding-bottom: 120px; }
.h2--rules { margin-bottom: 72px; max-width: 14em; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.rules li { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 30px 0; border-top: 1px solid var(--rule); }
.rules__n { padding-top: 8px; font: 14px/1.55 var(--mono); color: var(--muted); }
.rules h3 { margin-bottom: 8px; font-size: 27px; line-height: 1.2; font-weight: 400; }
.rules p { color: var(--ink-2); }
.rules__extra { font-style: italic; }
.reqs { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 96px; font: 14px/1.55 var(--mono); }
.reqs dd { margin-top: 4px; color: var(--muted); }

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__inner { max-width: 880px; padding-top: 120px; padding-bottom: 120px; }
.h2--faq { margin-bottom: 48px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
.faq details { padding: 26px 0; border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-size: 25px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.plus { font-family: var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 16px; color: var(--ink-2); }

/* ---------- Launch ---------- */
.notify { background: var(--ink); color: var(--paper); }
.notify__inner { max-width: 880px; padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.notify__mark { color: var(--paper); }
/* On the ink band the square is always the light wine shade, as on the board. */
.notify__mark .mark__square { fill: #D0607A; }
.h2--notify { margin: 48px 0 18px; }
.notify__lede { margin-bottom: 40px; font-size: 21px; opacity: .8; }
.notify :focus-visible { outline-color: var(--paper); }

/* ---------- Maker ---------- */
.maker { padding-top: 120px; padding-bottom: 96px; }
.maker__who { display: flex; gap: 24px; align-items: flex-start; }
.maker__portrait {
  flex: none; width: 112px; height: 112px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--rule); object-fit: cover; object-position: center 20%;
}
.eyebrow--maker { margin-bottom: 12px; }
.h2--maker { margin-bottom: 18px; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; font: 13px/1.55 var(--mono); }
.facts dd { margin-top: 4px; color: var(--muted); }
.follow li:first-child { padding-bottom: 28px; }
.follow li + li { padding-top: 28px; border-top: 1px solid var(--rule); }
.follow__title { margin-bottom: 6px; font-size: 25px; line-height: 1.25; }
.follow .body { margin-bottom: 18px; }
.follow__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.legal { border-top: 1px solid var(--rule); }
.legal__inner { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; }
.legal__brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.legal p { flex: 1 1 420px; font: 12.5px/1.7 var(--mono); color: var(--muted); }

/* ---------- Narrower screens: the product under the copy, then one column, no nav links ---------- */
@media (max-width: 1179px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  /* The copy has the full width again, so a larger headline: still two lines on a phone. */
  .hero h1 { font-size: clamp(40px, 12.4vw, 64px); }
  .stage { justify-self: center; }
}
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; row-gap: 8px; }
  .two { grid-template-columns: 1fr; gap: 28px; }
  .rules { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .nav { padding-top: 20px; padding-bottom: 20px; gap: 16px; }
  .nav .btn--small { margin-left: auto; }
  .hero { padding-top: 48px; padding-bottom: 96px; }
  .lede { margin-top: 28px; }
  .cta { margin-top: 32px; gap: 20px; }
  .story__head, .band__inner, .faq__inner, .maker { padding-top: 80px; }
  .band__inner, .faq__inner { padding-bottom: 80px; }
  .rules-section__inner { padding-top: 96px; padding-bottom: 80px; }
  .h2--rules { margin-bottom: 40px; }
  .reqs { margin-top: 56px; gap: 16px 32px; }
  .timeline { padding-top: 24px; padding-bottom: 56px; }
  .tl { padding: 36px 0; }
  .tl--night { padding: 56px 0; }
  .h3 { font-size: 28px; }
  .h3--night { font-size: 36px; }
  .card, .log { padding: 20px; }
  .card--task { padding: 22px; }
  .overnight li { grid-template-columns: 52px minmax(0, 1fr); }
  .overnight__pr { grid-column: 2; margin-top: -12px; }
  .rules li { grid-template-columns: 40px minmax(0, 1fr); }
  .rules h3 { font-size: 24px; }
  .faq summary { font-size: 22px; }
  .notify__inner { padding-top: 96px; padding-bottom: 96px; }
  .notify__mark { width: 96px; height: 96px; }
  .maker__who { flex-direction: column; }
  .legal p { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur, .wave { animation: none; }
  .plus { transition: none; }
}
