:root {
  color-scheme: light;
  --bg: #f3efe7;
  --bg-2: #ebe4d7;
  --panel: rgba(255, 255, 255, 0.48);
  --text: #1f1a17;
  --muted: rgba(31, 26, 23, 0.66);
  --line: rgba(31, 26, 23, 0.1);
  --accent: #7f6a57;
  --shadow: 0 24px 60px rgba(54, 42, 31, 0.08);
  --radius: 24px;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 106, 87, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(170, 148, 126, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header,
.site-main {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.85rem;
}

.brand-text,
.site-nav {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
}

.site-main {
  padding: clamp(3rem, 6vw, 5.5rem) 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 760px;
}

.hero-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 30% 20%, rgba(127, 106, 87, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  min-height: 144px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.eyebrow,
.section-label,
.meta-row,
.site-footer p,
.list span,
.timeline span {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.lead {
  margin: 1.2rem 0 0;
  max-width: 44rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row span,
.site-nav a,
.contact-links a {
  padding: 0.5rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.meta-row span {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--line);
}

.site-nav a:hover,
.contact-links a:hover {
  background: rgba(255, 255, 255, 0.44);
  border-color: var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  grid-column: span 6;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-wide {
  grid-column: 1 / -1;
}

.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.list,
.timeline {
  display: grid;
  gap: 1rem;
}

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

.list li,
.timeline div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.list li:first-child,
.timeline div:first-child {
  padding-top: 0;
  border-top: 0;
}

.list li.open-to {
  position: relative;
  margin: -0.35rem -0.45rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(127, 106, 87, 0.1);
  animation: open-to-pulse 2.4s ease-in-out infinite;
}

.list li.open-to::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(127, 106, 87, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

@keyframes open-to-pulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 0 0 rgba(127, 106, 87, 0);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(127, 106, 87, 0.08);
  }
}

.list strong,
.timeline strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.list span,
.timeline span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 0 0.5rem;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.34);
  border-color: var(--line);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 0.86rem;
}

.contact-links svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-links a:nth-child(2) svg,
.contact-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.25rem 0;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    width: auto;
  }

  .site-nav a {
    display: inline-flex;
    padding: 0.4rem 0.65rem;
  }

  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    width: auto;
  }

  .contact-links a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
  }

  .panel {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-photo {
    order: -1;
    min-height: 280px;
    max-width: 320px;
    margin: 0 auto;
  }

  .meta-row {
    gap: 0.6rem;
    flex-direction: column;
  }

  .meta-row span {
    display: inline-block;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-main {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .site-header {
    padding: 0.9rem 0;
    gap: 0.65rem;
  }

  .site-main {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .brand-text {
    font-size: 0.75rem;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .site-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .hero {
    gap: 1.25rem;
    padding: 1rem 0 1.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-photo {
    order: -1;
    max-width: 240px;
    width: 100%;
    min-height: 240px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 16vw, 3.5rem);
    margin: 0.5rem 0 0;
  }

  .eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.7rem;
  }

  .lead {
    margin: 0.8rem 0 0;
    font-size: clamp(0.9rem, 1.8vw, 1.02rem);
    line-height: 1.5;
  }

  .meta-row {
    margin-top: 1rem;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .meta-row span {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .section-grid {
    gap: 0.75rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 18px;
    grid-column: 1 / -1;
  }

  .section-label {
    margin: 0 0 0.8rem;
    font-size: 0.7rem;
  }

  .list,
  .timeline {
    gap: 0.8rem;
  }

  .list li,
  .timeline div {
    padding-top: 0.8rem;
  }

  .list strong,
  .timeline strong {
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
  }

  .list span,
  .timeline span {
    font-size: 0.85rem;
  }

  .site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.25rem 0;
  }

  .site-footer p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
  }

  .contact-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }

  .contact-links svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .fab-stack {
    right: 0.75rem;
    bottom: 1rem;
    gap: 0.5rem;
  }

  .fab {
    width: 40px;
    height: 40px;
  }

  .fab svg {
    width: 16px;
    height: 16px;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}

/* Floating action button (FAB) stack */
.fab-stack {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column-reverse; /* stack visually with the first link at bottom */
  gap: 0.6rem;
  z-index: 2000;
}
.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--muted-bg);
  color: var(--text);
  border: 1px solid var(--muted);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.fab svg { width: 18px; height: 18px; display: block; }
.fab:hover, .fab:focus { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,0.32); outline: none; }
.fab:active { transform: translateY(-1px) scale(0.99); }

/* Make touch targets larger on small screens */
@media (max-width: 480px) {
  .fab { width: 52px; height: 52px; }
  .fab-stack { right: 0.8rem; bottom: 1rem; }
}

/* Accessibility: ensure fab stack does not cover important content on small screens; shift left if necessary */
@media (max-width: 360px) {
  .fab-stack { right: 0.5rem; }
}
