/* eddytwist.com — studio home, direction "Swell" (BUBA-281): warm paper, ink, a sea of ridgelines with the sun going
   down behind it. Candidates and the comparison: studio/design/directions-2026-10-31/. */
:root {
  color-scheme: light;
  --paper: #f3ede3;
  --paper-2: #ebe3d6;
  --plate: #efe7da;
  --ink: #142231;
  --muted: #4b5866;
  --faint: #56606a;
  --sun: #f2ac34;
  --coral: #e2683a;
  --line: rgba(20, 34, 49, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain. */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: 0.32; 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 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; }
.wrap { width: min(100% - 48px, 1280px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 60; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.mark { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.bar-links { display: flex; gap: 4px; }
.bar-links a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.bar-links a:hover { color: var(--ink); background: rgba(20, 34, 49, 0.06); }

/* ---------- Hero: type, then the plate ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 24px 48px;
  padding-top: clamp(32px, 6vw, 88px);
}
h1 {
  margin: 0 0 0 -0.055em;
  font-weight: 700;
  font-size: clamp(64px, 13.2vw, 196px);
  line-height: 0.84;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.hero-side { padding-bottom: 10px; }
.lede { margin: 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.38; letter-spacing: -0.01em; }
.gloss { display: grid; gap: 6px; margin: 24px 0 0; font: 400 13px/1.5 var(--mono); }
.gloss div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.gloss dt { color: #a6461c; font-weight: 600; }
.gloss dd { margin: 0; color: var(--muted); text-wrap: balance; }

.plate {
  grid-column: 1 / -1;
  margin: clamp(24px, 3vw, 40px) 0 0;
}
.swell {
  display: block;
  width: 100%;
  height: clamp(340px, 38vw, 520px);
  border-radius: 28px;
  background: linear-gradient(180deg, #f5ecdd 0%, #f6e2c4 44%, #f3d3ab 52%, var(--plate) 52.2%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(64, 44, 20, 0.08),
    0 12px 28px rgba(64, 44, 20, 0.08),
    0 36px 80px rgba(64, 44, 20, 0.10);
}
figcaption { display: flex; gap: 16px; margin-top: 16px; font: 400 12px/1.5 var(--mono); color: var(--faint); }
figcaption span { color: var(--ink); font-weight: 600; }

/* ---------- Products: editorial rows ---------- */
.products { padding: clamp(80px, 10vw, 140px) 0 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
h2 { margin: 0; font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.05; }
.count { font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.num { align-self: start; font: 500 14px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 26px; }
.row-title { display: flex; align-items: center; gap: 20px; }
h3 { margin: 0; font-weight: 700; font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; }
.status { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9aa1a8; }
.dot-live { background: var(--coral); }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--coral); animation: halo 3.2s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.blurb { margin: 16px 0 0; color: var(--muted); max-width: 58ch; }
.row-side { display: flex; justify-content: flex-end; }
.app-icon { flex: none; width: 64px; height: 64px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px rgba(20, 34, 49, 0.18); }
.btn-ink:hover { background: #0b1520; }
.btn-soft { background: #e4dacb; color: var(--ink); }
.btn-soft:hover { background: #dcd0be; }

/* ---------- Contact and footer ---------- */
.contact { padding: clamp(80px, 9vw, 128px) 0; }
.contact p { margin: 16px 0 0; }
.mail {
  font-weight: 700; font-size: clamp(24px, 7vw, 72px); letter-spacing: -0.05em; line-height: 1.1;
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; text-decoration-color: var(--sun);
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration-color: var(--coral); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 28px 0 40px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row-side { grid-column: 2; justify-content: flex-start; }
  .actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .bar { height: 68px; }
  .swell { height: 380px; border-radius: 22px; }
  figcaption { flex-direction: column; gap: 2px; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .num { padding-top: 0; }
  .row-side { grid-column: 1; }
  .row-title { gap: 16px; }
  .app-icon { width: 48px; height: 48px; }
}
@media (max-width: 360px) { .wrap { width: calc(100% - 32px); } .btn { padding: 0 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live::after { animation: none; opacity: 0; }
  .btn { transition: none; }
}
