/* Ursulescu Law — starter site styles
   Tokens from drafts/branding-guide-v2.md §9 (contrast-verified) */

:root {
  --spruce: #1E3A2F;        /* primary — AAA on stone */
  --spruce-deep: #162C24;   /* hover shade */
  --stone: #F5F1E8;         /* page background */
  --stone-panel: #EFE9DC;   /* subtle panel tint */
  --ink: #20242A;           /* body text — AAA on stone */
  --slate: #5C6B73;         /* captions — AA on stone */
  --brass-deep: #8A6520;    /* functional accent: links, alt buttons — AA */
  --brass: #B98A2F;         /* decorative only: rules, large numerals */
  --white: #FFFFFF;
  --max: 68rem;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--spruce);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { max-width: 42rem; }

a { color: var(--brass-deep); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--stone);
  border-bottom: 1px solid rgba(32, 36, 42, 0.12);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img { height: 52px; width: auto; display: block; }

@media (max-width: 47rem) {
  .wordmark img { height: 40px; }
}

.site-nav {
  display: flex; gap: 1.4rem; align-items: center;
  flex-wrap: wrap; justify-content: flex-end; row-gap: 0;
}
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  padding: 0.5rem 0;
  white-space: nowrap;
}

@media (max-width: 66rem) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }
  .wordmark img { height: 42px; }
}
.site-nav a:hover { color: var(--brass-deep); }

.site-nav a.btn-primary { color: var(--white); padding: 0.6rem 1.1rem; white-space: nowrap; }
.site-nav a.btn-primary:hover { color: var(--white); }

@media (max-width: 47rem) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  min-height: 44px;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.btn-primary { background: var(--spruce); color: var(--white); }       /* 12.3:1 AAA */
.btn-primary:hover { background: var(--spruce-deep); color: var(--white); }

.btn-accent { background: var(--brass-deep); color: var(--white); }    /* 5.3:1 AA */
.btn-accent:hover { background: #6F511A; color: var(--white); }

.btn-quiet {
  background: transparent; color: var(--spruce);
  border: 1.5px solid var(--spruce);
}
.btn-quiet:hover { background: rgba(30, 58, 47, 0.07); color: var(--spruce); }

/* ---------- sections ---------- */

section { padding: 4.5rem 0; scroll-margin-top: 6.5rem; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.9rem;
}

.rule {
  border: 0; height: 2px; width: 4.5rem;
  background: var(--brass);  /* decorative use only */
  margin: 1.4rem 0;
}

/* hero */

.hero { padding: 5.5rem 0 4.5rem; }
.hero p.lead { font-size: 1.2rem; margin: 1.4rem 0 2rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.trust-line {
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--slate);
  border-left: 3px solid var(--brass);
  padding-left: 1rem;
  max-width: 40rem;
}

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(32, 36, 42, 0.1);
  border-top: 3px solid var(--brass); /* decorative */
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card p { font-size: 1rem; }

/* alternating band */

.band { background: var(--stone-panel); }

/* session steps */

.steps { counter-reset: step; margin-top: 2.2rem; display: grid; gap: 1.6rem; }

.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brass); /* decorative numeral, large */
  line-height: 1;
  padding-top: 0.15rem;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 47rem) {
  .about-grid { grid-template-columns: 1fr; }
}

.portrait {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* faq */

details {
  background: var(--white);
  border: 1px solid rgba(32, 36, 42, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-top: 0.9rem;
}

summary {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--spruce);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details p { margin-top: 0.8rem; font-size: 1rem; }

/* contact */

.contact-panel {
  background: var(--spruce);
  color: var(--stone);
  border-radius: var(--radius);
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
}

.contact-panel h2 { color: var(--white); }
.contact-panel p { color: var(--stone); }        /* 10.9:1 AAA */
.contact-panel a { color: var(--white); }
.contact-panel .actions { margin-top: 1.8rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.contact-panel .btn-primary { background: var(--white); color: var(--spruce); }
.contact-panel .btn-primary:hover { background: var(--stone); color: var(--spruce); }

address { font-style: normal; margin-top: 1.4rem; line-height: 1.8; }

/* footer */

.site-footer {
  border-top: 1px solid rgba(32, 36, 42, 0.12);
  padding: 2.5rem 0 3rem;
  font-size: 0.88rem;
  color: var(--slate);
  text-align: center;
}

.site-footer p { max-width: 52rem; margin: 0 auto 0.7rem; }
.site-footer strong { color: var(--ink); }

/* story page */

.story { padding: 4.5rem 0 5rem; }
.story .container { max-width: 46rem; }
.story h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.story .byline {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.story p { margin-bottom: 1.1rem; }
.story .rule { margin: 1.6rem 0 2rem; }
.story .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
