:root {
  --bg: #f3ede3;
  --bg-2: #e5ddd0;
  --paper: rgba(255, 252, 245, 0.9);
  --paper-strong: #fffdf8;
  --ink: #1f252c;
  --muted: #5f655f;
  --line: rgba(31, 37, 44, 0.12);
  --accent: #b86137;
  --accent-2: #0b6a67;
  --accent-3: #d8a958;
  --shadow: 0 18px 50px rgba(31, 37, 44, 0.12);
  --radius: 24px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 97, 55, 0.15), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(11, 106, 103, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, #efe7da 46%, #e6ddcf 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.03;
}

h3 {
  font-size: 1.1rem;
}

.site-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(24, 29, 35, 0.8);
  box-shadow: 0 14px 40px rgba(23, 26, 31, 0.2);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy strong {
  color: #fffdf8;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: linear-gradient(135deg, rgba(216, 169, 88, 0.22), rgba(184, 97, 55, 0.35));
  color: #fff;
  transform: translateY(-1px);
}

.hero,
.page-hero,
.page-section,
.site-footer {
  padding: 2.4rem 0;
}

.hero {
  padding-top: 3.3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 1.6rem;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.page-hero-card,
.panel,
.service-card,
.contact-card,
.sidebar-card,
.archive-item,
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.page-hero-card,
.panel,
.cta-band {
  padding: clamp(1.35rem, 2vw, 2.1rem);
}

.hero-copy::after,
.hero-visual::after,
.page-hero-card::after,
.panel::after,
.service-card::after,
.contact-card::after,
.sidebar-card::after,
.archive-item::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  opacity: 0.9;
}

.eyebrow {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0;
  color: #5d635c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: none;
}

.lead {
  max-width: 42rem;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8f4521);
  box-shadow: 0 12px 28px rgba(184, 97, 55, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 37, 44, 0.12);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-stats,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.stat,
.fact {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(31, 37, 44, 0.08);
}

.stat strong,
.fact strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(11, 106, 103, 0.18), transparent 33%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(247, 241, 232, 0.96));
}

.hero-figure {
  width: min(100%, 342px);
  margin-inline: auto;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  border: 1px solid rgba(31, 37, 44, 0.09);
  background: #fff;
}

.hero-figure img {
  width: 100%;
  height: auto;
}

.hero-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(11, 106, 103, 0.08);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.hero-note-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-2), #0f4f4d);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-heading p {
  max-width: 42rem;
  margin: 0;
}

.service-grid,
.contact-grid,
.overview-grid,
.detail-grid {
  display: grid;
  gap: 0.7rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.detail-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.service-card,
.contact-card,
.sidebar-card,
.archive-item {
  padding: 1.25rem;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(216, 169, 88, 0.18);
  color: #7d5a1b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-card h3,
.contact-card h3,
.sidebar-card h3,
.archive-item h3 {
  margin-bottom: 0.45rem;
}

.service-card a,
.contact-card a,
.prose a,
.archive-item a,
.cta-band a {
  color: var(--accent-2);
}

.service-card p:last-child,
.contact-card p:last-child,
.sidebar-card p:last-child,
.archive-item p:last-child {
  margin-bottom: 0;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 242, 233, 0.94)),
    rgba(255, 255, 255, 0.9);
}

.panel ul,
.sidebar-card ul,
.archive-list {
  padding-left: 1.15rem;
  margin: 1rem 0 0;
}

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

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.prose p {
  margin: 0 0 1rem;
}

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

.page-hero-card {
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(216, 169, 88, 0.18), transparent 33%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(247, 241, 232, 0.96));
}

.page-hero-copy {
  max-width: 48rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meta-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 37, 44, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: start;
}

.archive-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(184, 97, 55, 0.16), rgba(216, 169, 88, 0.22));
  color: #7a3e21;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card p {
  margin: 0 0 0.7rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(184, 97, 55, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(31, 37, 44, 0.96), rgba(16, 22, 28, 0.96));
}

.cta-band h2,
.cta-band p {
  color: #fffdf8;
}

.cta-band p {
  max-width: 42rem;
  margin: 0;
  opacity: 0.85;
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fffdf8;
}

.cta-band .button {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(235, 224, 208, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(16, 22, 28, 0.22);
}

.cta-band .button:hover {
  background: linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(242, 232, 217, 0.98));
}

.site-footer {
  padding-top: 0.4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 28px 28px 0 0;
  background: rgba(24, 29, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
}

.footer-brand strong,
.footer-brand span,
.footer-links a,
.footer-note {
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand strong {
  display: block;
}

.footer-brand span {
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-note {
  margin-top: 0.6rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .overview-grid,
  .detail-grid,
  .footer-inner,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding-top: 0.8rem;
  }

  .header-inner {
    border-radius: 28px;
    align-items: flex-start;
  }

  .hero,
  .page-hero,
  .page-section,
  .site-footer {
    padding: 1.4rem 0;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .service-grid,
  .hero-stats,
  .quick-facts {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding-inline: 0.85rem;
  }
}
