/* Framework Foods — teaser site
   Brand tokens from the Framework identity: paper, ink, graphite, rule, cinnamon.
   Type: Schibsted Grotesk (names, numbers, reading), IBM Plex Mono (labels). */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-400-v5.3.0.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-600-v5.3.0.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-800-v5.3.0.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-v5.3.0.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #141414;
  --graphite: #55554f;
  --body: #2b2b28;
  --rule: #d9d9d4;
  --accent: #9a3412; /* cinnamon, 7.3:1 on paper */
  --on-accent: #ffffff;
  --band-bg: #141414;
  --band-fg: #ffffff;
  --band-muted: #b5b5ae;
  --band-rule: #55554f;
  --band-accent: #e07a4f;
  --danger: #9f1239;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --ink: #f4f4f0;
    --graphite: #a3a39b;
    --body: #dcdcd6;
    --rule: #34342f;
    --accent: #e07a4f;
    --on-accent: #141414;
    --band-bg: #1c1c1a;
    --band-fg: #f4f4f0;
    --band-muted: #a3a39b;
    --band-rule: #3a3a36;
    --band-accent: #e07a4f;
    --danger: #fb7185;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dot {
  color: var(--accent);
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover {
  color: var(--ink);
}
.header-cta {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  white-space: nowrap;
}
.header-cta:hover {
  color: var(--on-accent);
  background: var(--accent);
}

/* ---------- Hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-wrap: balance;
}
.lead {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.body {
  margin: 0;
  max-width: 34em;
  color: var(--body);
  font-size: 19px;
  text-wrap: pretty;
}

/* ---------- Join form ---------- */

.join {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  margin-top: 8px;
  scroll-margin-top: 24px;
}
.join label {
  font-size: 15px;
  font-weight: 600;
}
.join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.join input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.join input[type="email"]::placeholder {
  color: var(--graphite);
}
.join input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}
.join button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.join button:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.join button[disabled] {
  cursor: progress;
  opacity: 0.7;
}
.join-note {
  margin: 0;
  font-size: 14px;
  color: var(--graphite);
}
.join-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 16px;
  font-weight: 600;
}
.join-status:empty {
  min-height: 0;
}
.join-status[data-state="error"] {
  color: var(--danger);
}
.join-status[data-state="ok"] {
  color: var(--ink);
}
.join[data-state="done"] .join-row,
.join[data-state="done"] > label,
.join[data-state="done"] .join-note {
  display: none;
}
.join[data-state="done"] .join-status {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Honeypot: off-screen for humans and assistive tech; bots still see a field. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- The frame ---------- */

.frame {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Four corner brackets: two on the frame itself, two on an inset overlay. */
.frame > .corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.frame::before,
.frame::after,
.frame > .corners::before,
.frame > .corners::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}
.frame::before {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
}
.frame::after {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
}
.frame > .corners::before {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.frame > .corners::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
}
.frame-figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.frame-number {
  font-size: clamp(76px, 9vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.frame-caption {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 9em;
}
.allergens {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 6px 28px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
}
.allergens li {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.add-ins {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Rules band ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-fg);
}
.band .wrap {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.band h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18em;
}
.band .dot {
  color: var(--band-accent);
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}
.rules li {
  border-top: 1px solid var(--band-rule);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 19px;
  line-height: 1.4;
}
.rules .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--band-muted);
}

/* ---------- Simple pages (thanks, oops, privacy, 404) ---------- */

.page {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
  max-width: 760px;
}
.page h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 20px;
}
.page h2 {
  margin: 36px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page p,
.page li {
  color: var(--body);
  font-size: 18px;
}
.page p {
  margin: 0 0 14px;
}
.page ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.back {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 15px;
  color: var(--graphite);
}
.site-footer .wordmark {
  font-size: 22px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}
.footer-domain {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .frame {
    max-width: 520px;
  }
}
@media (max-width: 420px) {
  .header-cta {
    padding: 10px 14px;
    font-size: 15px;
  }
  .wordmark {
    font-size: 26px;
  }
  .join button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
