/* Local Latin faces. Newsreader and Source Sans 3 are variable. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("fonts/newsreader-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-italic-latin.woff2") format("woff2");
}

/* ============================================================
   Torrey CS — design tokens
   From /workspace/torrey-brand/BRAND-BRIEF.md.
   ============================================================ */
:root {
  --color-graphite: #292C2E;
  --color-champagne: #B59A65;
  --color-ivory: #F4F0E9;
  --color-white: #FFFFFF;
  --color-stone: #E8E2D6;
  --color-graphite-muted: #5E6163;
  --color-graphite-soft: #3E4244;
  --color-ink: #1A1C1E;
  --color-focus: #F4F0E9;
  --color-champagne-bright: #C9B17A;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text: var(--color-graphite);
  --text-muted: var(--color-graphite-muted);
  --bg: var(--color-ivory);
  --hairline-gold: rgba(181, 154, 101, 0.45);

  --max: 1120px;
  --gutter: clamp(1.25rem, 4.5vw, 3.25rem);
  --nav-h: 4.75rem;
  --radius: 4px;
  --transition: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1 { margin: 0; }

::selection {
  background: rgba(181, 154, 101, 0.35);
  color: var(--color-ivory);
}
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--color-graphite);
  color: var(--color-ivory);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.6rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-champagne);
  line-height: 1.3;
  text-align: center;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--color-champagne);
  flex-shrink: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(181, 154, 101, 0.32);
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.28) 100%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 2.7rem;
  width: auto;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}
.btn-login {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-ivory);
  padding: 0.4rem 0.15rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn-login:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.btn-login:focus-visible { outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--color-champagne);
  color: var(--color-ink);
  border-color: var(--color-champagne);
}
.btn-primary:hover {
  background: var(--color-champagne-bright);
  border-color: var(--color-champagne-bright);
  color: var(--color-ink);
}
.btn-primary:focus-visible {
  outline-color: var(--color-ivory);
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 2.5rem) 0 4.5rem;
  text-align: center;
  color: var(--color-ivory);
  background: var(--color-ink);
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-media { z-index: 0; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 28%;
}
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(26, 28, 30, 0.38) 0%,
      rgba(26, 28, 30, 0.52) 40%,
      rgba(18, 16, 14, 0.78) 100%
    ),
    radial-gradient(
      ellipse 80% 65% at 50% 50%,
      rgba(18, 16, 14, 0.42),
      transparent 72%
    );
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 1.35rem; }
.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 450;
  font-size: clamp(3.1rem, 8vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--color-ivory);
  margin-bottom: 1.15rem;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}
.hero .lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: rgba(244, 240, 233, 0.92);
  max-width: 32em;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  margin-top: 2rem;
}
.touch {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--color-champagne);
  padding-bottom: 0.12rem;
}
.touch:hover { border-bottom-color: var(--color-ivory); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.practice {
  position: relative;
  background-color: var(--color-ivory);
  background-image:
    linear-gradient(rgba(181, 154, 101, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 154, 101, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(181, 154, 101, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 154, 101, 0.07) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, 0.75rem 0.75rem, 0.75rem 0.75rem;
  background-position: center top;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}
.practice-sheet {
  border: 1px solid rgba(181, 154, 101, 0.48);
  box-shadow: inset 0 0 0 3px var(--color-ivory), inset 0 0 0 4px rgba(181, 154, 101, 0.36);
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.25rem, 3.5vw, 2.75rem);
  background: color-mix(in srgb, var(--color-ivory) 82%, transparent);
}
.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.practice-list li {
  padding: 0.15rem clamp(1.15rem, 2.6vw, 2.15rem);
  border-right: 1px solid rgba(181, 154, 101, 0.38);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.practice-list li:first-child { padding-left: 0.15rem; }
.practice-list li:last-child {
  border-right: 0;
  padding-right: 0.15rem;
}
.practice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
  color: var(--color-champagne);
}
.practice-icon svg {
  width: 3rem;
  height: 3rem;
  display: block;
}
.practice-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 450;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.practice-list p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--color-graphite-muted);
  max-width: 18em;
  text-wrap: balance;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--hairline-gold);
  padding: 1.35rem 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--color-ivory);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--color-graphite);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@media (max-width: 520px) {
  .logo img { height: 2.25rem; }
  .hero { padding: calc(var(--nav-h) + 2rem) 0 3.25rem; }
  .eyebrow { letter-spacing: 0.1em; }
  .practice { padding: 1.75rem 0 2rem; }
  .practice-sheet { padding: 1.65rem 1.1rem 1.5rem; }
  .practice-list {
    grid-template-columns: 1fr;
  }
  .practice-list li {
    border-right: 0;
    border-bottom: 1px solid rgba(181, 154, 101, 0.38);
    padding: 1.25rem 0.15rem;
  }
  .practice-list li:first-child { padding-top: 0.15rem; }
  .practice-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }
  .practice-icon { margin-bottom: 0.85rem; }
}

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