@font-face {
  font-family: "Nephilm";
  src: url("/assets/Nephilm.otf") format("opentype");
  font-display: swap;
}

:root {
  --background: #f3f6f2;
  --surface: #e7eeeb;
  --muted: #d6e1df;
  --text: #17222b;
  --subtle: #566a73;
  --accent: #8d8a78;
  --accent-dark: #263f51;
  --border: #bdc9c5;
  --font-main: "Nephilm", georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  padding: 6px 6vw 2px;
  background: var(--accent-dark);
  color: #ffffff;
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: min(200px, 40vw);
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: translateY(6px);
}

.nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-main);
  font-size: 1.15rem;
  text-transform: lowercase;
}

.nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  min-height: 68vh;
  background: var(--accent-dark);
  color: #ffffff;
}

.hero-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vw 6vw 5vw 0;
}

.hero-image img {
  width: min(100%, 420px);
  max-height: 560px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-image .hero-illustration {
  width: min(1080px, 78vw);
  max-height: none;
  max-width: none;
  flex-shrink: 0;
  border-radius: 0;
  filter: invert(1);
  object-fit: contain;
  transform: translateX(-15%);
}

.hero-content {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding: 5vw 8vw 8vw;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--border);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 400;
}

.hero-content p,
.section-intro,
.cta p {
  max-width: 620px;
  color: var(--subtle);
  font-size: 1.12rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.76);
}

.hero .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-dark);
}

.hero .button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button {
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--accent-dark);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: lowercase;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.section {
  padding: 96px 6vw;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.intro {
  background: var(--muted);
  text-align: center;
}

.large-text {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.quote-name {
  color: var(--accent-dark);
  font-family: var(--font-main);
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.split-content {
  max-width: 680px;
}

.split-content p {
  color: var(--subtle);
}

.split-image img {
  width: min(100%, 360px);
  max-height: 480px;
  border-radius: 2px;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: lowercase;
}

.muted {
  background: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

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

.focus-grid article {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  background: rgba(243, 246, 242, 0.72);
}

.focus-grid p {
  color: var(--subtle);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cta {
  text-align: center;
}

.cta .button {
  margin-top: 14px;
}

.cta p {
  margin-right: auto;
  margin-left: auto;
}

.practical {
  background: var(--surface);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 64px;
}

.two-column p {
  color: var(--subtle);
}

.page-hero {
  padding: 108px 6vw 96px;
  background: var(--accent-dark);
  color: #ffffff;
}

.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.18rem;
}

.page-section {
  background: var(--background);
}

.content-page {
  max-width: 820px;
}

.content-page p,
.content-page li {
  color: var(--subtle);
  font-size: 1.08rem;
}

.content-page h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.content-page a,
.contact-card a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-page ul {
  margin: 0 0 28px;
  padding-left: 24px;
}

.info-panel,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  background: var(--surface);
}

.info-panel {
  margin-bottom: 40px;
}

.info-panel h2,
.contact-card h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.fee {
  margin-bottom: 0;
  color: var(--accent-dark) !important;
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  line-height: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 64px;
  align-items: start;
}

.contact-card {
  position: sticky;
  top: 118px;
}

.contact-card p {
  color: var(--subtle);
}

.contact-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.1rem;
}

.contact-form {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.form-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.form-heading p,
.form-note {
  color: var(--subtle);
}

.form-fields {
  display: grid;
  gap: 20px;
  margin: 28px 0 18px;
}

.form-fields label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
}

.form-fields input,
.form-fields textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.form-fields textarea {
  min-height: 150px;
  resize: vertical;
}

.form-fields input:focus,
.form-fields textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.optional {
  color: var(--subtle);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
}

.form-note {
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 56px 6vw 36px;
  background: var(--accent-dark);
  color: #ffffff;
}

.footer-logo {
  width: min(430px, 76vw);
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.site-footer p,
.footer-nav {
  color: rgba(255, 255, 255, 0.86);
}

.footer-nav {
  display: grid;
  gap: 10px;
  justify-items: end;
  font-family: var(--font-main);
  text-transform: lowercase;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  font-family: var(--font-main);
  font-size: 0.9rem;
}

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

  .nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero,
  .split,
  .split.reverse,
  .two-column,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: 2;
    padding: 0 6vw 56px;
  }

  .hero-content {
    padding: 40px 6vw 64px;
  }

  .hero-image img {
    width: min(100%, 320px);
    max-height: 380px;
    border-radius: 16px 16px 0 0;
  }

  .hero-image .hero-illustration {
    width: min(100%, 320px);
    border-radius: 0;
    max-height: 380px;
    transform: none;
  }

  .split-image img {
    width: min(100%, 320px);
    max-height: 420px;
  }

  .section {
    padding: 72px 6vw;
  }

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

  .page-hero {
    padding: 72px 6vw;
  }

  .contact-card {
    position: static;
  }

  .footer-nav {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .focus-grid,
  .focus-grid.compact {
    grid-template-columns: 1fr;
  }

  .nav {
    font-size: 1.05rem;
  }

  .info-panel,
  .contact-card,
  .contact-form {
    padding: 22px;
  }
}
