/* Telar — House of Characters
   Tokens from design/DESIGN-DIRECTION.md. Brand-facing pages are cream-locked:
   one light theme, never inverted. Gold is a thread, never a fill. */

:root {
  color-scheme: light;
  --linen: #F4F0E8;
  --plaster: #FBF9F5;
  --oat: #E7E0D2;
  --oak: #B28E60;
  --oak-deep: #7B5F3C;
  --hebra: #E2BC54;
  --ink: #1F1D22;
  --ink-soft: #5C5A60;

  --display: "Didot", "Bodoni 72", "Bodoni Moda", Georgia, serif;
  --body: "Optima", "Belleza", "Avenir Next", "Gill Sans", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.6, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oak-deep); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--body); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--oak-deep);
}
.lede { color: var(--ink-soft); max-width: 58ch; }
.fpo {
  display: inline-block; font-family: var(--body); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--oak-deep); border: 1px dashed var(--oak);
  padding: 2px 8px; vertical-align: middle;
}

/* ---------- the lockup: TELAR with one gold thread through it ---------- */
.lockup { display: inline-grid; justify-items: start; gap: 6px; text-decoration: none; }
.lockup .word {
  position: relative; font-family: var(--display); letter-spacing: .22em;
  font-size: 22px; line-height: 1; padding-left: .1em;
}
.lockup .word::after {
  content: ""; position: absolute; left: -.5em; right: -.5em; top: 52%; height: 1.5px;
  background: var(--hebra); transform-origin: left;
  animation: thread 1.4s var(--ease) both .15s;
}
.lockup .desc { font-size: 9.5px; letter-spacing: .3em; color: var(--oak-deep); text-transform: uppercase; }
@keyframes thread { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--oat); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav ul a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--hebra), var(--hebra)) left bottom / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease);
}
.nav ul a:hover, .nav ul a[aria-current="page"] { background-size: 100% 1px; }
@media (max-width: 620px) { .nav ul li.hide-sm { display: none; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: transparent;
  border: 1px solid var(--ink); padding: 15px 24px; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--plaster); }
.btn:active { transform: translateY(1px); }
.textlink {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--hebra); padding-bottom: 4px;
}
.textlink:hover { border-bottom-color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.005em; max-width: 20ch; }

/* ---------- capture ---------- */
.capture {
  display: grid; gap: 22px; justify-items: start;
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--ink);
}
.capture h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; max-width: 18ch; }
.capture .lede { font-size: 16px; }
.capture form {
  display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; max-width: 560px;
  border-bottom: 1px solid var(--ink); transition: border-color .4s var(--ease);
}
.capture form:focus-within { border-bottom-color: var(--hebra); }
.capture input[type="email"] {
  flex: 1 1 240px; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 18px; padding: 14px 0;
}
.capture input[type="email"]:focus { outline: none; }
.capture input::placeholder { color: var(--ink-soft); opacity: .8; }
.capture button {
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
  font-family: var(--body); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  padding: 14px 0 14px 20px;
}
.capture button:hover { color: var(--oak-deep); }
.capture .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.capture .status { font-size: 15px; color: var(--oak-deep); min-height: 1.6em; }
.capture .after { display: grid; gap: 18px; width: 100%; max-width: 620px; border-top: 1px solid var(--hebra); padding-top: 22px; }
.capture .after-lede { font-family: var(--display); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3; }
.capture .after-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.capture .after-note { font-size: 14px; color: var(--ink-soft); max-width: 34ch; }
.capture .fine { font-size: 13px; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--oat); margin-top: clamp(64px, 9vw, 120px); }
.foot .wrap {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 14px; color: var(--ink-soft);
}
.foot h4 { font-family: var(--body); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--oak-deep); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--oat); padding-top: 20px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal: visible at rest, a whisper when JS is on ---------- */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lockup .word::after { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
}
