/* WAITLIST-PAGE: the public waitlist on lektova.com before launch. The Tidning look
   (design-reference/landing-tidning/tokens.css, src/pages/landing-tidning/tidning.css): the ember
   opening sheet with the serif headline and a pill-shaped field; the sheet keeps its colours in dark mode. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jizBRFtNs2ka5fXjeivQ4LroWlx-6zUTjnTLgNs.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7Motmp5g.woff2) format('woff2');
}

:root {
  --canvas: #f3ece4;
  --card: #fdfdfb;
  --surface: #ede6de;
  --border: #e1d6cc;
  --ink: #2a1c12;
  --muted: #706051;
  --ember: #df602a;
  --on-ember: #2a1c12;
  --ember-cream: #fdfdfb;
  --ember-text: #a94419;
  --danger-on-ember: #2a1c12;
  --shadow-float: 0 24px 48px -24px rgba(42, 28, 18, .55);
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --inset: 12px;
  --gutter: 40px;
  --radius-sheet: 28px;
  --radius-card: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16100c;
    --card: #251e18;
    --surface: #29231f;
    --border: #3a322c;
    --ink: #f3ece4;
    --muted: #c4b9ab;
    --ember-text: #e47b4e;
    --shadow-float: 0 24px 48px -24px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 24px; top: -120px; z-index: 10; padding: 10px 18px; border-radius: 999px;
  background: var(--on-ember); color: var(--ember-cream); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 24px; }

/* ---------- The ember sheet ---------- */

.sheet {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: calc(100svh - 2 * var(--inset));
  margin: var(--inset); border-radius: var(--radius-sheet);
  background: var(--ember); color: var(--on-ember);
}
/* the faint paper grain */
.sheet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sheet ::selection { background: var(--on-ember); color: var(--ember-cream); }
.sheet :focus-visible { outline-color: var(--on-ember); }

.top { display: flex; align-items: center; height: 88px; padding-inline: 36px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
/* the outlined logo (design-reference/logo): 26 px tall in the header, 22 px in the footer */
.brand svg { display: block; width: auto; height: 26px; }
.lang { display: inline-flex; margin-right: -8px; }
.lang button {
  min-width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .2s;
}
.lang button:hover, .lang button[aria-pressed="true"] { text-decoration-color: currentColor; }

.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 16px 24px 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 0 0 28px; padding: 0 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--on-ember); font-size: 14px; font-weight: 500;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember-cream); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 10vw, 132px); line-height: .94; letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero h1 em { font-style: italic; color: var(--ember-cream); padding: 0 .04em; }
.lede { max-width: 34em; margin: 26px 0 0; font-size: 19px; line-height: 1.55; }

/* ---------- The form ---------- */

.signup { width: min(640px, 100%); margin-top: 44px; }
.field {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px;
  background: var(--card); color: var(--ink); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, var(--shadow-float);
}
.field:focus-within { box-shadow: 0 0 0 2px var(--on-ember), var(--shadow-float); }
.field input {
  flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 18px; outline: none;
}
.field input::placeholder { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--ink); color: var(--canvas); font-size: 16px; font-weight: 500;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--on-ember); color: var(--ember-cream); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .7; cursor: progress; }
.sheet .btn--sheet { background: var(--on-ember); color: var(--ember-cream); }
.sheet .btn--sheet:hover { background: var(--ember-cream); color: var(--on-ember); }

.roles { margin: 22px 0 0; padding: 0; border: 0; }
.roles legend { margin: 0 auto 10px; padding: 0; font-size: 15px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--on-ember); font-size: 15px; font-weight: 500; transition: background .2s, color .2s;
}
.chip span::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background .2s, box-shadow .2s;
}
.chip input:checked + span { background: var(--on-ember); color: var(--ember-cream); }
.chip input:checked + span::before { background: var(--ember-cream); box-shadow: inset 0 0 0 4px var(--on-ember); }
.chip input:focus-visible + span { outline: 2px solid var(--on-ember); outline-offset: 3px; }

.consent {
  display: flex; align-items: flex-start; gap: 12px; max-width: 30em; margin: 22px auto 0; text-align: left;
  font-size: 15px; line-height: 1.5; cursor: pointer;
}
.consent input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--on-ember); cursor: pointer;
}
.fineprint { margin: 14px 0 0; font-size: 14px; opacity: .85; }
.message { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the answer that replaces the form */
.panel { width: min(560px, 100%); margin-top: 44px; }
.panel h2 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em;
}
.panel p { margin: 16px 0 0; font-size: 18px; }
.panel .btn { margin-top: 24px; }

/* ---------- Below the sheet ---------- */

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 72px auto 0; }
.card { padding: 36px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border); }
.card h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; }
.card h2 .stop, .privacy h2 .stop { color: var(--ember); }
.card p { margin: 14px 0 0; color: var(--muted); }

.privacy { max-width: 720px; margin: 72px auto 0; }
.privacy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.privacy p { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.privacy a { color: var(--ember-text); }

/* /integritet: the full privacy information (unlisted page) */
.legal-top { display: flex; align-items: center; gap: 24px; padding: 32px 0 0; }
.legal-top .brand { min-height: 44px; color: var(--ink); text-decoration: none; }
.legal-back { color: var(--ember-text); font-weight: 500; }
.legal .privacy { margin-top: 48px; }
.legal .privacy h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.legal .privacy h2 { margin: 28px 0 0; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); }
.legal .privacy h1 .stop { color: var(--ember); }
.legal .privacy p { font-size: 16px; }
.legal .privacy + .privacy { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); }
.fineprint a { color: inherit; text-underline-offset: 4px; }
.privacy-more a { color: var(--ember-text); }

.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 72px auto 0; padding: 28px 0 40px;
  border-top: 1px solid var(--border); font-size: 14px; color: var(--muted);
}
.foot .brand { color: var(--ink); margin-right: auto; }
.foot .brand svg { height: 22px; }
.foot a { color: var(--ember-text); }

@media (max-width: 900px) {
  :root { --inset: 8px; --gutter: 20px; }
  .top { height: 72px; padding-inline: 20px; }
  .cards { grid-template-columns: 1fr; margin-top: 48px; }
  .privacy, .foot { margin-top: 48px; }
}
@media (max-width: 560px) {
  :root { --radius-sheet: 20px; }
  .hero { padding-bottom: 40px; }
  .lede { font-size: 17px; }
  .field { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 26px; }
  .field input { padding-inline: 14px; }
  .card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
