/* Sakukin - one page, no framework.
   Tokens first, then layout, then components. */

:root {
  --paper: #faf8f3;
  --paper-deep: #f3efe5;
  --ink: #14130f;
  --ink-soft: #3a352c;
  --muted: #6e675c;
  --rule: #ddd6c7;
  --rule-strong: #c6bda9;
  --accent: #1e5c46;
  --accent-soft: #e7efe9;
  --accent-ink: #f7f5ef;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.6vw, 1.3rem);
  --step-2: clamp(1.4rem, 2.4vw, 1.75rem);
  --step-3: clamp(1.85rem, 3.6vw, 2.6rem);
  --step-4: clamp(2.5rem, 6.4vw, 4.25rem);
}

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

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

section[id],
main[id] {
  scroll-margin-top: 5.5rem;
}

.cta-short {
  display: none;
}
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 50;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- type helpers ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--rule-strong);
  flex: none;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.section--flush {
  border-top: 0;
}

.section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head h2 {
  font-size: var(--step-3);
  max-width: 22ch;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  flex: none;
}

.brand__word {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.75rem);
  font-size: 0.9375rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  min-height: 2.75rem;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--small {
  padding: 0.6rem 0.95rem;
  min-height: 2.35rem;
  font-size: 0.875rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 6.5rem 100%;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  margin-block: 1.5rem 1.5rem;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* the ledger sheet */

.sheet {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0.35rem 0.35rem 0 -1px var(--paper-deep);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
}

.sheet__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sheet__rows li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  grid-template-areas:
    "no name status"
    "no meta status";
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.sheet__rows li:last-child {
  border-bottom: 0;
}

.sheet__no {
  grid-area: no;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.sheet__name {
  grid-area: name;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.2;
}

.sheet__meta {
  grid-area: meta;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.sheet__status {
  grid-area: status;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.sheet figcaption {
  padding: 0.75rem 0.95rem;
  border-top: 1px solid var(--rule-strong);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- rules ---------- */

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.rules li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.rules li:nth-child(odd) {
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.rules li:nth-child(even) {
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rule);
}

.rules b {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.2rem;
  letter-spacing: 0.04em;
}

.rules h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.rules p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ---------- products ---------- */

.products {
  display: grid;
  gap: 0;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.product:first-child {
  border-top: 0;
  padding-top: 0;
}

.product__side h3 {
  font-size: var(--step-2);
  margin-block: 0.75rem 0.5rem;
}

.product__side .kicker {
  color: var(--accent);
}

.product__side .kicker::before {
  background: var(--accent);
}

.product__tagline {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}

.product__body {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.product__body p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.3rem 0.5rem;
}

.product__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.product__link:hover {
  color: var(--ink);
}

/* ---------- audience ---------- */

.audience {
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
}

.audience blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.2;
  max-width: 26ch;
  text-wrap: balance;
}

.audience p {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---------- facts ---------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.facts th,
.facts td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

.facts th {
  width: 11rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-right: 1.5rem;
}

.facts td {
  color: var(--ink);
}

.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 0;
}

/* ---------- questions ---------- */

.questions {
  border-top: 1px solid var(--rule);
}

.questions details {
  border-bottom: 1px solid var(--rule);
}

.questions summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  flex: none;
}

.questions details[open] summary::after {
  content: "\2212";
}

.questions details p {
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- founder ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.founder blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.35;
  text-wrap: pretty;
}

.founder blockquote p + p {
  margin-top: 1rem;
}

.founder figcaption {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder__label {
  align-self: start;
}

/* ---------- waitlist ---------- */

.waitlist {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.waitlist__aside .fine {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 34ch;
  color: #a9a294;
}

.waitlist .kicker {
  color: #b9cfc4;
}

.waitlist .kicker::before {
  background: #6f8a7c;
}

.waitlist h2 {
  font-size: var(--step-3);
  max-width: 18ch;
  margin-block: 1.25rem 1rem;
}

.waitlist .lede {
  color: #d8d2c4;
  max-width: 32em;
}

.waitlist__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.waitlist form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.choice legend {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9cfc4;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: #1e1d19;
  border: 1px solid #4a453b;
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  min-height: 3rem;
}

input[type="email"]::placeholder {
  color: #8b8577;
}

input[type="email"]:focus-visible {
  outline: 2px solid #8fbfa9;
  outline-offset: 1px;
}

.choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  border: 1px solid #4a453b;
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  min-height: 2.5rem;
}

.choice label:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
}

.choice input {
  accent-color: #8fbfa9;
}

.waitlist .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  justify-self: start;
}

.waitlist .btn:hover {
  background: #8fbfa9;
  border-color: #8fbfa9;
  color: var(--ink);
}

.waitlist .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  min-height: 1.1rem;
  font-size: 0.875rem;
  color: #b9cfc4;
}

.form-status[data-state="error"] {
  color: #f0a89a;
}

.form-status[data-state="done"] {
  color: #a8e0bf;
}

.fine {
  font-size: 0.8125rem;
  color: #a49d8e;
  max-width: 40ch;
}

.fine--spaced {
  margin-top: 1.5rem;
}

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

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

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: #a49d8e;
  border-top: 1px solid #2c2a24;
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-foot a {
  color: #d8d2c4;
}

.site-foot__legal {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #948d7f;
  max-width: 50ch;
}

/* ---------- press ---------- */

.page-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: var(--step-3);
  margin-block: 1.25rem 1rem;
}

.prose {
  display: grid;
  gap: 1.25rem;
  max-width: 62ch;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0;
  padding-left: 1.1rem;
}

.prose li {
  margin-block: 0.35rem;
}

.assets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.asset {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  background: var(--paper-deep);
  min-width: 9rem;
}

.asset svg {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
}

.asset a {
  font-size: 0.8125rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .audience__grid,
  .founder,
  .waitlist__grid,
  .product {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__grid {
    gap: 2.5rem;
  }

  .sheet {
    max-width: 30rem;
  }

  .product {
    gap: 1.25rem;
  }

  .founder__label {
    display: none;
  }

  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules li:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .rules li:nth-child(odd) {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .nav a:nth-child(1),
  .nav a:nth-child(3) {
    display: none;
  }

  .nav {
    gap: 0.9rem;
  }

  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .facts th {
    width: 8rem;
  }

  .site-head__inner {
    min-height: 3.75rem;
  }
}

