/* ABOUTME: Global design system — warm luxury personal brand: Marcellus + Jost, copper/cream/charcoal OKLCH */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* OKLCH palette — cream base, copper accent from the signature logo */
  --c-bg:          oklch(96.5% 0.012 85);
  --c-bg-mid:      oklch(92%   0.015 85);
  --c-bg-dark:     oklch(24%   0.015 60);
  --c-text:        oklch(25%   0.012 60);
  --c-text-muted:  oklch(50%   0.015 60);
  --c-accent:      oklch(58%   0.09  55);
  --c-accent-dk:   oklch(48%   0.09  55);
  --c-mid:         oklch(80%   0.02  70);
  --c-border:      oklch(88%   0.015 80);
  --c-white:       oklch(98.5% 0.008 85);

  /* Typography */
  --f-display: 'Marcellus', Georgia, serif;
  --f-body:    'Jost', 'Avenir Next', system-ui, sans-serif;

  /* Type scale — fluid, elegant rather than shouty */
  --t-hero:    clamp(2.5rem, 5.5vw, 4.75rem);
  --t-h2:      clamp(1.75rem, 3.2vw, 2.75rem);
  --t-h3:      clamp(1.3rem, 2.2vw, 1.85rem);
  --t-h4:      clamp(1.1rem, 1.6vw, 1.35rem);
  --t-label:   0.75rem;
  --t-body:    1.0625rem;
  --t-large:   1.1875rem;
  --t-small:   0.9375rem;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast:  200ms;
  --dur-base:  350ms;
  --dur-slow:  700ms;

  /* Layout */
  --max-w:      1200px;
  --pad-inline: clamp(1.25rem, 5vw, 4.5rem);
  --nav-h:      84px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }

p {
  line-height: 1.75;
  max-width: 64ch;
  margin-bottom: 1.25rem;
}
p:last-child { margin-bottom: 0; }

/* Label — spaced uppercase copper eyebrow */
.label {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 1rem;
}

.label--muted { color: var(--c-text-muted); }

/* Underline text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-text);
  position: relative;
  padding-bottom: 3px;
}

.link-arrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--c-mid);
  transition: background var(--dur-base) var(--ease-out-quart);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after { background: var(--c-accent); }

.link-arrow:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.link-arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor; flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section-pad {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-pad--sm {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Thin copper rule — the brand divider */
.t-rule {
  display: block;
  width: 56px; height: 1px;
  background: var(--c-accent);
  margin-block: 1.5rem;
}

.t-rule--center { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 0;
  transition:
    background-color var(--dur-fast) var(--ease-out-quart),
    color            var(--dur-fast) var(--ease-out-quart),
    border-color     var(--dur-fast) var(--ease-out-quart);
}

.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* Filled copper */
.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-accent-dk); }

/* Hairline outline on light */
.btn-outline {
  background: transparent;
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-text);
}
.btn-outline:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

/* Hairline outline on dark */
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  box-shadow: inset 0 0 0 1px oklch(98.5% 0.008 85 / 0.55);
}
.btn-ghost:hover {
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-white);
}

/* ============================================================
   NAVIGATION — light, cream, signature logo
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: oklch(96.5% 0.012 85 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out-quart);
}

.site-nav.scrolled { border-color: var(--c-border); }

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.nav-logo img {
  height: 44px; width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-links a {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width var(--dur-base) var(--ease-out-quart);
}

.nav-links a:hover { color: var(--c-accent); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--c-accent); }
.nav-links a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }

/* Contact CTA in nav */
.nav-cta {
  padding: 0.6rem 1.5rem;
  box-shadow: inset 0 0 0 1px var(--c-accent);
  color: var(--c-accent) !important;
  transition: background var(--dur-fast), color var(--dur-fast) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--c-accent); color: var(--c-white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 26px; height: 1px;
  background: var(--c-text);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--c-bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out-quart);
    border-top: 1px solid var(--c-border);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-family: var(--f-display) !important;
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    color: var(--c-text) !important;
    font-weight: 400 !important;
  }
  .nav-cta {
    box-shadow: none;
    padding: 0;
    color: var(--c-accent) !important;
  }
  .nav-cta:hover { background: none; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity  var(--dur-slow) var(--ease-out-quart),
      transform var(--dur-slow) var(--ease-out-quart);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 80ms; }
  .reveal-delay-2 { transition-delay: 160ms; }
  .reveal-delay-3 { transition-delay: 240ms; }
  .reveal-delay-4 { transition-delay: 320ms; }
  .reveal-delay-5 { transition-delay: 400ms; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PAGE HERO (sub-pages) — light, warm, serif
   ============================================================ */
.page-hero {
  background: var(--c-bg-mid);
  padding-block: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--c-border);
}

.page-hero h1 {
  color: var(--c-text);
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.page-hero .hero-sub {
  font-size: var(--t-large);
  color: var(--c-text-muted);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.65;
}

/* ============================================================
   FOOTER — warm charcoal, copper accents
   ============================================================ */
.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-white);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; align-items: start; }
}

.footer-brand img {
  height: 44px; width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: var(--t-small);
  color: oklch(98.5% 0.008 85 / 0.5);
  max-width: 300px;
  line-height: 1.75;
  margin: 0;
  font-weight: 300;
}

.footer-col-heading {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list a {
  font-size: var(--t-small);
  font-weight: 300;
  color: oklch(98.5% 0.008 85 / 0.7);
  transition: color var(--dur-fast);
}
.footer-nav-list a:hover { color: var(--c-accent); }
.footer-nav-list a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.footer-contact-list p {
  font-size: var(--t-small);
  font-weight: 300;
  color: oklch(98.5% 0.008 85 / 0.7);
  margin-bottom: 0.6rem;
  max-width: none;
}

.footer-contact-list a {
  color: var(--c-accent);
  transition: color var(--dur-fast);
}
.footer-contact-list a:hover { color: var(--c-white); }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(98.5% 0.008 85 / 0.1);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  color: oklch(98.5% 0.008 85 / 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }
