/* Notada, notada.app. Tokens are DESIGN.md's, by name. Light on :root, dark under the system's own switch. */

@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(fonts/newsreader-italic-300-500.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: 300 500; font-display: swap; src: url(fonts/newsreader-normal-300-500.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: 'Source Serif 4'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/source-serif-4-normal-400-500.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-normal-400.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-normal-500.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; }

:root {
  --surface: #FAF7F2; --raised: #F3EFE8;
  --ink: #2B2926; --muted: #6F6A63; --faint: #B8B2A9; --rule: #E6E1D9;
  --accent: #2E5E4E; --overdue: #AD4D37; --selection: rgba(46, 94, 78, .18);
  --on-accent: #FAF7F2; --on-accent-muted: rgba(250, 247, 242, .72); --on-accent-rule: rgba(250, 247, 242, .22);
  --shadow: 0 24px 64px rgba(43, 41, 38, .16), 0 0 0 1px rgba(43, 41, 38, .06);
  --show-light: block; --show-dark: none;
  --display: "Newsreader", "New York", ui-serif, Georgia, serif;
  --log: "Source Serif 4", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1E1C1A; --raised: #262321;
    --ink: #E8E3DB; --muted: #8F8A82; --faint: #5C5852; --rule: #33302C;
    --accent: #8AB3A2; --overdue: #D9846C; --selection: rgba(138, 179, 162, .22);
    --on-accent: #1E1C1A; --on-accent-muted: rgba(30, 28, 26, .72); --on-accent-rule: rgba(30, 28, 26, .22);
    --shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 227, 219, .08);
    --show-light: none; --show-dark: block;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--display); font-size: 19px; line-height: 29px; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
::selection { background: var(--selection); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.label {
  font-family: var(--sans); font-size: 11px; line-height: 16px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin: 0;
}
.label.today { color: var(--accent); }

header.top { display: flex; align-items: baseline; justify-content: space-between; padding: 28px 0 0; }
.word { font-size: 22px; font-weight: 400; text-decoration: none; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.icon { display: block; }
.icon.l { display: var(--show-light); } .icon.d { display: var(--show-dark); }
.word .icon { width: 34px; height: 34px; margin: -4px 0 -4px -4px; }
.dl { font-family: var(--sans); font-size: 13px; text-decoration: none; color: var(--accent); }
.dl:hover { color: var(--ink); }

/* Hero: the thesis, then the window. */
.hero { padding: 96px 0 56px; }
.hero h1 {
  font-size: clamp(54px, 8.6vw, 128px); line-height: .98; font-weight: 300; letter-spacing: -.028em;
  margin: 20px 0 0; max-width: 12.5ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero .sub { font-size: 22px; line-height: 32px; max-width: 44ch; margin: 40px 0 0; text-wrap: pretty; }
.hero .go { display: flex; gap: 28px; align-items: baseline; margin-top: 36px; flex-wrap: wrap; }
.hero .go a { font-size: 22px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rule); }
.hero .go a:hover { text-decoration-color: var(--accent); }
.hero .go span { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* The window: the app's own rendering of site/window.md, 2x, one face per appearance. Cropped to the last line plus a little of the space below it. */
.shot { width: 100%; max-width: 1040px; aspect-ratio: 977 / 590; position: relative; margin: 0 auto; border-radius: 11px; box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.keys { max-width: 1040px; margin: 16px auto 120px; padding: 0 4px; font-family: var(--sans); font-size: 13px; line-height: 20px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 24px; }
.keys kbd { font-family: var(--sans); font-size: 13px; color: var(--ink); }
.keys code { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.m-rows { list-style: none; margin: 0; padding: 0; }
.m-row { display: flex; align-items: flex-start; gap: 10px; min-height: 28px; padding: 5px 0; font-size: 13px; line-height: 18px; }
.m-row svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.m-row .rt { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-row .rm { flex: none; margin-left: 14px; font-size: 11px; color: var(--muted); }
.m-row .rm.over { color: var(--overdue); font-weight: 500; }
.m-row.q { color: var(--muted); }

/* Opinions. Numbered because the spec numbers them. */
.opinions { border-top: 1px solid var(--rule); }
.op { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 40px; padding: 72px 0 80px; border-bottom: 1px solid var(--rule); }
.op .n { font-size: 72px; line-height: 1; font-weight: 300; font-style: italic; color: var(--accent); margin: 0; }
.op h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -.022em; margin: 8px 0 28px; max-width: 16ch; text-wrap: balance; }
.op .why { max-width: 62ch; margin: 0; text-wrap: pretty; }
.op .why + .why { margin-top: 20px; }
.op .spec { margin-top: 40px; }

/* Specimens: the app's own vocabulary, not illustrations of it. */
.gram-wrap { overflow-x: auto; max-width: 760px; }
table.gram { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 24px; }
table.gram th { text-align: left; font-family: var(--sans); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 0 24px 10px 0; border-bottom: 1px solid var(--rule); }
table.gram td { padding: 10px 24px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--muted); }
table.gram td:last-child, table.gram th:last-child { padding-right: 0; }
table.gram td.c { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
table.gram td.c .or { color: var(--muted); font-family: var(--display); font-size: 16px; }
table.gram td .app { font-family: var(--sans); font-size: 13px; color: var(--muted); }
table.gram td .app kbd { font-family: var(--sans); color: var(--ink); }
table.gram td svg { width: 14px; height: 14px; vertical-align: -1px; margin-right: 10px; }
table.gram td b { font-weight: 400; color: var(--ink); }

.rows-spec { max-width: 420px; font-family: var(--sans); }
.rows-spec .m-row { padding: 6px 0; }

.file { font-family: var(--mono); font-size: 13.5px; line-height: 24px; max-width: 700px; margin: 0; padding: 20px 24px; background: var(--raised); border-radius: 8px; overflow-x: auto; white-space: pre-wrap; }
.file .h { color: var(--accent); } .file .m { color: var(--faint); } .file .t { color: var(--muted); }
.file-cap { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.file-cap code { font-family: var(--mono); font-size: 12.5px; }

/* Opinion 4 sits on the accent. The one loud thing on the page. */
.band { background: var(--accent); color: var(--on-accent); }
.band .op { border-bottom: 0; }
.band .op .n { color: var(--on-accent-muted); }
.band .why { color: var(--on-accent); }
.band .term { font-family: var(--mono); font-size: 13.5px; line-height: 24px; max-width: 700px; margin: 0; padding: 20px 24px; border: 1px solid var(--on-accent-rule); border-radius: 8px; overflow-x: auto; white-space: pre-wrap; color: var(--on-accent); }
.band .term .d { color: var(--on-accent-muted); }
.band .skills { font-family: var(--sans); font-size: 13px; line-height: 20px; color: var(--on-accent-muted); max-width: 62ch; margin: 24px 0 0; }
.band .skills b { font-weight: 500; color: var(--on-accent); }
.band ::selection { background: rgba(255, 255, 255, .25); }


/* Who, maker, end. */
.who { padding: 80px 0; max-width: 62ch; border-bottom: 1px solid var(--rule); }
.who p { margin: 12px 0 0; }
.maker { padding: 80px 0; max-width: 62ch; border-bottom: 1px solid var(--rule); }
.maker p { margin: 12px 0 0; }
.maker .sig { margin-top: 24px; font-style: italic; }
.end { padding: 96px 0 120px; display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 40px; align-items: start; }
.end .icon { width: 160px; height: 160px; margin: -16px 0 0 -16px; }
.end .appname { font-size: 28px; line-height: 36px; margin: 0 0 8px; }
.end .appname span { color: var(--muted); }
.end a.big { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; font-weight: 300; letter-spacing: -.025em; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--rule); }
.end a.big:hover { text-decoration-color: var(--accent); }
.end .fine { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 28px 0 0; display: flex; gap: 24px; flex-wrap: wrap; }
.end .fine a { font: inherit; color: var(--muted); text-decoration: none; letter-spacing: 0; }
.end .fine a:hover { color: var(--ink); }
.end .legal { font-family: var(--sans); font-size: 13px; line-height: 20px; color: var(--muted); margin: 24px 0 0; max-width: 52ch; }

@media (max-width: 800px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 64px 0 40px; }
  .hero .sub { font-size: 19px; line-height: 29px; }
  .op { grid-template-columns: minmax(0, 1fr); padding: 48px 0 56px; }
  .op .n { font-size: 48px; margin-bottom: 8px; }
  .grammar { grid-template-columns: 1fr; }
  .shot { border-radius: 6px; }
  .end { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .end .icon { width: 120px; height: 120px; margin: -12px 0 0 -12px; }
  .keys { margin-bottom: 64px; }
}
