/* liftnotepad.app: one stylesheet for every page. Values from the Site-Landing, Site-Support and Site-Privacy boards
   (context/foundation/design/boards/), on the Chalk & Iron foundations. Light only. No inline styles anywhere: the CSP
   in _headers blocks them. Fonts are self-hosted subsets (scripts/launch/website-assets.sh). */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-800.woff2") format("woff2"); }
@font-face { font-family: "Archivo Condensed"; font-weight: 900; font-display: swap; src: url("/assets/fonts/archivo-condensed-900.woff2") format("woff2"); }
@font-face { font-family: "Archivo SemiCondensed"; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-semicondensed-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #F1F0EB;
  --ink: #16150F;
  --graphite: #5E5C55;
  --card: #FFFFFF;
  --lime: #CCFF00;
  --link: #4A5E00;
  --link-hover: #2F3C00;
  --on-ink: #D6D4CC;
  --hairline: rgba(22, 21, 15, 0.12);
  --shadow: 0 2px 0 rgba(22, 21, 15, 0.05), 0 26px 60px rgba(22, 21, 15, 0.14);
  --font-text: "Archivo", system-ui, -apple-system, sans-serif;
  --font-display: "Archivo Condensed", "Archivo", system-ui, sans-serif;
  --font-button: "Archivo SemiCondensed", "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font-text); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; }
.wrap-narrow { max-width: 760px; }

/* Header and footer, shared. */
.site-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.wordmark { color: var(--ink); text-decoration: none; font: 900 30px/0.9 var(--font-display); text-transform: uppercase; letter-spacing: -0.3px; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 -14px; }
.site-nav a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 16px; font-weight: 600; }
.site-nav a[aria-current="page"] { font-weight: 800; color: var(--ink); }
.site-foot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--graphite); }
.site-foot nav { display: flex; gap: 18px; }

/* Type. */
.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }
.label { font: 700 12px/1.4 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--link); }
.mono { font-family: var(--font-mono); }
/* The lime highlighter under the last words of a headline. */
.swash { position: relative; isolation: isolate; white-space: nowrap; }
.swash::after { content: ""; position: absolute; left: -0.07em; right: -0.09em; bottom: 0.07em; height: 0.3em; border-radius: 6px 12px 5px 10px; background: var(--lime); z-index: -1; transform: rotate(-1deg); }

/* Get-it switch: <body data-get="soon|appstore"> shows one of the two. Phase 9 of the release turns on "appstore". */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.get-button { min-height: 60px; padding: 0 26px; border-radius: 20px; display: inline-flex; align-items: center; gap: 12px; font: 800 17px/1.2 var(--font-button); text-transform: uppercase; letter-spacing: 0.6px; text-decoration: none; }
.get-ink { background: var(--ink); color: #FFFFFF; }
.get-lime { background: var(--lime); color: var(--ink); }
a.get-ink:hover { color: #FFFFFF; }
a.get-lime:hover { color: var(--ink); }
.get-note { font: 400 13px/1.4 var(--font-mono); color: var(--graphite); }
body[data-get="soon"] .get-appstore, body[data-get="appstore"] .get-soon { display: none; }

/* Screens: Simulator shots in rounded frames with a soft shadow. */
.screen { display: flex; justify-content: center; }
.screen picture { max-width: 100%; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); }
.screen-phone picture { width: 300px; }
.screen-hero picture { width: 332px; border-radius: 38px; box-shadow: 0 2px 0 rgba(22, 21, 15, 0.05), 0 30px 70px rgba(22, 21, 15, 0.16); }
.screen-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; max-width: 860px; }
.screen-pair picture { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }

/* Landing. */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 48px 0 88px; }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-text h1 { font-size: clamp(56px, 14vw, 88px); line-height: 0.9; letter-spacing: -1px; }
.lead { max-width: 540px; font-size: 20px; line-height: 30px; color: var(--graphite); }
.hero .screen { flex: 1 1 320px; }

.features { display: flex; flex-direction: column; gap: 96px; padding-bottom: 96px; }
.features > .label { margin-bottom: -60px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.feature:nth-of-type(even) { flex-direction: row-reverse; }
.feature-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-text h3 { font-size: clamp(40px, 11vw, 56px); line-height: 0.92; }
.feature-text p { max-width: 480px; font-size: 18px; line-height: 28px; color: var(--graphite); }
.feature-text p.aside { font-size: 16px; line-height: 25px; }
.feature-num { font: 700 12px/1.4 var(--font-mono); color: var(--graphite); }
.feature .screen { flex: 1 1 280px; }
.feature-wide { flex-direction: column; align-items: stretch; gap: 32px; }
.feature-wide .feature-text p { max-width: 620px; }

.band { background: var(--ink); color: #FFFFFF; border-radius: 26px; padding: 40px; display: flex; flex-direction: column; gap: 28px; margin-bottom: 64px; }
.band h2 { font-size: clamp(34px, 9vw, 44px); line-height: 0.95; color: var(--lime); }
.band-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.band-cols div { display: flex; flex-direction: column; gap: 6px; }
.band h3 { font-size: 19px; font-weight: 800; }
.band p { font-size: 16px; line-height: 25px; color: var(--on-ink); }
.band a { align-self: flex-start; min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 700; color: #FFFFFF; }
.band a:hover { color: var(--lime); }

.closing { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 0 88px; text-align: center; }
.closing h2 { font-size: clamp(40px, 11vw, 56px); line-height: 0.92; }

/* Support and privacy. */
.page-title { margin: 40px 0 28px; font-size: clamp(52px, 15vw, 72px); line-height: 0.9; letter-spacing: -0.8px; }
.page-title.dated { margin-bottom: 12px; }
.updated { margin-bottom: 28px; font: 400 13px/1.4 var(--font-mono); color: var(--graphite); }
.card { background: var(--card); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 22px; font-weight: 800; }
.card p { font-size: 17px; line-height: 26px; color: var(--graphite); }
.card-ink { background: var(--ink); color: #FFFFFF; gap: 8px; }
.card-ink h2 { font: 900 30px/1 var(--font-display); text-transform: uppercase; color: var(--lime); }
.card-ink p { color: var(--on-ink); }
.strong-link { font-weight: 700; }
.faq { display: flex; flex-direction: column; margin-top: 44px; }
.faq > .label { margin-bottom: 8px; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.faq-item h3, .versions h3 { font-size: 19px; font-weight: 800; }
.faq-item p, .version p { font-size: 16px; line-height: 25px; color: var(--graphite); }
.versions { display: flex; flex-direction: column; gap: 12px; margin-top: 44px; }
.version { display: flex; gap: 20px; align-items: baseline; }
.version-num { flex-shrink: 0; width: 56px; font: 700 15px/1.4 var(--font-mono); }
.policy { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.policy section { display: flex; flex-direction: column; gap: 10px; }
.policy h2 { font-size: 22px; font-weight: 800; }
.policy p { font-size: 16px; line-height: 26px; color: var(--graphite); }
.page-main { padding-bottom: 64px; }

/* 404. */
.not-found { padding: 64px 0 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.not-found h1 { font-size: clamp(52px, 15vw, 72px); line-height: 0.9; letter-spacing: -0.8px; }
.not-found p { font-size: 18px; line-height: 28px; color: var(--graphite); }

@media (max-width: 480px) {
  .hero { padding: 24px 0 64px; gap: 40px; }
  .features { gap: 72px; }
  .features > .label { margin-bottom: -40px; }
  .feature { gap: 32px; }
  .band { padding: 28px 24px; }
}
