/* North 27 Studio — inner pages (projects, legal, company).
   Loaded INSTEAD of site.css on every page except /app/, which still uses
   site.css and is untouched pending the App Store Connect check.

   This restyles the same class names the existing pages already use —
   .legal, .kicker, .stamp, .lede, .note, .toc, ul.plain, .grid/.card,
   dl.facts, .registry, .product-logo — into the homepage's cream system,
   so no legal or compliance copy had to be rewritten to change its look.

   Tokens, type and the masthead come from home.css, which loads first. */

body.studio.page {
  background: var(--cream-lo);
}

/* ---------- shared shell ---------- */

/* inner pages have no nav, so the masthead is the wordmark and a hairline */
.studio.page .masthead {
  border-bottom: 1px solid var(--rule-faint);
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
}

.studio .sheet {
  /* left-aligned to the same gutter as the masthead, so a legal page reads
     as the same document as the home page rather than a centred island */
  max-width: calc(46rem + var(--gutter) * 2);
  margin: 0;
  padding-inline: var(--gutter);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}

.studio .sheet-wide { max-width: calc(56rem + var(--gutter) * 2); }

/* ---------- page head ---------- */

.studio .kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 clamp(1rem, 2vw, 1.4rem);
}

.studio .page h1 { }

.studio .sheet h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.studio .stamp {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.studio .sheet .lede {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

/* ---------- body copy ---------- */

.studio .sheet p,
.studio .sheet li {
  color: var(--ink-soft);
}

.studio .sheet p { margin: 0 0 1.15rem; }

.studio .sheet a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-lo);
}
.studio .sheet a:hover,
.studio .sheet a:focus-visible { border-bottom-color: var(--gold-ink); }

.studio .sheet strong { color: var(--ink); font-weight: 600; }
.studio .sheet em { font-style: italic; }

.studio .sheet h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin: clamp(2.25rem, 4.5vw, 3rem) 0 0.9rem;
  max-width: 34ch;
  position: relative;
}

.studio .sheet h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.71875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 1.9rem 0 0.5rem;
}

/* numbered policy sections keep the short gold tick the old design had */
.studio .legal h2 { padding-top: 2.5rem; }
.studio .legal h2::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 2.75rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.studio .sheet ul.plain,
.studio .sheet ol.plain {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}
.studio .sheet ul.plain li,
.studio .sheet ol.plain li { margin-bottom: 0.55rem; }
.studio .sheet li::marker { color: var(--gold-ink); }

.studio .note {
  border-left: 2px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--ink);
}

.studio .measure { max-width: 38rem; }

/* ---------- table of contents ---------- */

.studio .toc {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.studio .toc ol {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.95;
}
.studio .toc li::marker { color: var(--ink-mute); }
.studio .toc a { border-bottom: none; color: var(--ink-soft); }
.studio .toc a:hover { color: var(--ink); border-bottom: 1px solid var(--gold-lo); }

@media (max-width: 34rem) { .studio .toc ol { columns: 1; } }

/* ---------- cards and fact tables (company page) ---------- */

.studio .sheet .grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 1.75rem 0;
}

.studio .sheet .grid .card {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  background: var(--card-cream);
  border: 1px solid var(--rule-faint);
  border-radius: 2px;
  padding: 1.3rem;
  transform: none;
  box-shadow: none;
}
.studio .sheet .grid .card h3 { margin-top: 0; }
.studio .sheet .grid .card p:last-child { margin-bottom: 0; }

.studio dl.facts {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--rule-faint);
}
.studio dl.facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.4rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-faint);
}
.studio dl.facts dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.2rem;
}
.studio dl.facts dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 34rem) {
  .studio dl.facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

.studio .registry p {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 0.6rem;
}
.studio .registry p:first-child {
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--gold-ink);
}
.studio .registry a { color: var(--ink-soft); }

/* ---------- contact action: a rule, not a pill ---------- */

.studio .sheet .action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0 0 0.45rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.studio .sheet .action:hover,
.studio .sheet .action:focus-visible { border-bottom-color: var(--ink); }
.studio .sheet .action svg { display: block; flex: none; }

/* ---------- project pages ---------- */

.studio .project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.studio .project h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 12ch;
}

.studio .project .hero-rule { margin-block: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.25rem, 2.2vw, 1.75rem); }

.studio .project .lede {
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

/* status sits on the same rule-trailing pattern as COMING SOON on the home page */
.studio .project .status { margin-top: clamp(1.75rem, 3.2vw, 2.5rem); }

.studio .project-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio .project-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 17rem;
}
.studio .project-art .mark-wide { max-width: 25rem; }

/* a project page is one screen: the footer sits at the bottom of it */
body.studio.project-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.studio.project-page main {
  flex: 1;
  display: flex;
  align-items: center;
}

/* a single quiet line under the project copy, for the one place a project
   page needs to point somewhere (GYF → its eBay disclosure) */
.studio .aside-link {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 34ch;
}
.studio .aside-link a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.studio .aside-link a:hover { border-bottom-color: var(--gold); }

@media (max-width: 52rem) {
  .studio .project {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 7vw, 3rem);
    padding-block: clamp(2.25rem, 8vw, 3.5rem) clamp(2rem, 6vw, 3rem);
  }
  .studio .project-order-art { order: -1; }
  .studio .project-art img { max-width: 13rem; }
  .studio .project-art .mark-wide { max-width: 18rem; }
  .studio .project h1 { max-width: 14ch; }
}

/* ---------- utility footer ----------
   Low prominence, never hidden: real links, real contrast, in the
   document flow and in the tab order. */

.studio .pagefoot {
  border-top: 1px solid var(--rule-faint);
  margin-inline: var(--gutter);
  padding-block: clamp(1.25rem, 2.2vw, 1.75rem) clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.studio .pagefoot a,
.studio .pagefoot span {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}

.studio .pagefoot a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.studio .pagefoot a:hover,
.studio .pagefoot a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }

.studio .pagefoot-links {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio .pagefoot-links li + li::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--rule);
}

@media (max-width: 48rem) {
  .studio .pagefoot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}

/* pages whose body is a run of <section> blocks rather than one sheet */
.studio .page section .sheet { padding-block: clamp(1.25rem, 2.2vw, 1.75rem); }
.studio .page section:first-of-type .sheet { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.studio .page section:last-of-type .sheet { padding-bottom: clamp(2rem, 4vw, 3rem); }
.studio .page section + section { border-top: 1px solid var(--rule-faint); }
.studio .page section + section .sheet h2:first-child { margin-top: 0; padding-top: 0; }
.studio .page section + section .sheet h2:first-child::before { display: none; }

/* GYF's own logo, shown as supplied, on its own paper */
.studio .product-logo {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: auto;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}


