/* Tattooed Monkey — design tokens live here. Change a color once, it changes everywhere. */
:root {
  --charcoal: #151515;
  --charcoal-2: #222020;
  --ivory: #F5F1E8;
  --paper: #FBF9F4;
  --gold: #B9945B;
  --gold-ink: #7A5E2E;      /* gold darkened for text on ivory (contrast 5.3:1) */
  --amber: #B66A35;
  --crimson: #682D35;
  --crimson-hover: #7E3741;
  --ink: #1E1B19;
  --ink-soft: #4D4640;
  --line: #DCD3C2;
  --on-dark: #EDE7DA;
  --on-dark-soft: #B8AE9D;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 4.4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--charcoal); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { background: var(--charcoal); color: var(--on-dark); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font-family: var(--display); font-size: 1.35rem; color: var(--on-dark); text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid #4a443d; color: var(--on-dark); font: 500 var(--step--1) var(--body); padding: .5rem .9rem; border-radius: var(--radius); cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }

@media (max-width: 64rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal); border-top: 1px solid #333; padding: .5rem var(--gutter) 1.5rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid #2c2926; font-size: 1.1rem; }
  }

/* ---------- hero ---------- */
.hero { background: var(--charcoal); color: var(--on-dark); padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #F7F2E8; max-width: 13ch; }
.hero p { color: var(--on-dark-soft); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; }
.hero .page-lede { font-size: var(--step-1); }
.seal { width: min(100%, 22rem); justify-self: center; color: var(--gold); }
.seal text { font-family: var(--body); font-size: 15px; fill: currentColor; }
.seal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 2.4s .2s cubic-bezier(.6,.1,.3,1) forwards; }
.seal .fade { opacity: 0; animation: appear 1.2s 1.6s ease forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .seal .draw { animation: none; stroke-dashoffset: 0; }
  .seal .fade { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero .wrap { display: block; }
.page-hero h1 { max-width: 18ch; }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .seal { width: 11rem; justify-self: start; order: -1; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.4rem; border-radius: var(--radius); font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-hover); color: #fff; }
.btn-quiet { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-quiet:hover { color: var(--crimson); }
.hero .btn-quiet { color: var(--on-dark); }
.hero .btn-quiet:hover { color: var(--gold); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--paper); }
.rule { width: 3.5rem; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 46rem) { .split { grid-template-columns: 1fr; } }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.prose p { font-size: 1.1rem; }
.pull { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: var(--crimson); border-left: 2px solid var(--gold); padding-left: 1.2rem; margin: 2rem 0; max-width: 30ch; }

/* ---------- lists of things ---------- */
.roster { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.roster > li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: start; }
.roster > li:last-child { border-bottom: 1px solid var(--line); }
.roster h3 { margin-bottom: .2rem; font-size: var(--step-1); }
.roster h3 a { color: var(--ink); text-decoration: none; }
.roster h3 a:hover { color: var(--crimson); }
.roster p { margin-bottom: .4rem; }
@media (max-width: 30rem) { .roster > li { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; } }

.portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--charcoal); }
.monogram { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); background: var(--charcoal); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; position: relative; }
.monogram.cover { aspect-ratio: 3 / 4; }
.pending-tag { position: absolute; bottom: .3rem; left: .3rem; right: .3rem; font: 500 .62rem/1.2 var(--body); color: var(--on-dark-soft); text-align: center; }

.link-row { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.link-row a { font-weight: 600; font-size: .98rem; }

/* creators page */
.creator { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.creator:first-of-type { border-top: 0; }
.creator .split { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
@media (max-width: 46rem) { .creator .split { grid-template-columns: 1fr; } .creator .portrait, .creator .monogram { max-width: 14rem; } }
.disclosure { font-size: var(--step--1); color: var(--ink-soft); border-left: 2px solid var(--line); padding-left: .8rem; }

/* shop */
.shelf { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2.5rem 2rem; }
.shelf li { display: flex; flex-direction: column; }
.shelf .cover-img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }
.shelf h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.kind { font-size: var(--step--1); color: var(--gold-ink); font-weight: 600; margin-bottom: .4rem; }
.shelf .btn { margin-top: auto; align-self: flex-start; }
.price { font-weight: 600; }

/* library */
.transmissions { list-style: none; padding: 0; margin: 2rem 0 0; }
.transmissions li { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; }
.transmissions .num { font-family: var(--display); font-size: var(--step-2); color: var(--gold-ink); line-height: 1; }
.transmissions h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.transmissions blockquote { margin: 0; color: var(--ink-soft); font-style: italic; }

/* video */
.lite-yt { position: relative; aspect-ratio: 9 / 16; max-width: 20rem; background: var(--charcoal) center / cover no-repeat; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; cursor: pointer; width: 100%; display: block; }
.lite-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.75), rgba(10,10,10,0) 45%); }
.lite-yt .play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(21,21,21,.8); border: 1.5px solid var(--gold); display: grid; place-items: center; }
.lite-yt .play svg { width: 1.4rem; fill: var(--gold); margin-left: .2rem; }
.lite-yt .cap { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; color: #fff; font: 600 1rem/1.3 var(--body); text-align: left; }
.lite-yt:hover .play { background: var(--crimson); }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* vision list */
.vision { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0 2rem; }
.vision li { padding: .8rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.25rem; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: var(--radius); max-width: var(--measure); }

/* dark band */
.band { background: var(--charcoal-2); color: var(--on-dark); }
.band h2 { color: #F7F2E8; }
.band p { color: var(--on-dark-soft); }
.band a:not(.btn) { color: var(--gold); }
.band .btn-quiet { color: var(--on-dark); }

/* ---------- forms ---------- */
form.inquiry { max-width: 38rem; display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9ad99; border-radius: var(--radius); padding: .75rem .85rem; width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-ink); }
.field [aria-invalid="true"] { border-color: var(--crimson); }
.field .error { color: var(--crimson); font-size: var(--step--1); font-weight: 600; min-height: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 34rem) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid; }
.status[hidden] { display: none; }
.status.ok { border-color: #5d7a52; background: #eef3e9; color: #2c4224; }
.status.fail { border-color: var(--crimson); background: #f6e9ea; color: var(--crimson); }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-soft); padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 46rem) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .mission { font-family: var(--display); color: var(--gold); font-size: 1.3rem; margin-bottom: .6rem; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--on-dark); margin-bottom: .8rem; }
.fine { border-top: 1px solid #2f2b27; margin-top: 2.5rem; padding-top: 1.2rem; font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* preview-only banner */
.preview-bar { background: var(--amber); color: #1a0f07; font: 600 .85rem/1.4 var(--body); text-align: center; padding: .45rem var(--gutter); }
.flag { display: inline-block; font: 600 .72rem/1.3 var(--body); background: #fbe7d6; color: #6b3511; border: 1px dashed var(--amber); border-radius: 3px; padding: .15rem .45rem; margin-bottom: .5rem; }

.feature-cover { max-width: 28rem; }
.feature-cover img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: var(--charcoal); border-radius: var(--radius); }
@media (max-width: 46rem) { .feature-cover { max-width: none; } }

/* ---------- home hero: Mist Monk smoke artwork ---------- */
.home-hero { position: relative; isolation: isolate; background: var(--charcoal) url("/images/mist-monk-smoke-hero-v2.webp") right center / cover no-repeat; min-height: clamp(30rem, 72vh, 44rem); display: flex; align-items: center; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,21,21,.94) 0%, rgba(21,21,21,.82) 38%, rgba(21,21,21,.25) 62%, rgba(21,21,21,0) 80%); }
.home-hero .wrap { width: 100%; }
.home-hero h1, .home-hero p { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-art { min-height: 1px; }
@media (max-width: 52rem) {
  .home-hero { background-position: 76% top; background-size: auto 26rem; align-items: flex-end; min-height: 0; padding-top: 19rem; }
  .home-hero::before { background: linear-gradient(180deg, rgba(21,21,21,0) 0%, rgba(21,21,21,.1) 14rem, rgba(21,21,21,.92) 22rem, var(--charcoal) 26rem); }
  .hero-art { display: none; }
}

/* ---------- real artwork ---------- */
.portrait { object-position: center 22%; }
.shelf .cover-img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--charcoal); }

/* ---------- footer: centered on phones ---------- */
@media (max-width: 46rem) {
  .site-footer, .site-footer .foot-grid { text-align: center; }
  .site-footer ul { justify-items: center; }
  .site-footer .fine { justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
}

