/* Narrow text column. Newsreader, IBM Plex Sans, and Inter are SIL OFL and self-hosted. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-normal.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 Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-wght-normal.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: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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 {
  --bg: #ffffff;
  --ink: #1f2322;
  --muted: #4f4b46;
  --line: #d9d3cb;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --ink: #f4efe8;
    --muted: #c9c2b8;
    --line: #3a3a3e;
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --bg: #121212;
  --ink: #f4efe8;
  --muted: #c9c2b8;
  --line: #3a3a3e;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --ink: #1f2322;
  --muted: #4f4b46;
  --line: #d9d3cb;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 24px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Variable", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 2;
}
.skip:focus { top: 12px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a { color: inherit; }

.sheet {
  width: auto;
  margin: 0;
  padding: 44px 36px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .sheet { padding: 44px 32px 24px; }
}

/* Home uses the same inset, header pad, and column as a measured 1440 / 390 page. */
.sheet.home { padding: 16px; background: var(--bg); }

.bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet.home .bar { padding: 20px 16px; }

.mark {
  position: relative;
  width: calc(73.63px * 168 / 223);
  height: 73.63px;
  display: block;
  flex: none;
  background: transparent;
}
.mark img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  background: transparent;
}
.tone-pearl,
.tone-matte { display: none; }
[data-theme="dark"] .mark img.tone-pearl,
html:not([data-theme]) .mark img.tone-pearl { display: block; }
[data-theme="light"] .mark img.tone-matte { display: block; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .mark img.tone-pearl { display: none; }
  html:not([data-theme]) .mark img.tone-matte { display: block; }
}
.toplinks {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-top: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.toplinks a,
.home .foot a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 20%, transparent);
  text-underline-offset: calc(0.1em + 1px);
}
.toplinks a:first-child { letter-spacing: 0.042px; }
.toplinks a.invite { letter-spacing: -0.303px; }

.theme-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 13px;
  padding: 0;
  margin-left: 18px;
  cursor: pointer;
  text-decoration: none;
}

main {
  width: min(656px, 100%);
  margin-top: 64px;
}

.home .prose { margin-top: 0; }

.home-main {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: 44px 16px 20px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: calc(24px * 1.9);
  max-width: 41rem;
  width: min(41rem, 100%);
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.prose p {
  margin: 0;
  font-weight: 400;
  text-box: trim-both cap alphabetic;
}
.prose .lead {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose p.go {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-box: normal;
  padding-bottom: 2.38px;
}
a.ex {
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.go a { text-decoration: none; }
.go a .label {
  position: relative;
  isolation: isolate;
}
.go a .label::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0.13em;
  height: 0.42em;
  background: color-mix(in srgb, #e1d5cd 33%, #f4efec);
}
.go a .chev {
  display: inline-block;
  margin-left: 0.1em;
}
[data-theme="dark"] .go a .label::before {
  background: color-mix(in srgb, #e1d5cd 40%, #2a2622);
}

.quiet {
  margin: 0;
  font-family: "Inter Variable", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 450;
  font-variation-settings: normal;
  line-height: 16px;
  color: var(--muted);
}
.quiet a { color: var(--muted); margin-right: 16px; }

.foot {
  margin-top: auto;
  padding-top: 64px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
}
.foot p { margin: 0; }
.foot a { color: inherit; text-decoration: none; margin-left: 18px; }
.foot a:hover, .foot .theme-toggle:hover { text-decoration: underline; text-underline-offset: 2px; }
.home .foot {
  margin-top: 0;
  padding-top: 0;
}
.home .foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
.home .foot a,
.home .theme-toggle { margin-left: 0; }

.note {
  font-family: "Inter Variable", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.note p { margin: 0 0 0.9em; }
.note .muted,
.muted { color: var(--muted); }

.files {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
}
.files li { margin: 0 0 28px; }
.files a { font-weight: 620; }
.files p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.hash code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.copy {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}

figure { margin: 28px 0; scroll-margin-top: 24px; }
figure img,
figure video {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.sim {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e2a10;
  background: #f3e0c4;
  border-radius: 999px;
  padding: 3px 8px;
}

.prose h1,
.note h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 0.8em;
}
.note h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.4em 0 0.4em;
}
.note ul { margin: 0 0 0.9em; padding-left: 1.2em; }
.note li { margin: 0.2em 0; }
.note code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

@media (min-width: 1280px) {
  .sheet.home .bar { padding: 20px 20px 0; }
  .mark { width: calc(89.41px * 168 / 223); height: 89.41px; }
  .home-main { padding-top: 64px; padding-left: 20px; padding-right: 20px; }
}

/* Phone only. Desktop stays at 24px / 45.6px. Our longer copy is set a step smaller so the intro still sits in the first screen. */
@media (max-width: 700px) {
  .home .prose {
    font-size: 22px;
    line-height: 1.3;
    gap: calc(22px * 1.9);
  }
  .home .prose p.go {
    font-size: 22px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.motion .mark img,
  html.motion .mark video,
  .mark img,
  .mark video { animation: none; }
}

/* Unlisted test builds. Same column as home. File facts use IBM Plex Sans. */
.test-builds .files,
.test-builds .files p,
.test-builds .files a,
.test-builds .copy {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
.test-builds .files .title,
.test-builds .files .pending,
.test-builds .plugin-group > .title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.test-builds .plugin-group {
  margin: 28px 0 8px;
}
.test-builds .plugin-group > .title,
.test-builds .plugin-group > .hint {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
.test-builds .plugin-group > .hint {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
.test-builds .plugin-group .files { margin-top: 12px; }
