:root {
  --ink: #0b1c2c;
  --ink-soft: #163049;
  --mist: #8fa3b5;
  --mist-light: #c5d0da;
  --brass: #c4a35a;
  --brass-deep: #a8863f;
  --paper: #e8e4dc;
  --paper-warm: #f3efe6;
  --white: #f7f5f0;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, #d9e2ea 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 45%, #dfe6ec 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brass-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.1rem;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn:hover {
  background: var(--brass-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 28, 44, 0.22);
}

.section {
  padding: var(--space-xl) var(--space-md);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 42ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softScale {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 44, 0.78) 0%, rgba(11, 28, 44, 0.35) 55%, rgba(11, 28, 44, 0.2) 100%),
    linear-gradient(180deg, transparent 30%, rgba(11, 28, 44, 0.75) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 36rem;
  animation: fadeUp 1s var(--ease) both;
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero__name {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  animation: softScale 1.1s var(--ease) both;
}

.hero__hook {
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--mist-light);
  max-width: 28ch;
}

/* Walks */
.walks__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: var(--space-lg);
}

.walk-card__media {
  min-height: clamp(11rem, 22vw, 15rem);
  background-size: cover;
  background-position: center;
}

.walk-card__copy {
  padding-top: 0.9rem;
}

.walk-card__place {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.walk-card h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.4rem;
}

.walk-card__copy p:last-child {
  color: var(--ink-soft);
  max-width: 32ch;
  font-size: 0.98rem;
}

/* Form */
.book {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--paper);
}

.book .section-label {
  color: var(--brass);
}

.book .section-title {
  color: var(--white);
}

.book .section-lead {
  color: var(--mist-light);
}

.book-form {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  max-width: 46rem;
}

.book-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--mist-light);
}

.book-form label.full {
  grid-column: 1 / -1;
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus {
  outline: 1px solid var(--brass);
  border-color: var(--brass);
}

.book-form select option {
  color: var(--ink);
}

.book-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.book-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  margin-top: 1.25rem;
  max-width: 40ch;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--brass);
  background: rgba(255, 255, 255, 0.06);
  color: var(--mist-light);
}

.form-success.is-visible {
  display: block;
}

.book-form.is-hidden {
  display: none;
}

/* Footer */
.site-footer {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: #07131e;
  color: var(--mist-light);
}

.site-footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.site-footer__legal,
.site-footer__address,
.site-footer__contact {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  max-width: 38ch;
}

.site-footer a {
  color: var(--mist-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.footer-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--mist-light);
  font: inherit;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--brass);
}

.site-footer__copy {
  width: min(100%, var(--max));
  margin: var(--space-sm) auto 0;
  font-size: 0.85rem;
  color: var(--mist);
}

/* Modals */
body.modal-open {
  overflow: hidden;
}

.modal {
  width: min(92vw, 42rem);
  max-height: min(88svh, 48rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(11, 28, 44, 0.72);
  backdrop-filter: blur(3px);
}

.modal__panel {
  display: flex;
  flex-direction: column;
  max-height: min(88svh, 48rem);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(196, 163, 90, 0.12), transparent 45%),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  box-shadow: 0 24px 60px rgba(11, 28, 44, 0.35);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0.85rem;
  border-bottom: 1px solid rgba(11, 28, 44, 0.08);
}

.modal__header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.legal-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.legal-updated {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.modal__close {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(11, 28, 44, 0.12);
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--ink);
  color: var(--white);
}

.modal__body {
  overflow: auto;
  padding: 1.1rem 1.35rem 1.5rem;
}

.modal__body h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.modal__body p,
.modal__body li {
  color: var(--ink-soft);
}

.modal__body ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal-company {
  margin: 0.75rem 0 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(11, 28, 44, 0.06), rgba(196, 163, 90, 0.1));
}

.legal-company p {
  margin: 0 0 0.35rem;
}

@media (max-width: 900px) {
  .walks__grid,
  .book-form {
    grid-template-columns: 1fr;
  }

  .hero {
    place-items: end center;
  }

  .hero__content {
    text-align: center;
    max-width: 100%;
  }

  .hero__hook {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .book-form .btn {
    width: 100%;
  }
}
