:root {
  --cream: #fbf1e6;
  --cream-light: #fff8ee;
  --navy: #12304a;
  --navy-dark: #0d2a42;
  --olive: #60644a;
  --olive-dark: #484b35;
  --gold: #efd783;
  --muted: #5f675c;
  --panel: #fbf1e6;
  --sand: #f3dfc7;
  --intro-gap: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
}

a {
  color: inherit;
}

/* Header */

.page-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 4.8%;
  background: var(--cream);
  border-bottom: 1px solid rgba(18, 48, 74, 0.08);
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(280px, 27vw, 490px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.15vw, 22px);
  flex-wrap: nowrap;
}

.site-nav a,
.hero-actions a,
.footer-links a {
  text-decoration: none;
}

.nav-link {
  position: relative;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  background: var(--olive);
}

.contact-button {
  background: var(--olive);
  color: #fffaf1;
  padding: 13px 20px;
  border-radius: 8px;
}

.contact-button.active::after {
  display: none;
}

/* Homepage */

.home-screen {
  position: relative;
  min-height: clamp(620px, calc(100vh - 250px), 820px);
  overflow: hidden;
  background: var(--cream);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% top;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    rgba(251, 241, 230, 0.98) 36%,
    rgba(251, 241, 230, 0.84) 60%,
    rgba(251, 241, 230, 0.38) 84%,
    rgba(251, 241, 230, 0) 100%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(54%, 800px);
  padding: clamp(28px, 4.4vh, 52px) 0 34px 4.8%;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  line-height: 1.3;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.05vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: var(--navy);
}

.small-rule {
  width: 58px;
  height: 4px;
  margin: 20px 0 0;
  background: var(--olive);
}

.hero-copy p:not(.hero-kicker) {
  max-width: 680px;
  margin: var(--intro-gap) 0 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
}

.hero-copy .hero-supporting {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--olive);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.primary {
  background: var(--olive);
  color: #fffaf1;
}

.secondary {
  background: rgba(255, 250, 241, 0.72);
  color: var(--navy);
}

.text-link {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 5px;
  white-space: nowrap;
  margin-left: 4px;
}

/* Bottom feature band */

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy-dark);
  color: #fffaf1;
  padding: 14px 4.8%;
  gap: 0;
  min-height: 132px;
  height: 132px;
  position: relative;
  z-index: 5;
}

.feature-card {
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(255, 250, 241, 0.28);
  background: transparent;
  color: inherit;
  font: inherit;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 0 18px;
  cursor: pointer;
}

.feature-card:first-child {
  padding-left: 0;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.feature-text strong {
  display: block;
  margin-bottom: 5px;
  color: #fffaf1;
  font-size: 0.9rem;
  line-height: 1.15;
}

.feature-text small {
  display: block;
  color: rgba(255, 250, 241, 0.82);
  font-size: 0.78rem;
  line-height: 1.26;
}

/* Side panels */

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 42, 66, 0.42);
  z-index: 50;
}

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(540px, 92vw);
  height: 100vh;
  background: var(--panel);
  z-index: 60;
  padding: 44px;
  box-shadow: -18px 0 50px rgba(13, 42, 66, 0.24);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.info-panel.open {
  transform: translateX(0);
}

.close-panel {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.panel-kicker,
.section-label {
  margin: 0 0 14px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 800;
}

.panel-kicker {
  margin-top: 38px;
}

.info-panel h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.info-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Desktop homepage stays in one screen */

@media (min-width: 1000px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 112px minmax(0, 1fr) 132px;
    overflow: hidden;
  }

  .home-screen {
    min-height: 0;
    height: 100%;
  }
}

@media (min-width: 1000px) and (max-height: 760px) {
  :root {
    --intro-gap: 14px;
  }

  .page-shell {
    grid-template-rows: 100px minmax(0, 1fr) 124px;
  }

  .site-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-logo {
    width: clamp(265px, 25vw, 450px);
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .contact-button {
    padding: 11px 16px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 3.65vw, 4.65rem);
  }

  .small-rule {
    margin-top: 16px;
  }

  .hero-copy p:not(.hero-kicker) {
    font-size: 0.88rem;
    line-height: 1.34;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .button {
    min-height: 40px;
    padding: 9px 17px;
    font-size: 0.87rem;
  }

  .feature-band {
    min-height: 124px;
    height: 124px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .feature-card {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.55rem;
  }

  .feature-text strong {
    font-size: 0.84rem;
  }

  .feature-text small {
    font-size: 0.74rem;
    line-height: 1.22;
  }
}

/* Inner pages */

body:has(.inner-shell) {
  height: auto;
  overflow: auto;
  background: var(--cream);
}

.inner-shell {
  min-height: 100vh;
  height: auto;
  display: block;
  overflow: visible;
  background: var(--cream);
}

.inner-page {
  padding: 72px 4.8% 90px;
  background:
    radial-gradient(circle at 86% 12%, rgba(239, 215, 131, 0.22), transparent 24%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
}

.page-hero {
  max-width: 1040px;
  margin: 0 auto 54px;
  text-align: left;
}

.page-kicker {
  margin: 0 0 18px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-kerning: normal;
}

.page-hero p {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
  font-weight: 600;
}

.content-grid,
.content-stack,
.story-section,
.wide-callout,
.contact-list {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.two-column-grid {
  grid-template-columns: repeat(2, 1fr);
}

.content-stack {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.content-card,
.wide-card,
.wide-callout,
.contact-card,
.quote-card {
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(18, 48, 74, 0.06);
}

.wide-card {
  padding: 40px;
}

.content-card h2,
.wide-card h2,
.wide-callout h2,
.contact-card h2,
.story-copy h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.wide-callout h2,
.story-copy h2 {
  font-size: clamp(2.3rem, 3.2vw, 3.7rem);
}

.content-card p,
.wide-card p,
.wide-callout p,
.contact-card p,
.story-copy p,
.soft-note p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.content-card p:last-child,
.wide-card p:last-child,
.wide-callout p:last-child,
.contact-card p:last-child,
.story-copy p:last-child,
.soft-note p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

li + li {
  margin-top: 6px;
}

.split-card,
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.soft-note,
.emphasis-card {
  background: rgba(239, 215, 131, 0.22);
  border-left: 4px solid var(--olive);
  border-radius: 16px;
  padding: 24px;
}

.soft-note strong,
.quote-card strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.wide-callout {
  margin-top: 32px;
  background: var(--navy-dark);
  color: #fffaf1;
}

.wide-callout h2,
.wide-callout p,
.wide-callout .section-label {
  color: #fffaf1;
}

.wide-callout p {
  max-width: 860px;
  color: rgba(255, 250, 241, 0.86);
}

.intro-callout {
  margin-top: 0;
  margin-bottom: 30px;
}

.boundary-callout {
  background: var(--olive-dark);
}

.story-section {
  margin-top: 20px;
  margin-bottom: 30px;
}

.story-copy {
  padding: 10px 0;
}

.quote-card p {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.38;
  margin: 0 0 16px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-underline-offset: 5px;
}

.contact-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.page-button {
  margin-top: 22px;
}

.site-footer {
  background: var(--navy-dark);
  color: #fffaf1;
  padding: 30px 4.8%;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 241, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
  min-width: 260px;
}

.footer-links a {
  color: #fffaf1;
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* Text alignment and legibility refinements */

.inner-page p,
.inner-page li,
.info-panel p,
.hero-copy p:not(.hero-kicker) {
  text-align: justify;
  text-justify: inter-word;
}

.site-nav,
.site-nav a,
.hero-actions,
.button,
.text-link,
.feature-card,
.feature-text strong,
.feature-text small,
.page-kicker,
.section-label,
.panel-kicker,
.inner-page h1,
.inner-page h2,
.inner-page h3,
.info-panel h2,
.footer-links,
.footer-links a,
.contact-card a,
.contact-card small,
.button-row,
.soft-note strong,
.page-button {
  text-align: left;
}

.wide-callout ul,
.wide-callout li {
  color: rgba(255, 250, 241, 0.93);
}

.wide-callout li {
  font-weight: 700;
  line-height: 1.7;
}

.wide-callout a:not(.button) {
  color: #fffaf1;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.wide-callout .button {
  text-align: center;
}

@media (min-width: 1000px) {
  html:has(.inner-shell),
  body:has(.inner-shell) {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .page-shell.inner-shell {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: visible;
  }

  .inner-page {
    min-height: calc(100vh - 112px);
    overflow: visible;
  }
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-link.active::after {
    bottom: -7px;
  }
}

@media (max-width: 999px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .brand-logo {
    width: min(94vw, 560px);
  }

  .home-screen {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-art {
    position: relative;
    height: 420px;
    order: 2;
  }

  .hero-art::before {
    display: none;
  }

  .hero-copy {
    width: auto;
    padding: 52px 6% 34px;
    order: 1;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero-copy p:not(.hero-kicker) {
    margin-top: 24px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .feature-band {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .feature-card {
    border-right: 0;
    padding: 18px;
  }

  .inner-page {
    padding: 54px 6% 72px;
  }

  .content-grid,
  .two-column-grid,
  .split-card,
  .story-section,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .content-card,
  .wide-card,
  .wide-callout,
  .contact-card,
  .quote-card {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }

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

@media (max-width: 760px) {
  .inner-page p,
  .inner-page li,
  .info-panel p,
  .hero-copy p:not(.hero-kicker) {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link,
  .page-button {
    width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }
}
