/* ============================================================
   book.arcstudiosco.com — page styles

   Tokens, base type, the hamburger, the slide-out menu and the
   grain layer all come from the shared stylesheet at
   https://arcstudiosco.com/css/style.css, which index.html loads
   first. Change a brand colour there and all three sites follow.

   This file only holds what the book pages add on top.
   ============================================================ */

.book-page { background: var(--taupe); color: var(--ink); }

/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.section { padding-block: clamp(64px, 10vh, 128px); }
.section--dark  { background: var(--ink); color: var(--on-dark); }
.section--linen { background: var(--taupe-light); }

.cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}
.cols > * { flex: 1 1 320px; min-width: 0; }

.grid-3 {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---- Type ---- */

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--dark .eyebrow { color: var(--on-dark-dim); }

h1, h2, h3 { margin: 0; font-weight: 400; }

.display {
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.025em; }
.h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }

.lede { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 58ch; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.section--dark p { color: var(--on-dark-dim); }

.measure { max-width: 62ch; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: #000; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--taupe-light); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--line-light:hover { background: var(--on-dark); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Header ---- */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--taupe);
  border-bottom: 1px solid rgba(31, 29, 27, 0.10);
}
.head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}
.head__logo { height: 22px; width: auto; }

.head__nav { display: flex; align-items: center; gap: 28px; }

/* :not(.btn) matters. Without it these rules also hit the Get in
   touch button, overriding its padding and drawing an underline
   beneath it on hover. */
.head__nav a:not(.btn) {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  padding-block: 10px;
  border-bottom: 1px solid transparent;
}
.head__nav a:not(.btn):hover { color: var(--ink); border-bottom-color: currentColor; }

/* Slightly shorter than a body button so it sits comfortably in the bar. */
.head__nav .btn { min-height: 42px; padding: 0 20px; color: var(--ink); }
.head__nav .btn:hover { color: var(--on-dark); }


/* ---- Hero ---- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(72px, 14vh, 164px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero .lede { color: var(--on-dark-dim); }
.hero__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* ---- Cards ---- */

.card {
  background: var(--taupe-light);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--dark { background: var(--ink); color: var(--on-dark); }
.card--dark p { color: var(--on-dark-dim); }
.section--linen .card { background: var(--taupe); }

/* ---- Rule list ---- */

.rules { display: grid; gap: 28px 44px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rules > * { border-top: 1px solid rgba(31, 29, 27, 0.22); padding-top: 18px; }
.section--dark .rules > * { border-top-color: rgba(243, 241, 238, 0.28); }
.rules h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }

/* ---- Bullet lists ---- */

.list { margin: 0; padding-left: 1.1em; line-height: 1.75; }
.list li { margin-bottom: 10px; }
.section--dark .list { color: var(--on-dark-dim); }

/* ---- Images ---- */

.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.shot figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--dark .shot figcaption { color: var(--on-dark-dim); }

/* ---- Team ---- */

.person__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ---- Form ---- */

.form { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid rgba(243, 241, 238, 0.30);
  border-radius: 3px;
  background: rgba(243, 241, 238, 0.06);
  color: var(--on-dark);
  font: 400 16px/1.5 var(--font);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}
.field select option { color: var(--ink); }
.form__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
/* Spam trap — real people never see it. */
.trap { position: absolute; left: -9999px; }

/* ---- Footer ---- */

.foot {
  background: var(--ink);
  color: var(--on-dark-dim);
  border-top: 1px solid rgba(243, 241, 238, 0.14);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  padding-block: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.foot__inner a { color: var(--on-dark-dim); text-decoration: none; padding-block: 10px; }
.foot__inner a:hover { color: var(--on-dark); text-decoration: underline; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 26px; }

/* ---- Navigation ---- */

/* Teach is one page, so its header links are anchors and it needs no
   menu. Book is five pages, so the current page has to be legible and
   phones need a real way between them — the same slide-out panel the
   landing page uses, which already lives in the shared stylesheet. */
.head__nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: currentColor;
}

/* The shared burger is drawn for the landing page's dark video, so it
   is near-white. On this taupe header that would be invisible. */
.head .burger { color: var(--ink); margin-left: 0; }
.head__burger { display: none; }


/* ---- Phones ---- */

@media (max-width: 860px) {
  /* Links out, burger in. */
  .head__nav a:not(.btn) { display: none; }
  .head__burger { display: flex; }
  .head__inner { padding-block: 12px; }
  .section { padding-block: 64px; }

  /* Side by side on a wide screen puts the picture first, which is
     right there. Stacked on a phone the heading should lead, so the
     picture drops below the text. */
  .section .shot { order: 2; }
}

/* ---- Photos beside text ---- */

/* The studio photos are portrait, and the column of copy next to them
   is usually shorter. Left alone the picture towers over its own
   paragraph. Cropping to landscape evens the two columns up without
   touching the source files. */
.cols .shot img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
@media (max-width: 860px) {
  .cols .shot img { aspect-ratio: 3 / 2; }
}

/* ---- Video hero ---- */

/* The same film as the landing page. The hero is already
   position:relative with overflow hidden and its inner wrap sits at
   z-index 2, so the video, scrim and grain stack underneath it
   without any further plumbing. */
.hero--video { background: var(--ink); }

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* The scrim and grain come from the shared stylesheet, where they are
   written for the landing page's absolutely-positioned stage. Here
   they need lifting above the video but below the copy. */
.hero--video .stage__scrim,
.hero--video .stage__grain { z-index: 1; }

/* A film behind a wall of text is harder to read than a film behind
   two tiles, so this hero gets more height to breathe and a little
   more scrim than the landing page carries. */
.hero--video .hero__inner { padding-block: clamp(96px, 20vh, 220px); }
.hero--video .stage__scrim {
  background: linear-gradient(
    to bottom,
    rgba(26, 24, 22, 0.80) 0%,
    rgba(26, 24, 22, 0.58) 45%,
    rgba(26, 24, 22, 0.78) 100%
  );
}

/* Reduced motion: the still, not the film. */
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__media { display: none; }
  .hero--video {
    background: var(--ink) url("../img/hero-poster.jpg") center / cover no-repeat;
  }
  .hero--video .stage__grain { animation: none; }
}

/* Dimmed text works over a still dark hero. Over film it does not —
   the copy has to hold up on the brightest frame in the loop, not the
   average one. So on a video hero the muted colours go full strength
   and everything gets a soft shadow, which buys legibility without
   dropping another layer of grey over the footage. */
.hero--video .hero__inner { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.hero--video .eyebrow,
.hero--video .hero__note,
.hero--video .lede { color: var(--on-dark); }

/* ---- Form extras ---- */

/* First and last name side by side on anything but a phone. */
.field-row { display: flex; gap: 14px; }
.field-row > .field { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) { .field-row { flex-direction: column; } }

.field__hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  opacity: .75;
}

/* Consent rows. The box keeps its own hit area and the label stays
   readable — these are not small print, they are the thing someone
   is actually agreeing to. */
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--on-dark);
  flex: none;
  cursor: pointer;
}
.check label {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-dark-dim);
  cursor: pointer;
}
.check input:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }

/* ---- Links in body copy ---- */

/* Without this they come out browser-default blue, which belongs to
   no part of this brand. Ink with a real underline: still obviously
   a link, still the palette. */
.section p a:not(.btn),
.hero p a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 29, 27, 0.4);
  transition: text-decoration-color .18s ease;
}
.section p a:not(.btn):hover,
.hero p a:not(.btn):hover { text-decoration-color: currentColor; }

/* On the dark sections the rule above inherits light text, so only
   the underline needs lifting. */
.section--dark p a:not(.btn),
.hero p a:not(.btn) { text-decoration-color: rgba(243, 241, 238, 0.45); }

/* Browsers colour :link and :visited themselves, and those defaults
   beat a plain `a` rule in some engines — which is why the footer was
   coming out blue, and purple once you had clicked something. Naming
   both states explicitly settles it. */
.foot__inner a,
.foot__inner a:link,
.foot__inner a:visited { color: var(--on-dark-dim); }
.foot__inner a:hover,
.foot__inner a:focus-visible { color: var(--on-dark); }

.section p a:not(.btn):link,
.section p a:not(.btn):visited,
.hero p a:not(.btn):link,
.hero p a:not(.btn):visited { color: inherit; }

.head__nav a:link,
.head__nav a:visited { color: var(--ink-muted); }
.head__nav .btn:link,
.head__nav .btn:visited { color: var(--ink); }
.menu__link:link,
.menu__link:visited { color: var(--ink); }
