/* Lantern Lane Ventures LLC — site styles
   Layout: one calm reading column (about 68ch) with a lantern-lit header;
   sections are separated by space, not boxes. Only the app card and the
   price table are set off as objects. */

:root {
  --paper: #f5f6f8;      /* page: cool off-white, slight blue bias */
  --ink: #18202c;        /* text: night-sky navy */
  --ink-soft: #4a5566;   /* secondary text */
  --rule: #d9dde4;       /* hairlines */
  --surface: #ffffff;    /* the few raised objects */
  --glow: #e9a23b;       /* lantern amber, for the mark and highlights */
  --link: #8a4b00;       /* amber deep enough to read as text on paper */
  --glow-soft: #fbefd9;  /* amber wash behind callouts */

  --display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0: 1.1875rem;   /* 19px body: comfortable for older readers */
  --step-1: 1.4rem;
  --step-2: 1.85rem;
  --step-3: clamp(2.2rem, 5vw, 3.1rem);
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1520;
    --ink: #e8ebf0;
    --ink-soft: #a9b2c0;
    --rule: #263142;
    --surface: #161e2b;
    --glow: #f2b544;
    --link: #f2b544;
    --glow-soft: #2a2416;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1520;
  --ink: #e8ebf0;
  --ink-soft: #a9b2c0;
  --rule: #263142;
  --surface: #161e2b;
  --glow: #f2b544;
  --link: #f2b544;
  --glow-soft: #2a2416;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 1.05rem;
}
.nav a { color: var(--ink-soft); text-decoration: none; padding-block: 0.25rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--glow); }

/* ---- Type ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }

/* ---- Sections ---- */
main { display: grid; gap: 4rem; padding-block: 3rem 4rem; }
section { display: grid; gap: 1rem; }
.prose { max-width: var(--measure); display: grid; gap: 1rem; }
.prose h2 { margin-top: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }

/* Hero: lantern mark with a soft glow, and the thesis beside it */
.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.hero-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
}
.hero-mark svg { width: 84px; height: 84px; }
.hero > div { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero-mark { width: 88px; height: 88px; }
  .hero-mark svg { width: 60px; height: 60px; }
}

/* Two-up "what we do" */
.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem 3rem;
}
.two-up > div { display: grid; gap: 0.6rem; align-content: start; min-width: 0; border-top: 2px solid var(--glow); padding-top: 1rem; }

/* The one raised object: the app card */
.app-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
}
.app-card .tagline { color: var(--ink-soft); }
.button {
  display: inline-block;
  justify-self: start;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.button:hover { opacity: 0.9; }

.badge {
  display: inline-block;
  justify-self: start;
  background: var(--glow-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Module list on the app page: the order is the course order */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.modules li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.modules .num { color: var(--ink-soft); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.2rem; }
.modules strong { display: block; font-weight: 700; }
.modules span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 700px) { .modules { column-gap: 2.5rem; } }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; max-width: var(--measure); }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glow-soft); color: var(--ink);
  font-family: var(--display); font-size: 1.2rem;
}

/* Price table */
.table-scroll { overflow-x: auto; }
.prices {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.prices th, .prices td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices tr:last-child td { border-bottom: 0; }
.prices th { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.prices td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.prices .note { display: block; color: var(--ink-soft); font-size: 0.95rem; }

/* Callout for important notices */
.callout {
  background: var(--glow-soft);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: var(--measure);
}

/* Support FAQ */
.faq { display: grid; gap: 0.75rem; max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); padding-bottom: 0.75rem; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 0.4rem; }
.faq details > div { display: grid; gap: 0.6rem; padding-top: 0.4rem; }

.contact-line { font-size: var(--step-1); font-family: var(--display); word-break: break-word; }

.meta { color: var(--ink-soft); font-size: 1rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark .flame { transform-origin: 50% 70%; animation: flicker 4s ease-in-out infinite; }
  @keyframes flicker { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.94, 1.04); } 70% { transform: scale(1.03, 0.97); } }
}
