/* ==========================================================================
   Lantern Taxes — styles.css
   Static landing page. No build step. Fonts: Fraunces (display) + Inter (body).
   ========================================================================== */

:root {
  --ink: #0e1826;
  --ink-2: #152238;
  --ink-3: #1d2d47;
  --paper: #faf7f1;
  --paper-2: #f2ece1;
  --card: #ffffff;
  --card-dark: rgba(255, 255, 255, 0.05);

  --text: #1b2433;
  --muted: #5a6473;
  --text-on-dark: #f4efe6;
  --muted-on-dark: #a9b4c6;

  --amber: #f3a83a;
  --amber-2: #ffc76b;
  --amber-soft: rgba(243, 168, 58, 0.14);
  --brass: #8b5b12;

  --line: rgba(27, 36, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 24, 38, 0.05), 0 14px 36px -16px rgba(14, 24, 38, 0.22);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
}

/* Reset ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-2); }

.section-dark {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(243, 168, 58, 0.16), transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark .intro { color: var(--muted-on-dark); }
.section-dark a { color: var(--amber-2); }
.section-dark a:hover { color: #fff; }
.section-dark .btn-primary, .section-dark .btn-primary:hover { color: var(--ink); }
.section-dark .btn-ghost { color: var(--text-on-dark); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { margin-bottom: 0.4em; }

.intro {
  font-size: 1.125rem;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--amber); }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-sm { padding: 10px 16px; font-size: 0.9rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
}
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--ink);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--amber); }

.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(55% 45% at 50% 105%, rgba(243, 168, 58, 0.28), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding-block: clamp(56px, 8vw, 112px) 0;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 0.35em; }

.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted-on-dark);
  max-width: 34em;
}

.proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: var(--muted-on-dark);
}
.proof li {
  position: relative;
  padding-left: 16px;
}
.proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 260px;
}

.lantern {
  width: clamp(180px, 40vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(243, 168, 58, 0.45));
}

@media (min-width: 860px) {
  .hero {
    background:
      radial-gradient(45% 60% at 78% 55%, rgba(243, 168, 58, 0.30), transparent 62%),
      radial-gradient(30% 40% at 78% 55%, rgba(255, 199, 107, 0.16), transparent 60%),
      linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    padding-block: clamp(72px, 9vw, 128px);
  }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-art { align-items: center; min-height: 0; }
}

/* Flame animation, opt-in to motion only */
@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flicker 3.2s ease-in-out infinite; transform-origin: 80px 154px; }
  .flame-core { animation: flicker 2.4s ease-in-out infinite reverse; transform-origin: 80px 149px; }
  .halo { animation: breathe 5s ease-in-out infinite; transform-origin: 80px 136px; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  40% { transform: scale(1.04, 1.08) translateY(-1px); opacity: 0.94; }
  70% { transform: scale(0.97, 1.02) translateY(0.5px); opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

/* Cards ----------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.card h3, .card h4 { margin-bottom: 0.45em; }
.card p { color: var(--muted); }
.card p:last-of-type { margin-bottom: 0; }

.card-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-feature p { flex: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--brass);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

/* Services -------------------------------------------------------------- */

.service-group + .service-group { margin-top: clamp(40px, 6vw, 72px); }

.service-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.service-group-head h3 { margin: 0; }
.service-group-head p { margin: 0; color: var(--muted); }

/* Principles ------------------------------------------------------------ */

.principles {
  list-style: none;
  display: grid;
  gap: 16px;
}
.principles li {
  position: relative;
  padding: 26px 26px 26px 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--card-dark);
}
.principles h3 {
  font-size: 1.3rem;
  margin: 0 0 0.35em;
}
.principles p { color: var(--muted-on-dark); margin: 0; }

.principle-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1000px) {
  .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Checklist ------------------------------------------------------------- */

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: var(--amber-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238b5b12' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.footnote {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About ----------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 300px 1fr; gap: 64px; }
}

.portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  background: var(--amber-soft);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line), 0 0 48px rgba(243, 168, 58, 0.35);
}

.about-name { font-size: 1.8rem; margin-bottom: 0.1em; }
.about-role { color: var(--muted); font-weight: 500; margin-bottom: 14px; }

.credentials, .contact-mini {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.credentials li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.contact-mini {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-heading { margin-bottom: 0.6em; }
.about-body p { color: var(--text); }
.about-body p + p { margin-top: 0; }

/* Contact --------------------------------------------------------------- */

.section-contact {
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(243, 168, 58, 0.18), transparent 60%),
    var(--ink);
}

.contact-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.contact-copy .intro { max-width: 32em; }

.contact-card {
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.contact-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.contact-card dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 2px;
}
.contact-card dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-on-dark);
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 2px rgba(243, 168, 58, 0.6);
}
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1 / -1; }
}

.footer-brand .brand-name { color: var(--ink); }
.footer-brand p { margin: 6px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: start;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }

.footer-meta {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-meta p { margin: 0 0 6px; }
.disclaimer { max-width: 70ch; font-size: 0.85rem; }

/* 404 ------------------------------------------------------------------- */

.page-404 {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-on-dark);
  background:
    radial-gradient(55% 45% at 50% 100%, rgba(243, 168, 58, 0.28), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: var(--section-y) var(--gutter);
}
.page-404 h1 { color: #fff; }
.page-404 p { color: var(--muted-on-dark); max-width: 36em; margin-inline: auto; }
.page-404 .lantern { margin: 0 auto 28px; width: 140px; }
