@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --shirt: #1a3348;
  --light: #f4e4c4;
  --sun: #e2a23a;
  --ink: #14202b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--light);
  font-family: Geist, "Avenir Next", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: hidden;
  background-color: var(--shirt);
  background-image:
    linear-gradient(105deg, rgba(26, 51, 72, 0.94) 0%, rgba(26, 51, 72, 0.86) 38%, rgba(26, 51, 72, 0.62) 68%, rgba(26, 51, 72, 0.5) 100%),
    url("photos/deep.jpg");
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 4;
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--sun);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.6rem; z-index: 5; }

.door {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding: 0.95rem 4vw 0.8rem;
  background: rgba(26, 51, 72, 0.55);
  border-bottom: 1px solid rgba(244, 228, 196, 0.28);
  position: relative;
  z-index: 2;
}

.mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.cluster a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.72;
}

.cluster a[aria-current="page"] {
  opacity: 1;
  box-shadow: inset 0 -0.35em 0 var(--sun);
}

.meet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  padding: 2.2rem 4vw 3rem;
  position: relative;
  z-index: 1;
}

.words { flex: 1.2 1 22rem; min-width: 0; max-width: 40rem; }

.star {
  flex: 1 1 18rem;
  margin: 0;
  min-width: 0;
  max-width: 28rem;
}

.star img {
  width: 100%;
  box-shadow: 14px 18px 0 rgba(226, 162, 58, 0.28);
}

h1, h2, .price {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 0;
  color: var(--light);
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  max-width: 12ch;
}

.quiet {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  opacity: 0.6;
}

.lede {
  max-width: 38rem;
  margin: 1rem 0 0;
  opacity: 0.72;
}

.go {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--sun);
  color: var(--ink);
  padding: 0.55rem 0.85rem 0.5rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0.6;
}

.page {
  padding: 2rem 4vw 4rem;
  max-width: 72rem;
  position: relative;
  z-index: 1;
}

.with-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  align-items: flex-start;
}

.with-photo figure {
  flex: 1 1 16rem;
  margin: 0;
  max-width: 26rem;
}

.with-photo img {
  width: 100%;
  box-shadow: 12px 14px 0 rgba(226, 162, 58, 0.28);
}

.story { flex: 3 1 26rem; min-width: 0; }

.story p, .fine, .ask p { max-width: 40rem; }

.story p, .fine { opacity: 0.78; }

.offer { margin: 2.2rem 0 0; max-width: 40rem; }

.offer h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

.price {
  font-size: clamp(3rem, 7vw, 4.8rem);
  color: var(--sun);
  margin: 0.35rem 0;
}

.ask {
  border-top: 1px solid rgba(244, 228, 196, 0.28);
  padding: 0.85rem 0 0.15rem;
}

.ask summary {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1.15;
}

.ask p { margin: 0.45rem 0 1rem; opacity: 0.75; }

.ask[open] summary { color: var(--sun); }

form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin-top: 1.2rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
}

input, select, textarea {
  font: 400 1.02rem Geist, sans-serif;
  color: var(--ink);
  background: var(--light);
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.45rem;
  width: 100%;
  opacity: 1;
}

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

button {
  justify-self: start;
  font: 500 1rem Geist, sans-serif;
  background: var(--sun);
  color: var(--ink);
  border: 0;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.note {
  max-width: 36rem;
  margin-top: 1rem;
  background: rgba(244, 228, 196, 0.12);
  padding: 0.8rem 0.9rem;
}

.note:empty { display: none; }

.foot {
  padding: 0 4vw 2rem;
  font-size: 0.95rem;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  body {
    background-image:
      linear-gradient(180deg, rgba(26, 51, 72, 0.82) 0%, rgba(26, 51, 72, 0.7) 100%),
      url("photos/deep.jpg");
    background-position: 18% center;
  }
  .door { display: block; }
  .cluster { margin-top: 0.45rem; }
  .meet { display: block; padding: 1.4rem 1.25rem 2rem; overflow: hidden; }
  .words, .star, .story, .page { width: auto; max-width: 100%; }
  h1, .lede, .quiet, .facts { max-width: 20rem; overflow-wrap: anywhere; }
  h1 { font-size: 2.35rem; }
  .star { max-width: 100%; }
}

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