/* =========================================================
   TRENTT — Standalone Page Styles
   ---------------------------------------------------------
   Sections:
     1. Fonts & design tokens (CSS variables)
     2. Base / reset
     3. Site nav
     4. Hero — layout, headline
     5. Contact card
     6. Site footer
     7. Animations
     8. Responsive
   ========================================================= */


/* ------------------------------------------------------------------
   1. FONTS & DESIGN TOKENS
   Fonts are loaded via <link> in index.html <head> for parallel fetch.
   ------------------------------------------------------------------ */
:root {
  /* Ink */
  --trentt-ink:          #111111;
  --trentt-ink-soft:     #2a2a2a;
  --trentt-ink-muted:    #5a5a5a;

  /* Crimson accent */
  --trentt-crimson:      #8B1A1F;
  --trentt-crimson-hot:  #B32226;

  /* Stone greys */
  --trentt-stone-500:    #9a9a9a;
  --trentt-stone-700:    #6a6a6a;

  /* Paper */
  --trentt-paper:        #FAF8F4;
  --trentt-paper-alt:    #F3F0E9;

  /* Semantic */
  --fg1: var(--trentt-ink);
  --fg2: var(--trentt-ink-soft);
  --fg3: var(--trentt-ink-muted);

  --border-subtle:  rgba(17, 17, 17, 0.08);
  --border-default: rgba(17, 17, 17, 0.16);

  /* Type families */
  --font-display: "Barlow Condensed", "Oswald", "Impact", sans-serif;
  --font-body:    "Barlow", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;

  /* Shadows */
  --shadow-xs: 0 1px 0 rgba(17,17,17,0.05);
  --shadow-sm: 0 1px 2px rgba(17,17,17,0.06), 0 1px 1px rgba(17,17,17,0.04);
  --shadow-md: 0 6px 14px -6px rgba(17,17,17,0.12), 0 2px 4px rgba(17,17,17,0.06);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}


/* ------------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--trentt-paper);
  color: var(--fg1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: block;
  flex: 1;
}

a {
  color: inherit;
}

::selection {
  background: var(--trentt-crimson);
  color: var(--trentt-paper);
}

:focus-visible {
  outline-offset: 2px;
}

/* Grain overlay — subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* ------------------------------------------------------------------
   3. SITE NAV
   ------------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    backdrop-filter var(--duration-base) var(--ease-standard);
}
.site-nav.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pebble {
  --pebble-stone: var(--trentt-stone-500);
  --pebble-center: var(--trentt-crimson);
  --pebble-center-opacity: 0.85;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg1);
  line-height: 1;
}
.wordmark .accent {
  color: var(--trentt-crimson);
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--trentt-ink);
  color: var(--trentt-paper);
  border: 2px solid var(--trentt-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--trentt-crimson);
  outline-offset: 2px;
}


/* ------------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  padding: 96px 48px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}

.section-label,
.page-stamp {
  position: absolute;
  top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--trentt-stone-500);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fade-in 400ms var(--ease-standard) both;
}
.section-label { left: 48px; }
.page-stamp    { right: 48px; letter-spacing: 0.18em; }

.brand {
  position: relative;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trentt-crimson);
  margin-bottom: 20px;
  animation: fade-up 500ms var(--ease-standard) both;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg1);
  margin: 0;
  animation: fade-up 600ms var(--ease-standard) both 80ms;
}
.headline .accent {
  color: var(--trentt-crimson);
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg2);
  max-width: 440px;
  margin: 24px 0 0;
  animation: fade-up 500ms var(--ease-standard) both 180ms;
}

/* ------------------------------------------------------------------
   5. CONTACT CARD
   ------------------------------------------------------------------ */
.contact {
  position: relative;
  background: var(--trentt-paper-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
  animation: fade-up 600ms var(--ease-standard) both 340ms;
}

/* Registration mark corners */
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--trentt-stone-500);
  opacity: 0.45;
  pointer-events: none;
  z-index: 3;
}
.contact::before {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}
.contact::after {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

.contact-ghost {
  position: absolute;
  bottom: -56px;
  right: -56px;
  width: 300px;
  height: 300px;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  --pebble-stone: var(--trentt-ink);
  --pebble-center: var(--trentt-ink);
  --pebble-center-opacity: 1;
}

.contact-fig {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--trentt-stone-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.contact-fig-sub {
  color: var(--trentt-stone-700);
}

.contact-block {
  position: relative;
  z-index: 2;
}
.contact-block + .contact-block {
  border-top: 1px solid var(--border-subtle);
  margin-top: 20px;
  padding-top: 20px;
}
.contact-block:first-of-type {
  margin-top: 8px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg3);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg1);
  text-decoration: none;
}

.contact-address {
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg2);
}

.contact-link {
  position: relative;
  transition: color var(--duration-fast) var(--ease-standard);
}
.contact-arrow {
  display: inline-block;
  font-size: 22px;
  color: var(--trentt-stone-500);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.contact-link:hover {
  color: var(--trentt-crimson-hot);
}
.contact-link:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--trentt-crimson-hot);
}
.contact-link:focus-visible {
  outline: 2px solid var(--trentt-crimson);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ------------------------------------------------------------------
   6. SITE FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--trentt-ink);
  color: var(--trentt-paper);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .lockup {
  gap: 10px;
}
.site-footer .pebble {
  --pebble-stone: var(--trentt-paper);
  --pebble-center: var(--trentt-crimson-hot);
  --pebble-center-opacity: 0.95;
}
.site-footer .wordmark {
  font-size: 16px;
  color: var(--trentt-paper);
}
.site-footer .wordmark .accent {
  color: var(--trentt-crimson-hot);
}

.site-footer .tag {
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 248, 244, 0.6);
}

.site-footer .legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 248, 244, 0.5);
  letter-spacing: 0.04em;
}


/* ------------------------------------------------------------------
   7. ANIMATIONS
   ------------------------------------------------------------------ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ------------------------------------------------------------------
   8. RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-height: 780px) and (min-width: 1001px) {
  .hero     { padding: 72px 48px; }
  .headline { font-size: 64px; }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 88px 48px 80px;
    align-items: start;
  }
  .headline { font-size: 56px; }
}

@media (max-width: 700px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .site-nav      { padding: 14px 24px; }
  .site-nav .wordmark { font-size: 18px; }

  .hero {
    padding: 80px 24px 64px;
    gap: 32px;
  }
  .section-label { top: 24px; left: 24px; }
  .page-stamp    { top: 24px; right: 24px; font-size: 10px; letter-spacing: 0.14em; }

  .headline { font-size: 48px; }
  .lead     { font-size: 16px; }

  .contact        { padding: 32px 24px; }
  .contact-ghost  { width: 200px; height: 200px; bottom: -36px; right: -36px; }
  .contact-value  { font-size: 22px; }
  .contact::before,
  .contact::after { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-label,
  .page-stamp,
  .eyebrow,
  .headline,
  .lead,
  .contact {
    animation: none;
  }
  .contact-arrow,
  .contact-link {
    transition: none;
  }
}
