/* lora-latin-400-normal */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/lora-latin-400-normal.woff2) format('woff2');
}
/* lora-latin-400-italic */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/lora-latin-400-italic.woff2) format('woff2');
}
/* lora-latin-500-normal */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/lora-latin-500-normal.woff2) format('woff2');
}
/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2');
}
/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2');
}
/* Theme "warm newspaper page": tokens. Source of truth for values and widths: open_design/DESIGN.md. */
:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --soft: #E9F1EF;
  --fg: #1E3A3A;
  --fg-2: #3E5553;
  --muted: #5F6F6C;
  --border: #E3DDD2;
  /* Field and choice borders: 3.8:1 on paper and 4.0:1 on white (WCAG 1.4.11 asks 3:1). */
  --control-border: #857E71;
  --accent: #C2461F;
  --accent-deep: #A63A18;
  --accent-on: #FFFFFF;
  --ink: #1E3A3A;
  --lavender: #F3D9CC;
  --lavender-soft: #FBEEE7;
  --error-ink: #A11E2E;
  --success: #2E7D4F;
  --success-soft: #E6F3EA;
  --success-ink: #14532D;
  /* On the green of the header, the footer and the subscribe strip. */
  --on-ink: #FBF7F1;
  --on-ink-soft: #E9F1EF;
  --link-on-ink: #F0A184;

  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --tracking-display: -0.01em;

  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-tag: 4px;
  --radius-sm: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --tap: 44px;

  /* Article text: Lora 400. Size, leading and column follow the width (see the media queries in article.css). */
  --article-size: 18px;
  --article-leading: 1.6;
  --article-measure: 100%;
}

@media (min-width: 768px) {
  :root { --article-size: 19px; --article-leading: 1.6; --article-measure: 600px; }
}
@media (min-width: 1024px) {
  :root { --article-size: 20px; --article-leading: 1.6; --article-measure: 636px; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: var(--text-base) / 1.5 var(--font-body);
  color: var(--fg-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p, li, dd { overflow-wrap: anywhere; }
strong, b { font-weight: 600; }

a { color: var(--accent); text-underline-offset: 4px; }
@media (hover: hover) { a:hover { color: var(--accent-deep); } }

button, input, textarea, select { font: inherit; }
button, a, summary, select { touch-action: manipulation; }
button, summary, select { cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none !important; }

.container { width: min(calc(100% - 48px), var(--container-max)); margin-inline: auto; }
@media (max-width: 767px) { .container { width: calc(100% - 32px); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: var(--space-2); left: var(--space-2); z-index: 100;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
/* The lead of a page: the same italic as the dek of an article. */
.lead { font: italic 400 18px / 1.5 var(--font-display); color: var(--fg-2); max-width: 60ch; }
@media (min-width: 768px) { .lead { font-size: 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The landing page of an attempt (specs/landing.md §5): simple, honest, mobile first. The tokens, the fonts and the base rules are the
   main site's (src/styles/tokens.css and base.css, put in front of this file by `landings:build`); nothing here comes from outside
   and nothing is inline: the policy of the page allows style from its own file only (specs/landing.md §8.1). */

.preview-strip {
  background: var(--accent-deep); color: #FFFFFF; font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; text-align: center; padding: var(--space-2) var(--space-4);
}

.site-header { background: var(--ink); color: var(--on-ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); min-height: 56px; padding-block: var(--space-1); }
.site-header a { color: var(--on-ink); text-decoration: none; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; display: inline-flex; align-items: center; min-height: var(--tap); }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--link-on-ink); }
@media (hover: hover) { .site-header a:hover { color: var(--link-on-ink); } }
/* "Cancel and get a refund" (specs/landing.md §17.1): in the header of every page, a link as plain and as visible as the brand next to it, never small print. */
.site-header .header-refund { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.page { padding-block: var(--space-8) var(--space-12); display: grid; gap: var(--space-8); max-width: 44rem; }
@media (min-width: 768px) { .page { padding-block: var(--space-12) var(--space-16); gap: var(--space-12); } }

/* The status comes first, next to the headline, and is never small print (specs/landing.md §5.1). */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: var(--text-lg); color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--lavender); color: var(--ink); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em;
}
.hero { display: grid; gap: var(--space-4); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
@media (max-width: 767px) { .card { padding: var(--space-4); border-radius: var(--radius-sm); } }
.page h2 { font-size: var(--text-xl); }

.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-top: 1px solid var(--border); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: var(--text-sm); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { color: var(--fg); display: grid; gap: var(--space-2); }
.facts ul { margin: 0; padding-left: 1.25em; display: grid; gap: var(--space-1); }
@media (min-width: 768px) {
  .facts > div { grid-template-columns: 11rem 1fr; gap: var(--space-6); }
}

.actions { display: grid; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-on); box-shadow: 0 6px 16px rgba(166, 58, 24, 0.22);
}
@media (hover: hover) { .btn-primary:hover { color: var(--accent-on); filter: brightness(1.06); } }
.btn-off { background: var(--border); color: var(--muted); cursor: not-allowed; }
@media (max-width: 767px) { .actions .btn { width: 100%; } }

.seller dl { display: grid; gap: var(--space-2); margin: 0; }
.seller dl > div { display: grid; gap: 0; }
.seller dt { font-size: var(--text-sm); color: var(--muted); }
.seller dd { color: var(--fg); }
@media (min-width: 768px) { .seller dl > div { grid-template-columns: 11rem 1fr; gap: var(--space-6); } }

.pending { padding: var(--space-4); border: 2px dashed var(--control-border); border-radius: var(--radius-sm); font-family: var(--font-mono); color: var(--ink); }

.site-footer { margin-top: auto; padding-block: var(--space-6); background: var(--ink); color: var(--on-ink-soft); }
.site-footer .container { display: grid; gap: var(--space-2); }
.site-footer a { color: var(--link-on-ink); }
.site-footer .muted { color: #B9CCC8; }

/* The trial host (specs/landing.md §3.4): the banner stands first on every page and is never small print; the note the button leads to is as plain. */
.trial-banner {
  background: var(--error-ink); color: #FFFFFF; font-size: var(--text-base); font-weight: 600;
  text-align: center; padding: var(--space-3) var(--space-4);
}
.trial-note { padding: var(--space-3) var(--space-4); border: 2px solid var(--error-ink); border-radius: var(--radius-sm); color: var(--error-ink); font-weight: 600; }
.trial-note:target { background: var(--lavender-soft); }

