/* 1717 Studio - coming soon page
   Layout + components. Tokens live in tokens.css. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; } /* Lenis drives smooth scroll in JS */
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}
.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  display: inline-block;
}
.label--on-cream { color: var(--cocoa-muted-75); }
.label--on-cocoa { color: var(--cream-muted-75); }
.label--honey { color: var(--honey); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.88;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-size: 12px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.btn--cocoa { background: var(--cocoa); color: var(--cream); }
.btn--honey { background: var(--honey); color: var(--cocoa); }

.link-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.link-mono:hover { opacity: 0.7; }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-disabled .reveal,
.reduced-motion .reveal { opacity: 1; transform: none; }

/* ---------- Cover / hero ---------- */
.cover {
  position: relative;
  height: clamp(620px, 58vw, 860px);
  min-height: 560px;
  background: var(--footer-brown);
  color: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cover-bg,
.cover-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.cover-1717-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cover-1717 {
  position: absolute;
  left: clamp(10px, 1.5vw, 28px);
  right: clamp(10px, 1.5vw, 28px);
  top: -4%;
  height: 108%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(200px, 30vw, 460px);
  line-height: 1;
  color: var(--cream);
  -webkit-text-stroke: 0.06em var(--cream);
  paint-order: stroke fill;
  opacity: 0.2;
  will-change: transform;
}
.cover-1717 span {
  display: block;
  transform: scaleY(1.9);
  transform-origin: top;
}
.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,17,11,0.62) 0%, rgba(28,17,11,0) 28%, rgba(28,17,11,0) 58%, rgba(28,17,11,0.82) 100%);
  pointer-events: none;
}
.cover-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px var(--pad-x) 0;
}
.cover-topline-links { display: flex; gap: 22px; flex-wrap: wrap; }
.cover-topline-links a { color: var(--cream); }
.cover-topline a { border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease-out); }
.cover-topline a:hover { border-color: currentColor; }

.cover-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.cover-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 var(--pad-x) var(--pad-y-tight);
}
.cover-headline-block { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cover-headline {
  font-size: clamp(52px, 7vw, 104px);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}
.scroll-cue-arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Alternating sections ---------- */
.section--cream { background: var(--cream); color: var(--cocoa); }
.section--cocoa {
  position: relative;
  background: var(--cocoa);
  color: var(--cream);
}
.section--cocoa::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px);
}
.section--cocoa > .container { position: relative; }

.section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* ---------- 01 The studio ---------- */
.studio-label-col { flex: 1 1 220px; }
.studio-copy-col {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.studio-heading { font-size: clamp(44px, 6vw, 88px); }
.studio-text { margin: 0; max-width: 560px; font-size: 19px; color: var(--cocoa-muted-75); }
.studio-actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

/* ---------- 02 What's coming ---------- */
.chapters-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.chapters-heading { font-size: clamp(56px, 8vw, 120px); }
.chapters-list { border-bottom: 1px solid var(--cream-hairline); }
.chapter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pad-x);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--cream-hairline);
  transition: padding-left var(--dur-med) var(--ease-out);
}
.chapter-row:hover { padding-left: 12px; }
.chapter-numeral {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(90px, 12vw, 180px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--honey);
  width: clamp(110px, 14vw, 220px);
  flex: none;
}
.chapter-title {
  flex: 1 1 280px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.9;
  color: var(--cream);
}
.chapter-copy {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.chapter-copy p { margin: 0; font-size: 16px; color: var(--cream-muted-75); }

/* ---------- 03 Work with me ---------- */
.contact-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-heading { font-size: clamp(56px, 7.5vw, 112px); }
.contact-text { margin: 0; font-size: 18px; color: var(--cocoa-muted-75); max-width: 420px; }

.form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-size: 11px;
  color: var(--cocoa-muted-75);
}
.section--cocoa .field label { color: var(--cream-muted-75); }
.field input, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--cocoa);
  background: transparent;
  padding: 0 2px;
  height: 50px;
  font-size: 17px;
  font-family: var(--font-body);
  color: var(--cocoa);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.section--cocoa .field input, .section--cocoa .field textarea { border-bottom-color: var(--cream); color: var(--cream); }
.field textarea { height: auto; padding-top: 10px; padding-bottom: 10px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--cocoa-muted-60); }
.section--cocoa .field input::placeholder, .section--cocoa .field textarea::placeholder { color: var(--cream-muted-60); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--honey); }

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

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--cocoa-muted-75);
  cursor: pointer;
}
.check-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cocoa);
  cursor: pointer;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  min-height: 1.4em;
}
.form-status[data-state="error"] { color: #c0442c; }
.form-status[data-state="ok"] { color: var(--honey); }

.privacy-note {
  font-size: 13px;
  color: var(--cocoa-muted-60);
  max-width: 460px;
}
.section--cocoa .privacy-note { color: var(--cream-muted-60); }
.privacy-note a { text-decoration: underline; }

.form-thanks {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.form-thanks.is-visible { display: flex; }
.form-thanks p { margin: 0; font-size: 18px; }

/* ---------- 04 Next issue ---------- */
.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.notify-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.notify-heading { font-size: clamp(52px, 7vw, 104px); }
.notify-form { flex: 1 1 380px; display: flex; gap: 10px; flex-wrap: wrap; }
.notify-form[hidden] { display: none; }
.notify-form .field { flex: 1 1 220px; }
.notify-form input {
  height: 56px;
  border: 0;
  border-bottom: 1px solid var(--cream);
  background: transparent;
  font-size: 17px;
  color: var(--cream);
  padding: 0 2px;
}
.notify-form .btn { flex: none; align-self: flex-start; }
.notify-fineprint { flex-basis: 100%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-brown);
  color: var(--cream-muted-75);
}
.footer-row {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-location { display: inline-flex; align-items: center; gap: 7px; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 0 rgba(227, 184, 74, 0.6);
  animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 184, 74, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(227, 184, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 184, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.footer-player { padding-bottom: 28px; }
.footer-player-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-muted-60);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-player-text:hover { color: var(--cream); }

.footer-mark {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--cream);
}
.footer-row .label { font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cover-topline { font-size: 11px; }
  .cover-1717 { -webkit-text-stroke: 0.08em var(--cream); }
  .cover-bg, .cover-cutout { object-position: center 14%; }
  .chapter-row:hover { padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cover { min-height: 640px; }
  .cover-headline { font-size: clamp(40px, 11vw, 56px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow { animation: none; }
  .chapter-row { transition: none; }
}
