@font-face {
  font-family: Cormorant;
  src: url("assets/Cormorant-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --teal: #101f23;
  --cream: #f7eddb;
  --muted: #c5cdca;
  --amber: #eac595;
  --line: #344448;
  --gutter: clamp(1.5rem, 6vw, 5rem);
  --section-space: clamp(3rem, 7vw, 6rem);
  font: 100%/1.6 system-ui, sans-serif;
  color: var(--cream);
  background: var(--teal);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
p + p { margin-top: .85em; }
address { font-style: normal; }
a { color: var(--amber); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
::selection { color: var(--teal); background: var(--amber); }

h1, h2, h3 {
  font-family: Cormorant, Georgia, serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(3.3rem, 10vw, 6rem); }
h2 { font-size: clamp(2.65rem, 5vw, 4rem); }
h3 { font-size: clamp(2.2rem, 4vw, 3.25rem); }

.layout, .reading-width {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  position: relative;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0 0 auto;
  height: min(76vw, 24rem);
  z-index: -1;
  background: url("assets/dandelion.webp") center 44% / cover no-repeat;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--teal));
}

.film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.intro {
  padding-top: min(67vw, 21rem);
  padding-bottom: 2.5rem;
}

.lede {
  margin-top: .35rem;
  font: 400 clamp(1.65rem, 3.3vw, 2.5rem)/1.15 Cormorant, Georgia, serif;
}

.hero-copy {
  max-width: 35ch;
  margin-top: 1rem;
  color: var(--muted);
  text-wrap: pretty;
}

.availability {
  margin-top: 1.5rem;
  color: var(--amber);
  font-size: .875rem;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section p { color: var(--muted); }
.section strong { color: var(--cream); }
.moments h2 { margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }

.moment-grid {
  display: grid;
  gap: 2.75rem clamp(2rem, 5vw, 4rem);
}

.moment-grid img, .privacy-note img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
}

.dandelion-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .375rem;
}

.dandelion-stills img { aspect-ratio: 1; }
.fireworks-still { aspect-ratio: 2.04; }

.moment-grid h3 { margin-block: 1rem .45rem; }
.moment-grid p { max-width: 49ch; }
.moments .more { margin-top: 2.25rem; color: var(--amber); }

.text-section, .privacy-note {
  display: grid;
  gap: 1rem;
}

.text-section p { max-width: 58ch; }
.privacy-note img { max-width: 12rem; }

.footer, .document-nav {
  border-block-start: 1px solid var(--line);
  font-size: .875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 2rem;
  padding-block: .75rem 1.25rem;
}

.footer nav, .document-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
}

.footer nav a, .document-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer address { color: var(--muted); flex-basis: 100%; }

.reading-width { width: min(100%, 52rem); }
.document-nav { border-block: 0 1px solid var(--line); }
.document-nav nav { justify-content: space-between; }
.document-footer { padding-block: .5rem; }

.document { padding-block: clamp(2.5rem, 7vw, 5rem); }
.document h1 { font-size: clamp(3rem, 8vw, 4.75rem); margin-bottom: .6rem; }

.document h2:not(.translation-title), .document h3 {
  margin-block: 2rem .55rem;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
}

.document p, .document li, .document address { color: var(--muted); }
.document strong { color: var(--cream); }
.document ul { padding-inline-start: 1.25rem; }
.document li + li { margin-top: .65rem; }
.document address { margin-top: .5rem; }
.document code { overflow-wrap: anywhere; }

.document .effective, .document .note { font-size: .875rem; }
.document .note { margin-top: 1.25rem; }
.translation { margin-top: var(--section-space); padding-top: var(--section-space); border-top: 1px solid var(--line); }
.translation-title { margin-bottom: .65rem; }

@media (min-width: 48rem) {
  .scene {
    inset: 0 0 0 33%;
    height: auto;
  }

  .scene::after {
    background:
      linear-gradient(to right, var(--teal), transparent 40%),
      linear-gradient(to top, var(--teal), transparent 20%);
  }

  .intro { padding-block: clamp(7rem, 13vw, 12rem) clamp(5.5rem, 11vw, 9rem); }
  .intro h1 { max-width: 8ch; }
  .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .text-section { grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr); }
}

@media (min-width: 64rem) {
  .privacy-note { grid-template-columns: 1fr minmax(8rem, 12rem); gap: 2rem; }
  .footer address { flex-basis: auto; }
  .footer-inner { padding-block: 1.4rem; }
}

.site-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 18px clamp(22px, 6vw, 92px) 0;
}
.site-bar a {
  color: var(--cream);
  text-decoration: none;
  letter-spacing: .02em;
}
.site-bar .home-link { font: 400 1.05rem/1 Cormorant, Georgia, serif; }
.site-bar nav { display: flex; gap: 1rem; font-size: .9rem; color: var(--muted); }
.site-bar nav a { color: var(--muted); }
.site-bar nav a:hover, .site-bar a:hover { color: var(--amber); }
