/* =========================================================================
   LIMEN — stylesheet
   -------------------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED (read this once):

   1. TOKENS      — colors, fonts, spacing. Change the site's whole look
                    by editing values here. Nothing else.
   2. RESET       — quiet defaults, don't touch unless you know why.
   3. LAYOUT      — header, footer, page shell.
   4. TYPE        — headings, paragraphs, links.
   5. THRESHOLD   — the signature divider motif.
   6. COMPONENTS  — cards, quotes, forms, buttons.
   7. MOTION      — the single scroll fade-in effect.
   8. RESPONSIVE  — small-screen adjustments.
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. TOKENS — edit these to reskin the entire site
   ------------------------------------------------------------------------- */
:root {
  /* --- color: "dusk stone" palette --- */
  --bg:        #14171a;   /* night-slate background */
  --bg-soft:   #1b2024;   /* slightly lighter panels */
  --bg-raised: #20262b;   /* cards, form fields */
  --ink:       #e9e4d9;   /* limewashed bone (main text) */
  --ink-dim:   #9aa39c;   /* lichen-sage (secondary text) */
  --accent:    #9fb08f;   /* moss/lichen accent (links, focus, small marks) */
  --line:      rgba(233, 228, 217, 0.16); /* hairline rule color */
  --line-soft: rgba(233, 228, 217, 0.08);

  /* --- type --- */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --size-huge:  clamp(2.6rem, 7vw, 5.4rem);
  --size-xl:    clamp(1.8rem, 4vw, 2.8rem);
  --size-lg:    1.4rem;
  --size-base:  1.0625rem;
  --size-small: 0.875rem;

  /* --- rhythm --- */
  --measure: 62ch;        /* comfortable reading width */
  --gap-section: clamp(4.5rem, 10vw, 8rem);
  --gap-block: 1.75rem;
  --radius: 2px;          /* almost square — this is a stone site, not a soft app */
}

/* -------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }

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

/* -------------------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.site-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.site-mark a { text-decoration: none; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
  font-size: var(--size-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

main { display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem) 3rem;
  color: var(--ink-dim);
  font-size: var(--size-small);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-dim); }
.site-footer a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   4. TYPE
   ------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.6em;
}
h1 { font-size: var(--size-huge); letter-spacing: 0.01em; }
h2 { font-size: var(--size-xl); }
h3 { font-size: var(--size-lg); color: var(--ink); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.eyebrow {
  display: inline-block;
  font-size: var(--size-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-dim);
  max-width: var(--measure);
}

.fragment {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 42ch;
}

/* -------------------------------------------------------------------------
   5. THRESHOLD — the signature divider
   A hairline with a gap at its center, like a doorway.
   Use it between sections instead of a plain <hr>.
   ------------------------------------------------------------------------- */
.threshold {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}
.threshold::before,
.threshold::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.threshold span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  opacity: 0.85;
}

/* -------------------------------------------------------------------------
   6. COMPONENTS
   ------------------------------------------------------------------------- */
section { padding: var(--gap-section) 0; }

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 10vh, 6rem) 0;
}

.grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.figure {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 0.5rem;
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  font-size: var(--size-small);
  color: var(--ink-dim);
  padding: 0.75rem 0.5rem 0.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }

/* forms */
.field { margin-bottom: 1.4rem; max-width: var(--measure); }
.field label {
  display: block;
  font-size: var(--size-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-base);
  padding: 0.75em 0.9em;
  border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

table.fees {
  width: 100%;
  border-collapse: collapse;
  max-width: var(--measure);
}
table.fees th,
table.fees td {
  text-align: left;
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
table.fees th {
  font-size: var(--size-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   7. MOTION — one effect, used consistently
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------------
   8. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero { min-height: 60vh; }
}
