:root {
  color-scheme: light;
  --bg: #f8fbfa;
  --surface: #ffffff;
  --ink: #082d3a;
  --ink-soft: #284956;
  --muted: #60727a;
  --line: #cfdbd8;
  --accent: #0f6b68;
  --accent-soft: #dbeee7;
  --warm: #f5c972;
  --shadow: 0 20px 50px rgba(8, 45, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 58%, #f3f8f6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.hero,
.purpose,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid rgba(207, 219, 216, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(15, 107, 104, 0.28);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(8, 45, 58, 0.08);
}

.hero {
  position: relative;
  min-height: clamp(570px, calc(100vh - 150px), 690px);
  overflow: hidden;
  padding: clamp(66px, 9vw, 104px) 0 68px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw) 0 auto;
  width: min(960px, 72vw);
  background: url("assets/ministry-harbor-background.jpg") right center / contain no-repeat;
  opacity: 0.88;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 34%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.34) 66%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #fbfdfc 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 1000px;
  font-size: clamp(4.4rem, 8vw, 6.9rem);
  line-height: 0.96;
}

.lead {
  max-width: 620px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.38;
}

.planning-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 32px;
  color: #084943;
  font-size: 1.1rem;
  font-weight: 750;
}

.planning-note svg {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 12px;
  border-radius: 50%;
  background: #dcebd9;
  color: #0f655c;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1px solid rgba(8, 45, 58, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #0c3e3a;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(8, 45, 58, 0.07);
}

.contact-placeholder svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 107, 104, 0.3);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(8, 45, 58, 0.12);
}

.home-link:focus-visible {
  outline: 3px solid rgba(245, 201, 114, 0.75);
  outline-offset: 3px;
}

.not-found {
  min-height: 520px;
}

.purpose {
  display: grid;
  grid-template-columns: 128px minmax(0, 620px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
}

.purpose-icon {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: #dcebd9;
  color: #0f655c;
}

.purpose-icon svg {
  width: 70px;
  height: 70px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.purpose-copy p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
}

.site-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .purpose,
  .site-footer {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 72px;
  }

  h1 {
    max-width: 11ch;
  }

  .lead {
    max-width: 24rem;
  }

  .purpose {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 42px 0 52px;
  }

  .purpose-icon {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: clamp(270px, 48vw, 330px) 0 54px;
  }

  .hero::before {
    inset: 0 calc(50% - 50vw) auto;
    width: 100vw;
    height: clamp(230px, 58vw, 320px);
    background-size: contain;
    background-position: right top;
    opacity: 0.86;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff clamp(245px, 50vw, 320px), #ffffff 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18));
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .purpose,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.5rem);
  }

  .lead {
    font-size: 1.16rem;
  }

  .contact-placeholder {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
