/* One Hand Studio site — shared tokens and parts for every direction.
   Brand source: Forge Design «OHS -> Logo» guideline (palette, Manrope, IBM Plex Mono).
   Colour roles: red = action (buttons, link accents, focus), peach = warm colour field (a surface, never a status),
   ink/paper = text and surfaces. */

@font-face { font-family: "Manrope"; src: url("assets/Manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #090b10;
  --ink-2: #11141b;
  --ink-3: #1a1e27;
  --paper: #fcfcfa;
  --paper-2: #f2f1ec;
  --red: #e50914;
  --red-hover: #ff2a34;
  --red-press: #b8060f;
  --peach: #ffbc82;
  --peach-2: #ffd3ab;

  /* 4/8 spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* fixed type scale */
  --t12: 12px; --t14: 14px; --t16: 16px; --t20: 20px; --t24: 24px; --t32: 32px; --t40: 40px; --t48: 48px; --t64: 64px; --t96: 96px; --t128: 128px;

  --margin: 64px;
  --maxw: 1312px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --fast: 160ms;
  --mid: 240ms;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}
@media (max-width: 1100px) { :root { --margin: 40px; } }
@media (max-width: 640px) { :root { --margin: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s9); }
body { margin: 0; font-family: var(--font); font-size: var(--t16); line-height: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--margin) * 2); margin: 0 auto; padding: 0 var(--margin); }

.skip { position: absolute; left: var(--s4); top: -64px; z-index: 50; padding: var(--s3) var(--s4); background: var(--red); color: var(--paper); font-weight: 700; text-decoration: none; transition: top var(--fast) var(--ease-out); }
.skip:focus-visible { top: var(--s4); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 56px; padding: 0 var(--s6); border: 0; border-radius: 0; font-family: var(--font); font-size: var(--t16); font-weight: 800; line-height: 24px; text-decoration: none; cursor: pointer; transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), transform var(--fast) var(--ease-out); }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--red); color: var(--paper); box-shadow: 0 4px 0 var(--red-press); }
.btn-primary:hover { background: var(--red-hover); }
.btn-primary:active { background: var(--red-press); box-shadow: 0 2px 0 var(--red-press); }
.btn-sm { height: 40px; padding: 0 var(--s5); font-size: var(--t14); line-height: 20px; box-shadow: 0 2px 0 var(--red-press); }
.btn-sm:active { box-shadow: 0 0 0 var(--red-press); }
.btn .key { width: 16px; height: 16px; flex: none; }

/* Borderless text link: hover lights only the text (and its underline). */
.tlink { position: relative; display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) 0; font-weight: 700; text-decoration: none; cursor: pointer; transition: color var(--fast) var(--ease-out); }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(.0001); transform-origin: left; transition: transform var(--mid) var(--ease-out), background-color var(--fast) var(--ease-out); }
.tlink:hover::after { transform: scaleX(1); background: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ── Message form ───────────────────────────────────── */
.msg-form { display: grid; gap: var(--s5); transition: opacity var(--fast) var(--ease-in), transform var(--fast) var(--ease-in); }
.msg-form[data-leaving] { opacity: 0; transform: translateY(-8px); }
.field { display: grid; gap: var(--s2); }
.field label { font-size: var(--t14); line-height: 20px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 56px; padding: var(--s4); border: 1px solid var(--field-line); border-radius: 0; background: var(--field-bg); color: var(--fg); font: 500 var(--t16) / 24px var(--font); transition: border-color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--field-hover); background: var(--field-bg-hover); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); background: var(--field-bg); }
.field [aria-invalid] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field-error { display: flex; gap: var(--s2); font-size: var(--t14); line-height: 20px; font-weight: 500; color: var(--error); }
.field-error::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 4px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v2H1z'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v2H1z'/%3E%3C/svg%3E") center / 100% no-repeat; }
.field-foot { display: flex; justify-content: space-between; gap: var(--s4); }
.count { margin-left: auto; font-family: var(--mono); font-size: var(--t12); line-height: 20px; color: var(--muted); }
.count[data-near] { color: var(--fg); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.send:disabled { cursor: progress; }
.send .dots { display: none; gap: 4px; }
.send .dots i { width: 6px; height: 6px; background: currentColor; animation: dot 900ms steps(1) infinite; }
.send .dots i:nth-child(2) { animation-delay: 150ms; } .send .dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 100% { opacity: .25; } 33% { opacity: 1; } }
.msg-form[data-sending] .send .dots { display: inline-flex; }
.form-status { font-size: var(--t14); line-height: 20px; color: var(--muted); }
.form-status[data-error] { color: var(--error); font-weight: 500; }
.msg-sent { display: grid; justify-items: start; gap: var(--s3); padding: var(--s6) 0; border-top: 2px solid var(--fg); animation: arrive var(--mid) var(--ease-out); outline: 0; }
.sent-icon { width: 32px; height: 32px; color: var(--fg); }
.msg-sent h3 { font-size: var(--t32); line-height: 40px; font-weight: 800; letter-spacing: -.02em; }
.sent-text { font-size: var(--t16); line-height: 24px; color: var(--muted); }
.again { margin-top: var(--s2); border: 0; background: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

/* ── Header (over each direction's hero art) ─────────── */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--t20); line-height: 28px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; transition: color var(--fast) var(--ease-out); }
.brand img { width: 34px; height: 48px; }
.brand:hover span { color: var(--peach-2); }

/* Studio */
.studio { padding: var(--s10) 0; }
.studio-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: end; }
.studio h2, .contact h2 { font-size: var(--t48); line-height: 56px; font-weight: 800; letter-spacing: -.025em; }
.studio h2 { grid-column: 1 / span 6; }
.studio-lead { grid-column: 7 / span 6; font-size: var(--t24); line-height: 36px; font-weight: 500; color: var(--muted); }
.crafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin: var(--s8) 0 0; padding: 0; list-style: none; }
.crafts-item { padding-top: var(--s6); border-top: 1px solid var(--line); }
.crafts-icon { width: 32px; height: 32px; color: var(--icon, currentColor); }
.crafts h3 { margin-top: var(--s5); font-size: var(--t24); line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.crafts p { margin-top: var(--s2); color: var(--muted); }

/* Contact */
.contact { padding: var(--s10) 0; background: var(--contact-bg, transparent); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); align-items: start; }
.contact-intro { grid-column: 1 / span 5; }
.contact-lead { margin-top: var(--s4); font-size: var(--t20); line-height: 28px; color: var(--muted); }
.contact-main { grid-column: 7 / span 6; }

/* Footer */
.site-foot { padding: var(--s7) 0; border-top: 1px solid var(--line); background: var(--foot-bg, transparent); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s6); }
.foot .brand { font-size: var(--t16); line-height: 24px; }
.legal { font-size: var(--t14); line-height: 20px; color: var(--muted); }

@media (max-width: 860px) {
  .studio-head { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
  .studio h2, .studio-lead { grid-column: 1; }
  .crafts { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .contact-intro, .contact-main { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar { height: 80px; }
  .brand { font-size: var(--t16); line-height: 24px; gap: var(--s2); }
  .brand img { width: 28px; height: 40px; }
  .studio, .contact { padding: var(--s9) 0; }
  .studio h2, .contact h2 { font-size: var(--t32); line-height: 40px; }
  .studio-lead { font-size: var(--t20); line-height: 28px; }
}

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