/* Anna Larson CPA PLLC — site styles
   Navy, dusty rose, rose gold on linen. Restraint over decoration. */

:root {
  --navy: #1B2A4A;
  --navy-deep: #121C33;
  --rose: #C4A4A7;
  --rose-gold: #C4A484;
  --rose-ink: #6B4A36;
  --cream: #F7F3EF;
  --cream-deep: #EFE8E0;
  --wash: #E8D6D4;
  --ink: #1B2A4A;
  --muted: #4A4458;
  --muted-soft: #5C5668;
  --paper: #FDFCFA;
  --line: rgba(196, 164, 132, 0.5);
  --line-strong: rgba(196, 164, 132, 0.85);
  --shadow: 0 18px 40px rgba(27, 42, 74, 0.06);
  --header-h: 4.25rem;
  --max: 68rem;
  --measure: 38rem;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Quiet linen grain — CSS only, no photos */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--navy);
  text-decoration-color: var(--rose-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 500;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
  color: var(--cream);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.wordmark:hover { text-decoration: none; }

.wordmark-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wordmark-cpa {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  top: -0.12em;
}

.site-footer .wordmark-cpa { color: var(--rose-gold); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.65rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--rose-gold);
}

.site-nav .nav-cta {
  border: 1px solid var(--navy);
  padding: 0.4rem 0.85rem;
  border-bottom-color: var(--navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--navy);
  color: var(--cream);
  border-bottom-color: var(--navy);
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border: 1px solid var(--navy);
  }
}

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

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

main { display: block; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.85rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  background: var(--rose-gold);
  margin-top: 0.65rem;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  max-width: 36rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.measure { max-width: var(--measure); }

hr.rule,
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--navy);
  cursor: pointer;
  font-family: var(--sans);
}

.btn:hover {
  background: var(--navy-deep);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

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

.hero {
  position: relative;
  padding: clamp(2.75rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3.5rem;
  }
}

.hero-aside {
  position: relative;
  min-height: 8rem;
}

.ornament {
  width: min(100%, 16rem);
  height: auto;
  color: var(--rose-gold);
  opacity: 0.7;
  margin-left: auto;
}

.hero-meta {
  font-size: 0.92rem;
  color: var(--muted-soft);
  max-width: 16rem;
  margin: 1.25rem 0 0 auto;
  text-align: right;
}

.band {
  background: var(--navy);
  color: #E8D6D4;
  padding: 0.85rem 0;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.band span { color: #E8D6D4; }
.band i {
  font-style: normal;
  color: var(--rose-gold);
}

/* ---------- Paths / cards ---------- */

.section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.section-wash { background: var(--wash); }

.section-linen {
  background: var(--cream-deep);
  border-top: 1px solid var(--line-strong);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card p { margin: 0 0 1.15rem; }

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link::after {
  content: "→";
  color: var(--rose-gold);
  transition: transform 0.15s ease;
}

.card-link:hover::after { transform: translateX(3px); }

.list-plain {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.list-plain li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.list-plain li:last-child { border-bottom: 1px solid var(--line); }

.list-plain strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.split {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
}

.note-box p { margin: 0; }

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

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact-direct a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.contact-direct a:hover { text-decoration: underline; text-decoration-color: var(--rose-gold); }

.contact-direct .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-soft);
  margin-bottom: 0.2rem;
}

.contact-direct .value {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

form.mail-form {
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.field .hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted-soft);
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 0.7rem 0.8rem;
  width: 100%;
  border-radius: 0;
}

input:hover,
select:hover,
textarea:hover { border-color: rgba(27, 42, 74, 0.35); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

textarea { min-height: 8rem; resize: vertical; }

.form-note {
  font-size: 0.88rem;
  color: var(--muted-soft);
  margin: 0;
}

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

.site-footer {
  background: var(--navy);
  color: #D9D0C8;
  padding: 2.75rem 0 2rem;
  margin-top: 0;
}

.site-footer a { color: #F7F3EF; text-decoration-color: var(--rose-gold); }

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand .wordmark-name { color: #F7F3EF; font-size: 1.45rem; }
.footer-brand .wordmark-cpa { color: var(--rose-gold); }

.footer-legal {
  font-size: 0.88rem;
  margin: 0.85rem 0 0;
  max-width: 22rem;
  color: #C9C0B8;
}

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin: 0 0 0.4rem; }

.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--rose-gold); }

.footer-base {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(196, 164, 132, 0.28);
  font-size: 0.82rem;
  color: #B7AFA6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
}

/* ---------- Page-specific ---------- */

.page-hero { padding-top: clamp(2.4rem, 6vw, 4rem); }

.cta-band {
  background: var(--navy);
  color: #E8D6D4;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.cta-band h2 { color: #F7F3EF; }
.cta-band p { color: #D4CBC3; max-width: 34rem; }
.cta-band .btn { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.cta-band .btn:hover { background: var(--wash); }
.cta-band .btn-ghost { background: transparent; color: var(--cream); border-color: var(--rose-gold); }
.cta-band .btn-ghost:hover { background: var(--cream); color: var(--navy); }

.cta-band .eyebrow { color: #E8D6D4; }
.cta-band .btn-row { margin-top: 1.25rem; }
.cta-band a:not(.btn) { color: #F7F3EF; }
.split .note-box { margin-top: 2rem; }

.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(27, 42, 74, 0.08);
  }
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.35;
  color: var(--navy);
  max-width: 28rem;
  margin: 0;
}

/* 404 */
.not-found {
  min-height: calc(100vh - 16rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.not-found .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.9;
  color: var(--wash);
  margin: 0 0 0.5rem;
}


.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;
}

.contact-section { padding-top: 0; }


/* ---------- Portrait ---------- */

.portrait {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0.85rem -0.7rem -0.7rem 0.85rem;
  border: 1px solid var(--rose-gold);
  z-index: 0;
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1339 / 1612;
  object-fit: cover;
  object-position: center 14%;
}

.portrait figcaption {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted-soft);
}

.portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.portrait-crop {
  position: relative;
  width: 100%;
  max-width: 22rem;
}

.portrait-crop::before {
  content: "";
  position: absolute;
  inset: 0.7rem -0.55rem -0.55rem 0.7rem;
  border: 1px solid var(--rose-gold);
  z-index: 0;
}

.portrait-crop img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-wide {
  max-width: 28rem;
}

@media (max-width: 55.99rem) {
  .hero .portrait { max-width: 20rem; }
}

/* ---------- Two sides ---------- */

.two-sides {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .two-sides {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .two-sides > article {
    padding: 0 2.75rem;
  }

  .two-sides > article:first-child {
    padding-left: 0;
    padding-right: 2.85rem;
    border-right: 1px solid var(--line-strong);
  }

  .two-sides > article:last-child {
    padding-right: 0;
    padding-left: 2.85rem;
  }
}

.two-sides h3 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin-bottom: 0.75rem;
}

.two-sides p { margin: 0 0 1.15rem; }

.who-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .who-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.who-item {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-strong);
}

.who-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.who-item p { margin: 0; }

/* ---------- Footer machine link ---------- */

.machine-link {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #8F877F;
  text-decoration: none;
}

.machine-link:hover {
  color: #F7F3EF;
  text-decoration: underline;
  text-decoration-color: var(--rose-gold);
}

/* ---------- About photo column ---------- */

.about-split {
  align-items: center;
}

@media (min-width: 52rem) {
  .about-split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
