/* North Georgia Hermes AI Agent Consulting — main stylesheet
   Palette: warm paper + ink + one quiet accent
   Register: operator's notebook, not consulting landing page */

:root {
  /* Palette — v5 (Mr. V tokens 2026-09-11) */
  --page:       #F7F4EE;        /* warm paper */
  --surface:    #FFFCF7;        /* lighter surface for cards/quotes */
  --ink:        #1C1917;        /* primary text */
  --muted:      #57534E;        /* secondary text */
  --hairline:   #E7E0D6;        /* warm border */
  --accent:     #2F5D50;        /* links only — never buttons */
  --accent-on-surface: #2F5D50;

  /* Type scale — fluid via clamp (utopia-style) */
  --step--1:    clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:     clamp(1.0625rem, 1.02rem + 0.22vw, 1.125rem);   /* body */
  --step-1:     clamp(1.25rem, 1.18rem + 0.36vw, 1.375rem);
  --step-2:     clamp(1.5rem, 1.38rem + 0.6vw, 1.75rem);       /* h2 */
  --step-3:     clamp(1.875rem, 1.66rem + 1.08vw, 2.375rem);   /* h1 */
  --step-4:     clamp(2.25rem, 1.9rem + 1.75vw, 3rem);         /* hero */

  /* Measure (line length target 38–42rem) */
  --measure:    38rem;
  --measure-narrow: 32rem;

  /* Layout */
  --gutter:     clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  --section-pad: clamp(3rem, 2.4rem + 2.5vw, 4.5rem);

  /* Type families — two only */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
                "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius-photo: 10px;
  --radius-card:  8px;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Selection — quiet */
::selection { background: var(--ink); color: var(--page); }

/* === NAV === */

header {
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
  padding: 1.125rem var(--gutter);
}

nav {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav .site-name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--step--1);
  transition: color 0.15s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* === MAIN === */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main > * { max-width: 100%; }

/* === HERO === */

.hero {
  padding: clamp(3rem, 2.5rem + 2.5vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 32ch;
}

.hero .lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: var(--measure-narrow);
}

.hero .meta {
  font-size: var(--step--1);
  color: var(--muted);
  font-style: italic;
  margin-top: 1.5rem;
}

/* Hero figure — narrow, constrained, sits under the prose */
.hero-figure {
  margin: 2rem auto 0;
  max-width: 32rem;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo);
}

.hero-figure figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
}

/* === SECTIONS === */

section {
  margin: 0;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hairline);
}

section h2 {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  color: var(--ink);
}

section h3 {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}

section p {
  margin: 0.875rem 0;
  max-width: var(--measure-narrow);
}

section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

section a:hover {
  text-decoration-color: var(--accent);
}

section ul, section ol {
  max-width: var(--measure-narrow);
  padding-left: 1.25rem;
}

section li { margin: 0.4rem 0; }

/* Quote-ish lines (used in contact paths, etc.) */
.note {
  border-left: 2px solid var(--hairline);
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--muted);
  font-style: italic;
  margin: 2rem 0;
}

/* === POST LIST (home + /blog/) === */

.posts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.posts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.posts li:last-child { border-bottom: 0; }

.posts a {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.posts a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.posts .date {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.25rem;
}

/* === ABOUT PAGE PHOTOS === */

.about-photo {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === FOOTER === */

footer {
  margin-top: clamp(3rem, 2.5rem + 2vw, 5rem);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--page);
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-0);
}

.footer-place,
.footer-email,
.footer-year {
  margin: 0;
}

footer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

footer a:hover {
  text-decoration-color: var(--accent);
}

.footer-credit {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

/* === MOBILE === */

@media (max-width: 600px) {
  nav { gap: 1rem; }
  nav ul { gap: 1rem; }
}

/* === ACCESSIBILITY === */

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

/* Skip-link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--page);
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}