/* ============================================================
   Angela O. Digital — Magazine editorial palette
   ============================================================ */

:root {
  --bg: #f4efe6;
  --paper: #ffffff;
  --ink: #1c1814;
  --muted: #7a7166;
  --rule: #d6cdbc;
  --accent: #9b4b3a;
  --accent-soft: #c97a68;
  --accent-bg: #f0e3dd;
  --gold: #b8944a;
  --card-bg: #faf7f2;
  --shadow: rgba(28, 24, 20, 0.06);
}
:root[data-theme="dark"] {
  --bg: #141210;
  --paper: #1e1b16;
  --ink: #e2d9ca;
  --muted: #8a8174;
  --rule: #3a342c;
  --accent: #d48a7a;
  --accent-soft: #b86a5a;
  --accent-bg: #2a1e1a;
  --gold: #c9a85a;
  --card-bg: #1e1b16;
  --shadow: rgba(0, 0, 0, 0.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #141210;
    --paper: #1e1b16;
    --ink: #e2d9ca;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #d48a7a;
    --accent-soft: #b86a5a;
    --accent-bg: #2a1e1a;
    --gold: #c9a85a;
    --card-bg: #1e1b16;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

/* --- Outer page container (gutter + max-width) --- */
main, footer {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: clamp(1.5rem, 3vw, 4rem);
  padding-right: clamp(1.5rem, 3vw, 4rem);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.05em; transition: color .2s; }
a:hover { color: var(--accent-soft); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Dropcap --- */
.dropcap::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: 0.8;
  padding-right: 0.15em;
  padding-top: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-family: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
}

/* --- Nav --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo:hover { color: var(--ink); }
.logo-thin { font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* --- Theme toggle (magazine editorial style) --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .2s, background-color .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  background-color: var(--accent-bg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--muted);
  transition: color .2s;
}
.theme-toggle:hover svg {
  color: var(--accent);
}

/* --- Hero card --- */
.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 0;
  border: 1px solid var(--rule);
  position: relative;
}
.hero-kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 40ch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  padding: 2rem;
  position: relative;
}
.hero-visual-inner { max-width: 28ch; }
.visual-quote {
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 0.25rem;
}
.visual-text {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.visual-attribution {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --- Section label --- */
.section-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* --- About --- */
.section-about { margin-bottom: 4rem; }
.about-content { max-width: 65ch; }
.about-content p { font-size: 1.1rem; line-height: 1.75; }

/* --- Services --- */
.section-services { margin-bottom: 4rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  background: var(--card-bg);
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 2px 12px var(--shadow);
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Insights --- */
.section-insights { margin-bottom: 4rem; }
.insights-list { max-width: 55ch; }
.insight-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.insight-item:first-child { padding-top: 0; }
.insight-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}
.insight-item h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.insight-item h3 a { text-decoration: none; color: var(--ink); }
.insight-item h3 a:hover { color: var(--accent); }
.insight-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.insights-more { margin-top: 1rem; font-size: 0.95rem; }

/* --- Contact --- */
.section-contact { margin-bottom: 3rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-text h2 { margin-bottom: 0.75rem; }
.contact-text p { color: var(--muted); }
.contact-email { margin-top: 1rem; }
.contact-email a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-status {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Footer --- */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.footer-bottom p { margin: 0; }
footer .attribution { font-size: 0.75rem; opacity: 0.7; }

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

/* --- Mobile --- */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .hero-visual { order: -1; padding: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-nav { gap: 0.75rem; }
  .nav-links { gap: 1rem; order: 3; width: 100%; justify-content: center; }
  .nav-links a { font-size: 0.8rem; }
  .footer-grid { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
