/* Inkbee site styles. Tokens mirror inkbee-docs/design-system/tokens.json (Honey & Ink, v2). */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --ground: #F7F2E8;
  --surface: #FCF9F3;
  --text: #1E1B16;
  --text-2: #5E574B;
  --rule: #E5DDCE;
  --honey: #F2B930;
  --honey-wash: #F5DA9B;
  --honey-deep: #A8730A;
  --ink-std-1: #2F5486;
  --ink-std-1-tint: #E1E7F0;
  --ink-std-3: #6A3F8C;
  --ink-custom-1: #9A3328;

  --serif: Literata, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 56px;

  --radius-mark: 3px;
  --radius-card: 12px;
  --radius-pill: 22px;

  --duration-breathe: 3200ms;
  --duration-stagger: 530ms;
  --ease-breathe: cubic-bezier(0.37, 0, 0.63, 1);

  --measure: 600px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1A1815;
    --surface: #23201C;
    --text: #E9E2D4;
    --text-2: #A8A091;
    --rule: #35312B;
    --honey: #E8A92A;
    --honey-wash: #5C461C;
    --honey-deep: #E8A92A;
    --ink-std-1: #8FB0E8;
    --ink-std-1-tint: #2A3344;
    --ink-std-3: #C7A2E6;
    --ink-custom-1: #F29A86;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 31px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-std-1);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink-std-1);
  outline-offset: 2px;
}

.page {
  max-width: calc(var(--measure) + 2 * var(--space-5));
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-7);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header: seal, then wordmark */

.site-header {
  display: flex;
  align-items: center;
  padding-bottom: var(--space-7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 26px;
  height: 26px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wordmark svg {
  height: 0.27em;
  width: auto;
  margin-left: 0.08em;
  vertical-align: baseline;
  fill: var(--honey);
}

/* Type */

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: 38px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-5);
  text-wrap: balance;
}

h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-3);
}

p,
ul {
  margin: 0 0 var(--space-5);
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: var(--space-2);
}

.lede {
  color: var(--text);
}

.muted {
  color: var(--text-2);
}

/* Specimen: a passage with your highlight and an inkling's mark */

.specimen {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.specimen p {
  margin: 0;
}

.mark-you {
  color: inherit;
  background: var(--honey-wash);
  border-radius: var(--radius-mark);
  padding: 0.04em 0.12em;
  margin: 0 -0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mark-inkling {
  background-image: linear-gradient(var(--ink-std-3), var(--ink-std-3));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 calc(100% - 0.02em);
  padding-bottom: 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.notes {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.note {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
}

.note-label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.cell {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cell .hex {
  stroke-width: 1.2;
}

.cell .glyph {
  fill: var(--surface);
}

.cell-you .hex {
  fill: var(--honey);
  stroke: var(--honey-deep);
}

.cell-skeptic .hex {
  fill: var(--ink-std-3);
  stroke: var(--ink-std-3);
}

.cell-historian .hex {
  fill: var(--ink-std-1);
  stroke: var(--ink-std-1);
}

.breathe {
  transform-origin: center;
  animation: breathe var(--duration-breathe) var(--ease-breathe) infinite;
}

.breathe.later {
  animation-delay: var(--duration-stagger);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .breathe {
    animation: none;
  }
}

/* Waitlist */

.waitlist {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}

.waitlist h2 {
  margin-top: 0;
}

.waitlist form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.waitlist input[type="email"] {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 var(--space-4);
  font: 400 16px/1 var(--sans);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
}

.waitlist input[type="email"]::placeholder {
  color: var(--text-2);
}

button {
  min-height: 44px;
  padding: 0 var(--space-5);
  font: 600 14px/1 var(--sans);
  color: var(--ground);
  background: var(--text);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
  margin: var(--space-3) 0 0;
  min-height: 21px;
}

.form-status[data-state="error"] {
  color: var(--ink-custom-1);
}

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

.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;
}

/* Footer */

.site-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: var(--space-5);
}

.site-footer a {
  color: var(--text-2);
}

@media (max-width: 480px) {
  body {
    font-size: 18px;
    line-height: 29px;
  }

  h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .site-header {
    padding-bottom: var(--space-6);
  }

  .specimen {
    padding: var(--space-4);
  }
}
