/* bytheband.com — coming-soon release. Palette per brand guidelines v0.1. */
@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F1E9DC;
  --ink: #242323;
  --orange: #D66A3A;
  --orange-deep: #C25C2E;
  --gray: #AAA69E;
  --field: #FBF7F0;
  --error: #8F3A14;
  --gutter: clamp(16px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem; line-height: 1.5; position: relative; isolation: isolate;
}
/* Quiet paper texture: a fixed, very faint noise layer. Form controls use solid fills so it never sits under text you type. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }

/* Masthead */
.masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: clamp(14px, 2.4vw, 30px); }
.logo { display: inline-block; line-height: 0; }
.logo img { width: clamp(150px, 15.5vw, 230px); }
.status { margin: 1.4rem 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

/* Hero grid: copy left, workshop right; stacks on mobile in DOM order */
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(8px, 1.5vw, 24px) 0 0; }
.hero-copy { max-width: 48rem; }
.headline { font-family: "Anton", "Arial Narrow", Impact, sans-serif; font-weight: 400; font-size: clamp(3.4rem, 8.3vw, 8rem); line-height: .9; letter-spacing: -.004em; margin: clamp(20px, 3.5vw, 48px) 0 .32em; }
.headline .line { white-space: nowrap; }
.lede { font-size: clamp(1.15rem, 1.85vw, 1.65rem); line-height: 1.35; max-width: 36ch; margin: 0 0 .8em; }
.sub { font-size: clamp(1.05rem, 1.5vw, 1.35rem); margin: 0 0 1.2em; }
.actions { margin: 1.6rem 0 0; }

/* Signup */
.signup { margin-top: clamp(1.6rem, 3.5vw, 3.2rem); }
.signup h2 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .2rem; }
.signup-desc { margin: 0 0 1rem; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.field { flex: 1 1 15rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .35rem; }
input[type="email"] {
  width: 100%; height: 3.5rem; padding: 0 1rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--ink); border-radius: 2px;
}
input[type="email"]::placeholder { color: #6F6B64; opacity: 1; }
input[type="email"][aria-invalid="true"] { border-width: 2.5px; border-color: var(--error); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.7rem;
  background: var(--orange); color: var(--ink); font: inherit; font-weight: 700; font-size: 1.05rem; letter-spacing: .005em;
  border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(36, 35, 35, .22);
}
.btn:hover { background: var(--orange-deep); }
.btn:disabled { cursor: progress; opacity: .85; }
.form-error { margin: .7rem 0 0; padding: .35rem 0 .35rem .8rem; border-left: 4px solid var(--orange); color: var(--error); font-weight: 600; }
.form-error[hidden] { display: none; }
.help { margin: .75rem 0 0; font-size: .95rem; }
.disclosure { margin: .6rem 0 0; font-size: .85rem; line-height: 1.45; max-width: 46ch; }

/* Workshop figure (feathered edge is in the asset; webp has alpha so the paper shows through) */
.workshop { margin: 0; align-self: stretch; display: flex; align-items: center; }
.workshop img { width: 100%; display: block; }

/* Footer */
.site-footer { border-top: 1.5px solid var(--ink); margin-top: clamp(20px, 3vw, 40px); padding: 1.1rem 0 1.4rem; }
.closing { text-align: center; margin: 0 0 .9rem; font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.55rem); letter-spacing: .03em; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
.footer-row nav a { margin-left: 1.4rem; }
.footer-row nav a:first-child { margin-left: 0; }

/* Reading page (privacy) and single-column states (404, unsubscribe) */
.prose { flex: 1; max-width: 66ch; padding: clamp(8px, 1.5vw, 24px) 0 0; }
.prose .headline { font-size: clamp(2.8rem, 6.5vw, 5rem); }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .4em; }
.prose p { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1em; }
.single { flex: 1; display: flex; align-items: center; padding: clamp(8px, 1.5vw, 24px) 0 0; }

/* Mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; row-gap: 1.5rem; align-items: start; }
  .headline { font-size: clamp(2.9rem, 15vw, 5.4rem); }
  .status { margin-top: .9rem; font-size: .68rem; letter-spacing: .2em; }
  .field { flex-basis: 100%; }
  .btn { width: 100%; }
  .workshop { margin-top: .5rem; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 400px) { .status { white-space: normal; max-width: 9rem; text-align: right; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
