/* ================================================================
   hunterhodnett.ai — Editorial Broadsheet × Modern Tech Luxury
   ================================================================ */

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Design Tokens ===== */
:root {
  --color-bg: #FAF9F5;
  --color-text: #1A1917;
  --color-text-muted: #6D6A60;
  --color-accent: #8C714A;
  --color-accent-hover: #6F5938;
  --color-border: #D6D2C9;
  --color-border-strong: #1A1917;
  --color-surface: #F0EDE6;
  --color-tag-border: #C4C0B6;
  --color-tag-text: #5C594F;

  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino,
    "Times New Roman", Times, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-width: 680px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0E0E0D;
    --color-text: #E6E2D8;
    --color-text-muted: #9A968C;
    --color-accent: #C9A86C;
    --color-accent-hover: #DDBF86;
    --color-border: #2C2C26;
    --color-border-strong: #E6E2D8;
    --color-surface: #1A1A15;
    --color-tag-border: #3A3A32;
    --color-tag-text: #9A968C;
  }
}

/* ===== Base Typography ===== */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}

h2 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

/* ===== Layout Shell ===== */
.site-header,
.site-footer,
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ===== Masthead ===== */
.site-header {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--color-border-strong);
}

.site-header nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.site-header h1 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.site-header .site-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .site-name:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: "\00b7";
  margin: 0 var(--space-md);
  color: var(--color-border);
  font-size: 1rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a[aria-current="page"] {
  color: var(--color-text);
}

/* ===== Main Content ===== */
main {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ===== Hero ===== */
.hero {
  margin-bottom: var(--space-2xl);
  text-align: center;
  padding-top: var(--space-sm);
}

.hero-deck {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}

.hero .subtitle {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero .subtitle a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.hero .subtitle a:hover {
  color: var(--color-accent);
}

.dateline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
}

.hero-bio {
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bio p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.hero-bio p:last-child {
  margin-bottom: 0;
}

/* ===== Sections ===== */
section {
  margin-bottom: var(--space-2xl);
}

/* ===== Subpage Hero (h1 inside section) ===== */
section > h1 {
  text-align: center;
  margin-bottom: var(--space-sm);
}

section > h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
  margin: var(--space-lg) auto var(--space-sm);
}

section > h1 + p {
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

/* ===== Card List ===== */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-sm);
}

.card {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  background: transparent;
  border-radius: 0;
}

.card:last-child {
  border-bottom: 1px solid var(--color-border);
}

.card h3 a,
.card h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card h3 a:hover,
.card h2 a:hover {
  color: var(--color-accent);
}

/* Override section-header h2 style when inside a card */
.card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-text);
  padding-top: 0;
  border-top: none;
  margin-bottom: var(--space-xs);
}

.card .meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card p.meta:last-child {
  font-size: 0.68rem;
}

/* "View all" links */
section > p:last-child {
  margin-top: var(--space-lg);
}

section > p:last-child a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

section > p:last-child a::after {
  content: " \2192";
  font-size: 0.75rem;
}

section > p:last-child a:hover {
  color: var(--color-accent-hover);
}

/* ===== Tags ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  padding: 2px var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-tag-border);
  border-radius: 0;
  background: transparent;
  color: var(--color-tag-text);
}

/* ===== Expertise ===== */
.expertise-list {
  margin: 0;
}

.expertise-group {
  margin-bottom: var(--space-xl);
}

.expertise-group:last-child {
  margin-bottom: 0;
}

.expertise-group dt {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.expertise-group dd {
  margin-left: 0;
}

/* ===== Skills ===== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
}

.skills-list li {
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.skills-list li:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== Footer ===== */
.site-footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border-strong);
  text-align: center;
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.site-footer p {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  list-style: none;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.footer-links li + li::before {
  content: "\00b7";
  margin: 0 var(--space-sm);
  color: var(--color-border);
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ===== Media Players ===== */
.video-embed {
  margin: var(--space-md) 0;
}

.video-embed video {
  width: 100%;
  display: block;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.card audio {
  width: 100%;
  margin: var(--space-sm) 0 var(--space-md);
}

/* ===== Search Box ===== */
.search-box {
  margin-bottom: var(--space-lg);
}

.search-box input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--color-accent);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.search-count {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* ===== Visually Hidden (accessible to scrapers) ===== */
.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;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  :root {
    --space-2xl: 3.5rem;
  }

  .hero-deck {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .site-header {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
  }

  .site-header .site-name {
    font-size: 1.25rem;
    letter-spacing: 0.18em;
  }

  .site-header nav {
    gap: var(--space-md);
  }
}
