/* ─── Adobe Fonts ─────────────────────────────────────────────────── */
/* HWT Unit Gothic       → unit-gothic-716 through 722               */
/* Akzidenz-Grotesk Next → akzidenz-grotesk-next-pro (400/700)       */
/*                          akzidenz-grotesk-next (800 ExtraBold only)*/
/* Scotch Text           → scotch-text                               */

/* ─── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Tokens ──────────────────────────────────────────────────────── */
:root {
  --black: #000000;
  --white: #ffffff;

  --accent-orange: #FA7201;
  --accent-blue:   #1A6BFF;
  --accent-green:  #00B84A;
  --accent-pink:   #FF2070;

  --font-headline: 'unit-gothic-718', 'Arial Black', sans-serif;
  --font-body:     'akzidenz-grotesk-next-pro', 'Helvetica Neue', Arial, sans-serif;
  --font-scotch:   'scotch-text', Georgia, serif;

  --nav-width: 220px;
  --content-pad: 80px;
  --content-pad-mobile: 28px;
}

/* ─── Base ────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: url('../images/logo/quill-cursor.svg') 0 63, auto;
}

a, button, [role="button"], label[for], select, summary, input[type="submit"], input[type="button"] {
  cursor: url('../images/logo/quill-cursor-link.svg') 0 63, pointer;
}

/* ─── Layout ──────────────────────────────────────────────────────── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  z-index: 100;
  overflow-y: auto;
}

.nav-logo {
  padding: 0 28px 36px;
  margin-bottom: 28px;
}

.nav-logo svg { width: 100%; height: auto; }

.nav-links { list-style: none; flex: 1; }

.nav-links li a {
  display: block;
  padding: 9px 28px;
  font-family: var(--font-headline);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: padding-left 0.2s;
  border-left: 2px solid transparent;
}

.nav-links li a:hover {
  border-left-color: var(--accent-orange);
  padding-left: 32px;
}

.nav-links li a.active {
  border-left-color: var(--black);
  padding-left: 34px;
}

.nav-since {
  padding: 28px 28px 0;
  font-family: var(--font-headline);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
}

/* ─── Main ────────────────────────────────────────────────────────── */
.site-main {
  margin-left: var(--nav-width);
  flex: 1;
  min-width: 0;
}

/* ─── Section structure ───────────────────────────────────────────── */
.section { background: var(--white); }

/* Colored header block — white text by default */
.section-header {
  padding: 80px var(--content-pad);
  color: var(--white);
}

/* Light variant: white background, black text */
.section-header.light {
  color: var(--black);
}

.section-header .section-headline {
  font-family: var(--font-headline);
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: 48px;
}

.section-header .section-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: inherit;
  max-width: 600px;
}

.section-header .section-intro p + p { margin-top: 1.1em; }

/* Year stamp on light (white bg) overview */
.section-header.light .year-stamp {
  -webkit-text-stroke: 1px var(--black);
}

/* White content area below the header */
.section-content {
  padding: 80px var(--content-pad);
}

/* ─── Section H3s ─────────────────────────────────────────────────── */
.section-content h3 {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.5vw, 36px);
  text-transform: uppercase;
  line-height: 1;
}

/* ─── Body copy ───────────────────────────────────────────────────── */
.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
}

.body-text p + p { margin-top: 1.2em; }

/* ─── Type meta ───────────────────────────────────────────────────── */
.type-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  display: block;
}

/* ─── Thin rule ───────────────────────────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--black);
  margin: 72px 0;
  opacity: 0.12;
}

/* ─── Type specimens ──────────────────────────────────────────────── */
.type-specimen {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--black);
  border-top-color: rgba(0,0,0,0.12);
}

.type-sample--unit {
  font-family: var(--font-headline);
  font-size: clamp(48px, 6vw, 96px);
  text-transform: uppercase;
  line-height: 0.95;
}

.type-sample--akz {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.35;
}

.type-sample--scotch {
  font-family: var(--font-scotch);
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.1;
}

/* ─── Weight rows ─────────────────────────────────────────────────── */
.weight-row {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.weight-row:last-child { border-bottom: none; }

.weight-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  width: 140px;
  flex-shrink: 0;
}

/* ─── Swatches ────────────────────────────────────────────────────── */
.swatch-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.swatch {
  flex: 1;
  min-width: 160px;
}

.swatch-color {
  height: 180px;
  width: 100%;
  margin-bottom: 20px;
}

.swatch-name {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}

.swatch-hex {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  margin-bottom: 8px;
}

.swatch-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--black);
}

/* ─── Logo display ────────────────────────────────────────────────── */
.logo-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.logo-demo img { max-width: 320px; width: 100%; height: auto; }

/* ─── Do / Don't ──────────────────────────────────────────────────── */
.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.do-label, .dont-label {
  font-family: var(--font-headline);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 24px;
  display: block;
}

.rule-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  margin-top: 16px;
}

/* ─── Photo grid ──────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
}

.photo-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── Placeholder ─────────────────────────────────────────────────── */
.placeholder {
  background: #D9D9D9;
  display: block;
}

.placeholder-label {
  font-family: var(--font-headline);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
}

/* ─── Quill items ─────────────────────────────────────────────────── */
.quill-row {
  display: flex;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.quill-item { text-align: center; }
.quill-item img { display: block; margin: 0 auto 20px; }

.quill-label {
  font-family: var(--font-headline);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}

.quill-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--black);
  margin-top: 6px;
}

/* ─── Voice ───────────────────────────────────────────────────────── */
.voice-pull {
  font-family: var(--font-scotch);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.15;
  border-left: 2px solid var(--black);
  padding-left: 40px;
  margin: 56px 0 28px;
  max-width: 820px;
}

.voice-attribute {
  display: inline-block;
  border: 1px solid var(--black);
  padding: 6px 16px;
  font-family: var(--font-headline);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin: 4px 4px 4px 0;
}

.voice-attributes { margin: 36px 0 56px; }

/* ─── Year stamp ──────────────────────────────────────────────────── */
.year-stamp {
  font-family: var(--font-headline);
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
}

/* ─── Grid helpers ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; }

/* ─── Color blocks (in-use demo) ──────────────────────────────────── */
.color-block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.color-block { padding: 60px 52px; }

/* ─── Password gate ───────────────────────────────────────────────── */
.password-gate {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  z-index: 9999;
}

.password-gate.hidden { display: none; }

.password-gate-logo { width: 200px; }
.password-gate-logo svg { width: 100%; fill: var(--black); }

.password-gate form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.password-gate input[type="password"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  padding: 12px 4px;
  width: 260px;
  text-align: center;
  outline: none;
  letter-spacing: 0.1em;
}

.password-gate input[type="password"]::placeholder {
  color: var(--black);
  letter-spacing: 0.1em;
}

.password-gate button {
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-headline);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: url('../images/logo/quill-cursor-link.svg') 0 63, pointer;
  width: 260px;
}

.password-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  min-height: 20px;
}

.password-hint {
  font-family: var(--font-headline);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
}

/* ─── Type specimen cycling ───────────────────────────────────────── */
.weight-cycle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 0;
}

.weight-cycle .weight-label {
  width: auto;
}

/* ─── Photo parallax ──────────────────────────────────────────────── */
.parallax-wrap {
  overflow: hidden;
  height: 380px;
}

.parallax-wrap img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: top center;
  display: block;
  will-change: transform;
}

/* ─── Typographic elements demo grid ─────────────────────────────── */
.demo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* ─── Mobile nav bar (hidden on desktop) ─────────────────────────── */
.nav-mobile-bar { display: none; }

/* ─── Hamburger button ────────────────────────────────────────────── */
.nav-hamburger {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: url('../images/logo/quill-cursor-link.svg') 0 63, pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.site-nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --content-pad: var(--content-pad-mobile); }

  /* Layout */
  .site-wrapper { flex-direction: column; }
  .site-main { margin-left: 0; }

  /* Nav — sticky top bar */
  .site-nav {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    flex-direction: column;
    padding: 0;
    border-right: none;
    overflow: visible;
    background: var(--white);
    z-index: 100;
  }

  /* Mobile bar */
  .nav-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    border-bottom: 1px solid var(--black);
    width: 100%;
    flex-shrink: 0;
  }

  .nav-mobile-logo-link img {
    height: 18px;
    width: auto;
    display: block;
  }

  .nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  #nav-mobile-section {
    font-family: var(--font-headline);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
  }

  /* Desktop-only nav chrome */
  .nav-logo { display: none; }
  .nav-since { display: none; }

  /* Nav links — hidden by default, dropdown when open */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--black);
    padding: 8px 0;
    list-style: none;
  }

  .site-nav.nav-open .nav-links { display: flex; }

  .nav-links li a {
    display: block;
    padding: 13px 24px;
    border-left: 2px solid transparent;
    border-bottom: none;
    font-size: 10px;
    letter-spacing: 0.2em;
    white-space: nowrap;
    transition: padding-left 0.2s;
  }

  .nav-links li a:hover {
    border-left-color: var(--accent-orange);
    border-bottom: none;
    padding-left: 30px;
  }

  .nav-links li a.active {
    border-left-color: var(--black);
    border-bottom: none;
    padding-left: 30px;
  }

  /* Offset anchor scroll for sticky nav bar */
  .section { scroll-margin-top: 56px; }

  /* Section content */
  .section-header { padding: 56px var(--content-pad-mobile); }
  .section-content { padding: 56px var(--content-pad-mobile); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .do-dont { grid-template-columns: 1fr; gap: 48px; }
  .demo-grid-2 { grid-template-columns: 1fr; }
  .color-block-grid { grid-template-columns: 1fr; }
  .quill-row { gap: 40px; }
  .weight-label { width: 100px; }
  #unit-widths { overflow-x: auto; }
}
