/* Ayvede. World: a work order on Ayvede's dark surfaces. Tokens, then parts. */
:root {
  --paper: #0b1120;
  --paper-2: #0d1424;
  --slip: #101828;
  --rule: #1e2d44;
  --carbon: #2EC4A8;
  --carbon-deep: #FFFFFF;
  --ink: #e8ecf1;
  --ink-soft: #7a8ba3;
  --stamp: #C7A26B;
  --line: #1e2d44;
  --white: #FFFFFF;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --wide: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--wide); font-stretch: 100%; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-stretch: 125%; font-weight: 850; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--carbon); color: var(--slip); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; margin-top: var(--space-2); }

/* buttons */
.btn { display: inline-flex; place-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.4rem; border-radius: var(--radius); font-weight: 750; font-stretch: 110%; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--carbon); color: var(--slip); }
.btn--ink:hover { background: var(--carbon-deep); }
.btn--line { border: 2px solid var(--ink); }
.btn--line:hover { background: var(--paper-2); }
.btn--small { min-height: 42px; padding: 0.5rem 1rem; font-size: 1rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--line); }
.top__row { display: flex; place-items: center; gap: var(--space-3); min-height: 64px; }
.mark { font-weight: 900; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.top__nav { display: flex; gap: var(--space-3); font-weight: 600; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { text-decoration: underline; }

/* hero */
.hero { padding: var(--space-5) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); place-items: center stretch; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.02; max-width: 17ch; font-stretch: 112%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.hero__note { margin-top: var(--space-2); font-weight: 600; }

/* work order slip */
.slip {
  position: relative; margin: 0; padding: var(--space-3);
  background-color: var(--slip);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 2.1rem; background-position: 0 3.4rem;
  border: 2px solid var(--line); border-radius: 4px;
  transform: rotate(1.2deg);
}
.slip__head { display: flex; justify-content: space-between; place-items: baseline; padding-bottom: 0.6rem; border-bottom: 3px double var(--line); }
.slip__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; }
.slip__no { color: var(--stamp); font-weight: 700; }
.slip__rows { margin: 0.8rem 0 0; display: grid; gap: 0.6rem; }
.slip__rows div { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.75rem; }
.slip dt { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding-top: 0.2rem; }
.slip dd { margin: 0; color: var(--carbon); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.checks li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.5rem; }
.checks li::before {
  content: ""; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; border: 2px solid var(--carbon); border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%232EC4A8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.stamp {
  position: absolute; right: 1rem; bottom: -1.1rem; padding: 0.35rem 0.8rem;
  border: 3px solid var(--stamp); border-radius: 4px; color: var(--stamp); background: rgb(16 24 40 / 0.92);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
  transform: rotate(-7deg);
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-land 420ms var(--ease-out) 500ms both; }
  @keyframes stamp-land { from { opacity: 0; transform: rotate(-7deg) scale(1.35); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
}

/* sample */
.sample { background: var(--slip); color: var(--ink); padding: var(--space-5) 0; border-top: 2px solid var(--line); }
.sample__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); place-items: center stretch; }
.sample h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; }
.sample p { margin-top: var(--space-2); max-width: 44ch; color: var(--ink-soft); }
.facts { margin: var(--space-3) 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-weight: 600; }
.facts li { padding-left: 1.4rem; background: linear-gradient(var(--carbon), var(--carbon)) 0 0.72em / 0.7rem 2px no-repeat; }
.sample .btn--ink { background: var(--carbon); color: var(--paper); }
.sample .btn--ink:hover { background: var(--carbon-deep); }
.shots { position: relative; padding-bottom: 8%; }
.shots__desk { width: 88%; border-radius: 8px; border: 3px solid var(--line); }
.shots__phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 18px; border: 5px solid var(--line); }

/* prices */
.prices { padding: var(--space-5) 0; }
.prices h2, .how h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; }
.sheet { margin-top: var(--space-4); overflow-x: auto; background: var(--slip); border: 2px solid var(--line); border-radius: 4px; }
.sheet table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sheet th, .sheet td { all: unset; display: table-cell; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--rule); }
.sheet thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); border-bottom: 3px double var(--line); padding-top: 0.9rem; padding-bottom: 0.7rem; }
.sheet tbody th { font-weight: 850; font-stretch: 120%; font-size: 1.15rem; white-space: nowrap; }
.sheet td:nth-child(2) { max-width: 52ch; color: var(--ink-soft); }
.sheet td:nth-child(3) { white-space: nowrap; }
.sheet tbody td.r { font-family: var(--mono); font-weight: 700; font-size: 1.4rem; color: var(--white); white-space: nowrap; }
.sheet__care { background: var(--paper); }
.sheet tbody tr:last-child > * { border-bottom: 0; }
.terms { margin-top: var(--space-2); color: var(--ink-soft); max-width: 70ch; }

/* how */
.how { padding: var(--space-5) 0; background: var(--paper-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.steps { list-style: none; counter-reset: step; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.steps li { counter-increment: step; border-top: 3px solid var(--line); padding-top: var(--space-2); }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-weight: 700; font-stretch: 125%; font-size: 2.4rem; line-height: 1; color: var(--carbon); margin-bottom: 0.5rem; }
.steps strong { display: block; font-stretch: 115%; }
.wont { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); max-width: 60ch; }
.wont h3 { font-size: 1.3rem; }
.wont p { margin-top: 0.4rem; }

/* contact */
.contact { padding: var(--space-5) 0; }
.contact__inner { display: grid; justify-items: start; gap: var(--space-2); }
.contact h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; max-width: 16ch; }
.contact__lines { display: grid; gap: 0.5rem; margin-top: var(--space-1); }
.contact__line { font-weight: 900; font-stretch: 115%; font-size: clamp(1.6rem, 4vw, 2.6rem); text-decoration: none; color: var(--carbon); }
.contact__line[data-todo] { outline: 2px dashed var(--stamp); outline-offset: 4px; }
.contact__by { color: var(--ink-soft); }

.foot { background: var(--paper-2); color: var(--ink-soft); border-top: 1px solid var(--line); padding: var(--space-3) 0; font-size: 0.95rem; }

/* breakpoints */
@media (max-width: 900px) {
  .hero__grid, .sample__grid { grid-template-columns: 1fr; }
  .slip { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .top__nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .slip { transform: none; }
  .slip__rows div { grid-template-columns: 1fr; gap: 0.2rem; }
  .sheet table { min-width: 0; }
  .sheet thead { display: none; }
  .sheet tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--rule); }
  .sheet tr:last-child { border-bottom: 0; }
  .sheet th, .sheet td { display: block; padding: 0; border: 0; }
  .sheet tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .sheet tbody td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; font-size: 0.95rem; font-weight: 600; }
  .sheet tbody td.r { grid-column: 2; grid-row: 1; font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

/* intake page */
.intake { padding: var(--space-5) 0; }
.intake h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; max-width: 18ch; font-stretch: 112%; }
.prep { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); max-width: 62ch; }
.prep li { border-top: 2px solid var(--line); padding-top: var(--space-2); }
.prep strong { display: block; font-stretch: 115%; color: var(--white); }
.prep span { color: var(--ink-soft); }
.intake__send { margin-top: var(--space-4); display: grid; justify-items: start; gap: var(--space-2); }
.contact__line { overflow-wrap: anywhere; }
