@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --wash: #f4f0e8;
  --paper: #fbf8f3;
  --sand: #e4d5be;
  --ink: #1c1916;
  --muted: #5c564e;
  --blue: #1a5fa8;
  --blue-dark: #134a85;
  --line: #d9cfc0;
  --danger: #8b2e2e;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --narrow: 36rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html[lang="en"] .t-fr,
html[lang="fr"] .t-en,
html[lang="en"] .lang-to-en,
html[lang="fr"] .lang-to-fr {
  display: none;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--blue-dark); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus {
  transform: translateY(0.75rem);
  color: var(--paper);
}

.site-head {
  background: var(--wash);
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
}

.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark:hover { color: var(--ink); }

.lang a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover { color: var(--ink); }

.hero,
.plan,
.courtyard {
  margin: 0;
  position: relative;
}

.hero img,
.plan img,
.courtyard img {
  width: 100%;
  background: var(--sand);
}

.hero figcaption,
.plan figcaption,
.courtyard figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 2.25rem 1.25rem 0.85rem;
  color: #f7f3ec;
  background: linear-gradient(to top, rgba(28, 25, 22, 0.55), rgba(28, 25, 22, 0));
  width: 100%;
}

.plan,
.courtyard {
  background: var(--wash);
}

.plan img,
.courtyard img {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

.plan figcaption,
.courtyard figcaption {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0.7rem auto 0;
}

.intro {
  padding: 2.75rem 0 2.5rem;
}

.intro-copy { max-width: 38rem; }

.intro h1 {
  font-size: clamp(2.05rem, 6vw, 3.4rem);
  margin-bottom: 1rem;
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
}

.plan-section {
  padding: 0 0 0.5rem;
}

.zones {
  padding: 2.5rem 0 3rem;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.25rem;
}

.zones h2 {
  font-size: 1.75rem;
  margin-bottom: 0.45rem;
}

.zones p {
  margin: 0;
  color: var(--ink);
  max-width: 36rem;
}

.courtyard-section {
  padding: 0 0 1rem;
}

.waitlist {
  padding: 2.5rem 0 3.5rem;
}

.waitlist-card {
  max-width: var(--narrow);
  margin-inline: auto;
}

.waitlist h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  gap: 1.05rem;
}

.field {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231C1916' stroke-width='1.5' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

textarea {
  resize: vertical;
  min-height: 6.5rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions { margin: 0.4rem 0 0; }

button[type="submit"] {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 0.9rem 1.25rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--blue-dark);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin: 0;
  color: var(--danger);
  font-size: 0.95rem;
}

.form-success {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
}

.site-foot {
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--line);
}

.site-foot p {
  margin: 0 0 0.85rem;
}

.site-foot .privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38rem;
  line-height: 1.5;
}

.site-foot a {
  color: var(--ink);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.page-404 {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 3rem 0;
}

.page-404 h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

@media (min-width: 700px) {
  .wrap { width: min(var(--wrap), calc(100% - 4rem)); }

  .intro { padding: 3.5rem 0 3rem; }

  .hero figcaption,
  .plan figcaption,
  .courtyard figcaption {
    padding-left: 0;
  }

  .hero figcaption {
    padding: 3rem max(2rem, calc((100% - var(--wrap)) / 2)) 1rem;
  }

  .zone-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2.5rem;
  }

  .plan img,
  .courtyard img {
    width: min(var(--wrap), calc(100% - 4rem));
  }

  .plan figcaption,
  .courtyard figcaption {
    width: min(var(--wrap), calc(100% - 4rem));
  }
}

@media (min-width: 1024px) {
  .intro { padding: 4.25rem 0 3.25rem; }

  .zones { padding: 3rem 0 3.75rem; }

  .waitlist { padding: 3rem 0 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
