@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #1F2A44;
  --ink-2: #2B3858;
  --brass: #B08D57;
  --brass-text: #85673A;
  --brass-wash: #F6EFE2;
  --paper: #FFFFFF;
  --wash: #F4F6FA;
  --rule: #D9DFE9;
  --rule-faint: #EDF0F5;
  --slate: #586072;
  --sail: #F3ECE0;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass-text); outline-offset: 3px; }

.btn {
  font: inherit; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--wash); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* header */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 40px; height: 38px; }
.word { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.word span { color: var(--brass-text); }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--slate); }
.top nav a:not(.btn):hover { color: var(--ink); }

/* hero: the page sits on ledger paper here, and only here */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 88px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule-faint) 39px 40px);
  background-position: 0 12px;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 34em; }
.quick-join { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.quick-join input[type="email"] { flex: 1 1 240px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--slate); }

input, select {
  font: inherit; font-size: 16px; color: var(--ink);
  min-height: 46px; padding: 0 14px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  width: 100%;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--brass-text); outline-offset: 1px; border-color: var(--brass-text); }
input[aria-invalid="true"] { border-color: #A23B2A; }
.form-msg { flex-basis: 100%; font-size: 15px; min-height: 0; }
.form-msg.ok { color: var(--ink); font-weight: 600; }
.form-msg.err { color: #A23B2A; }

/* the journal entry: the one card on the page */
.entry {
  margin: 0; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 24px 24px 20px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(31, 42, 68, 0.45);
}
.entry-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry-no { font-weight: 700; font-size: 16px; }
.status {
  font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  background: var(--brass-wash); color: #6B5028;
}
.entry[data-state="posted"] .status { background: var(--ink); color: var(--paper); }
.entry[data-state="rejected"] .status { background: var(--wash); color: var(--slate); }
.entry-why { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.who { display: block; font-size: 13px; color: var(--slate); margin-bottom: 4px; }
.lines { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.lines th { text-align: left; font-weight: 500; font-size: 13px; color: var(--slate); padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--rule-faint); }
.lines .num { text-align: right; width: 84px; padding-left: 12px; }
.code { color: var(--slate); margin-right: 6px; }
.lines tfoot th { font-size: 14px; font-weight: 600; color: var(--ink); padding: 12px 0 0; border: 0; }
.lines tfoot td { padding: 12px 0 0 12px; border: 0; font-weight: 700; }
.total { position: relative; }
.total::after {
  content: ""; position: absolute; right: 0; bottom: -9px; height: 5px;
  width: 100%; border-top: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform-origin: right; transform: scaleX(0.001); transition: transform 520ms cubic-bezier(.2,.7,.2,1);
}
.entry[data-state="posted"] .total::after { transform: scaleX(1); }
.entry[data-state="posted"] .total:nth-of-type(3)::after { transition-delay: 120ms; }
.entry-actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.entry-note { margin-top: 12px; font-size: 14px; color: var(--slate); }

/* sections */
section { scroll-margin-top: 24px; }
.how, .who-for, .pricing, .join { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px; }
.how h2, .pricing h2, .join h2 { font-size: 34px; line-height: 1.15; }
.sub { margin-top: 10px; color: var(--slate); }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: 14px; font-weight: 700; color: var(--brass-text); margin-bottom: 6px; }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 8px; color: var(--slate); font-size: 16px; }

.who-for { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 1px solid var(--rule); }
.audience h2 { font-size: 28px; }
.audience ul { list-style: none; margin: 20px 0 0; padding: 0; }
.audience li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule-faint); position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 4px; border-top: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); }

.guard { background: var(--ink); color: var(--sail); }
.guard-inner { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px; }
.guard h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; max-width: 16ch; color: var(--paper); }
.rules { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.rules dt { font-weight: 700; font-size: 19px; color: var(--paper); }
.rules dd { margin: 6px 0 0; color: #C9CEDA; max-width: 40ch; }

.price-table { width: 100%; margin-top: 32px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table thead th { text-align: left; font-size: 14px; font-weight: 500; color: var(--slate); padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.price-table tbody th { text-align: left; font-size: 19px; padding: 20px 24px 20px 0; vertical-align: top; width: 26%; }
.price-table td { padding: 20px 0; color: var(--slate); vertical-align: top; }
.price-table tbody tr { border-bottom: 1px solid var(--rule); }
.price-table .num { text-align: right; font-size: 26px; font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: 24px; }
.price-table thead .num { font-size: 14px; font-weight: 500; color: var(--slate); }
.firms { margin-top: 20px; color: var(--slate); }
.firms a { color: var(--ink); font-weight: 600; }

.join { border-top: 1px solid var(--rule); }
.join-form { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 760px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.join-form .btn { justify-self: start; }
.join-form .form-msg, .join-form .fine { grid-column: 1 / -1; margin-top: 0; }
[data-locations][hidden] { display: none; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 14px; color: var(--slate); }
.foot code { font-size: 13px; color: var(--ink); background: var(--wash); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .who-for { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav a:not(.btn) { display: none; }
  .how, .who-for, .pricing, .join, .guard-inner { padding-top: 64px; padding-bottom: 64px; }
  .steps, .rules, .join-form { grid-template-columns: 1fr; }
  .entry { padding: 20px 18px 18px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: 16px 0; }
  .price-table tbody th { padding: 0; width: 100%; }
  .price-table tbody .num::after { content: " a month"; font-size: 15px; font-weight: 400; color: var(--slate); }
  .price-table td { padding: 4px 0 0; }
  .price-table .num { text-align: left; padding: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .total::after { transition: none; }
}
