/* ---------- Theme tokens ---------- */
:root{
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --container: 1100px;

  /* Type scale (simple + readable) */
  --step--1: 0.92rem;
  --step-0:  1.00rem;
  --step-1:  1.18rem;
  --step-2:  1.55rem;
  --step-3:  2.30rem;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --font-body: "Cormorant", Georgia, "Times New Roman", serif;
}

/* Screen-reader only utility */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

html[data-theme="dark"]{
  --bg: rgb(18,22,20);
  --panel: rgba(246,242,244,0.04);
  --panel-strong: rgba(246,242,244,0.07);
  --text: rgba(246,242,244,0.88);
  --muted: rgba(246,242,244,0.66);
  --faint: rgba(246,242,244,0.52);
  --line: rgba(246,242,244,0.12);
  --shadow: 0 10px 25px rgba(0,0,0,0.6);
}

html[data-theme="light"]{
  --bg: #F7F4EE;
  --panel: rgba(28,25,22,0.04);
  --panel-strong: rgba(28,25,22,0.07);
  --text: rgba(28,25,22,0.88);
  --muted: rgba(28,25,22,0.66);
  --faint: rgba(28,25,22,0.52);
  --line: rgba(28,25,22,0.14);
  --shadow: 0 10px 25px rgba(28,25,22,0.08);

}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 900px at 20% -10%, color-mix(in srgb, var(--text) 10%, transparent), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, color-mix(in srgb, var(--text) 8%, transparent), transparent 55%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 var(--space-4); }
h1,h2,h3{ line-height: 1.2; margin: 0 0 var(--space-4); letter-spacing: -0.02em; }
h1{ font-size: var(--step-3); }
h2{ font-size: var(--step-2); }
h3{ font-size: var(--step-1); }

.small{ font-size: var(--step--1); }
.muted{ color: var(--muted); }
.note{ color: var(--faint); font-size: var(--step--1); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  z-index: 999;
}
.skip-link:focus{ left: var(--space-4); top: var(--space-4); }

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus{
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  height: auto;
  overflow: visible;

  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  z-index: 999;
}

.text-link{
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 4px;
}
.text-link:hover{ text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 650;
}

.brand-mark{
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nav{
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.nav-link{
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  color: var(--muted);
}
.nav-link:hover{ color: var(--text); background: var(--panel); }

/* Theme toggle button */
.theme-toggle{
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.theme-toggle:hover{
  color: var(--text);
  background: var(--panel-strong);
}
.theme-toggle-icon{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.theme-toggle-text{
  font-size: var(--step--1);
}

/* ---------- Sections ---------- */
.section{ padding: var(--space-16) 0; }
.hero{ padding-top: var(--space-20); }

.hero-inner{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-aside{ display: none; }
}

.eyebrow{
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--space-4);
}

.lede{
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
}

.microcopy{
  margin-top: var(--space-6);
  color: var(--faint);
  font-size: var(--step--1);
}

.section-head{
  margin-bottom: var(--space-8);
  max-width: 72ch;
}
.section-sub{
  color: var(--muted);
  margin: 0;
}

/* ---------- Cards / Grid ---------- */
.grid{
  display: grid;
  gap: var(--space-6);
}
.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
}
.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

.bullets{
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}
.bullets li{ margin: 0.45rem 0; }

.card{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.contact-email{
  font-size: var(--step-1);
  margin-top: var(--space-2);
}

/* ---------- Hero aside quiet graphic ---------- */
.quiet-panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel), transparent);
  padding: var(--space-10);
  min-height: 240px;
  box-shadow: var(--shadow);
  display: grid;
  gap: var(--space-4);
  align-content: center;
}
.quiet-line{
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.quiet-line:nth-child(2){ width: 82%; }
.quiet-line:nth-child(3){ width: 64%; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: var(--space-12) 0 var(--space-8);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
