/* ============================================================
   GLADiiUM Films — gladiiumfilms.com
   Single source of truth.
   Aesthetic: A24/Tetragramaton — cream paper, ink black, deep,
   typographic restraint, generous breathing room.
   ============================================================ */

:root {
  --ink:        #181818;
  --ink-deep:   #0e0c0a;
  --cream:      #f2ede4;
  --cream-warm: #ede5d6;
  --paper:      #faf6ef;
  --ash:        #8c8070;
  --ash-quiet:  #b8ad9c;
  --rule:       rgba(24, 24, 24, 0.10);
  --rule-strong:rgba(24, 24, 24, 0.22);
  --gold:       #a8895e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS/iPadOS rendering fixes (also affects Chrome on iPad — same WebKit engine) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* ============================================================
   LAYOUT
   ============================================================ */

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
}

.section-paper-dark { background: var(--cream-warm); }
.section-dark { background: var(--ink-deep); color: var(--cream); border-top: none; }

.spacer-s { height: 12px; }
.spacer-m { height: 32px; }
.spacer-l { height: 64px; }

/* ============================================================
   SITE HEADER (minimal — just a meta strip)
   ============================================================ */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
}

.meta {
  font-size: 10px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 400;
}

.meta-quiet {
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ash-quiet);
  font-weight: 300;
}

.meta-nav {
  display: flex;
  gap: 32px;
}

.meta-nav a {
  font-size: 10px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 400;
  transition: color 0.2s ease;
}

.meta-nav a:hover { color: var(--ink); }

/* ============================================================
   HERO — wordmark front and center
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 120px 32px 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
}

.wordmark-wrap {
  display: inline-flex;
  color: var(--ink-deep);
}

.hero-dek {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-dek-quiet {
  display: block;            /* proper block — own line, own paragraph */
  margin-top: -12px;         /* raised 20px — negative pulls up within the flex gap */
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ash-quiet);
  line-height: 1.5;
  text-align: center;
}

/* ============================================================
   THE WORDMARK
   Direction A — LOCKED SPEC
   GLADiiUM (Inter Bold) with inner ii at 0.90em
   films caption (Inter Medium) at 0.21em, 0.40em letter-spacing,
   margin-top: -0.18em (tucked under GLADiiUM)
   ============================================================ */

.wm {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: currentColor;
  line-height: 1;
  letter-spacing: -0.005em;
  font-size: clamp(56px, 13vw, 168px);
}

.wm-main {
  display: block;
  line-height: 1;
}

.wm-main .ii {
  font-size: 0.90em;
  letter-spacing: 0;
}

.wm-films {
  display: block;
  font-size: 0.21em;
  font-weight: 500;
  letter-spacing: 0.40em;
  text-align: right;
  margin-top: -0.18em;
  text-transform: lowercase;
  line-height: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 400;
}

.eyebrow-light { color: rgba(242, 237, 228, 0.55); }

.title-m {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
}

.title-m em {
  font-style: italic;
  color: var(--ash);
  font-weight: 300;
}

.title-m.light { color: var(--cream); }
.title-m.light em { color: rgba(242, 237, 228, 0.55); }

.body-l {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.body-l.light { color: rgba(242, 237, 228, 0.82); }
.body-l.light a { color: var(--cream); border-bottom: 1px solid rgba(242, 237, 228, 0.32); }
.body-l.light a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.body-l a {
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.body-l a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.link-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-deep) !important;
  border-bottom: none !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.link-arrow:hover {
  color: var(--gold) !important;
}

.link-arrow span {
  transition: transform 0.25s ease;
  display: inline-block;
}

.link-arrow:hover span {
  transform: translateX(6px);
}

/* ============================================================
   PRINCIPLES LIST — terse, two-column on wide screens
   ============================================================ */

.principle-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .principle-list { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
}

.principle-list li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.principle-list li strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 56px 0 64px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-grid > div { line-height: 1.8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   TABLET — iPad portrait & landscape (720–1199px)
   Aggressive size boost — clamp() math was leaving the hero
   undersized in iPad's tall viewport. Explicit large values lock
   the wordmark as the dominant element on screen.
   ============================================================ */
@media (min-width: 720px) and (max-width: 1199px) {
  .wm { font-size: 180px; }
  .hero-dek { font-size: 30px; line-height: 1.4; }
  .hero-dek-quiet { font-size: 13px; letter-spacing: 0.35em; margin-top: -12px; }
  .hero-inner { gap: 56px; }
  .hero { min-height: 80vh; padding-top: 100px; padding-bottom: 100px; }
}

@media (min-width: 720px) and (max-width: 899px) {
  /* Smaller tablets — iPad mini portrait, etc. */
  .wm { font-size: 144px; }
}

@media (max-width: 720px) {
  .site-header { padding: 24px 24px; }
  .meta-nav { gap: 20px; }
  .meta-nav a { font-size: 9px; letter-spacing: 0.30em; }
  .section { padding: 80px 0; }
  .title-m { font-size: 32px; }
  .body-l { font-size: 18px; }
  .container-narrow { padding: 0 24px; }
}

@media (max-width: 480px) {
  .meta-nav a { display: none; }
  .meta-nav a:last-child { display: inline; }
  .hero { min-height: 90vh; }
  .hero-dek { font-size: 18px; }
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection { background: var(--ink-deep); color: var(--cream); }
