:root {
  color-scheme: dark;
  --pine: #10271e;
  --paper: #f2f3e8;
  --forest: #24513d;
  --sage: #bdd9ab;
  --gold: #c6aa72;
  --serif: Georgia, 'Times New Roman', serif;
  --gutter: clamp(1.25rem, 6vw, 7rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pine); color: var(--paper); font: 1.0625rem/1.65 system-ui, sans-serif; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2 { margin: 0; }
p + p { margin-top: 1.2rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid #d4af62; outline-offset: 5px; }
h1, h2 { font: 400 clamp(2.5rem, 6vw, 6rem)/.96 var(--serif); letter-spacing: -.06em; }
.masthead { padding: .95rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #405b4a; }
.wordmark { font: italic 1.55rem var(--serif); text-decoration: none; }
.masthead nav { display: flex; gap: clamp(.85rem, 3vw, 2.5rem); font-size: .875rem; }
.masthead nav a, footer a { text-decoration: none; }
.masthead a:hover, footer a:hover { text-decoration: underline; }
.cover {
  min-height: min(53rem, 88svh);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter);
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 30%;
  background: var(--forest);
  z-index: -1;
}
.cover-copy { z-index: 1; padding-right: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .875rem; color: var(--sage); font-weight: 700; margin-bottom: 1.2rem; }
h1 { font-size: clamp(4rem, 9.9vw, 10rem); line-height: .88; }
h1 em { color: var(--sage); font-weight: 400; }
.cover-message { color: #d9e4d4; max-width: 30ch; margin: 1.6rem 0; }
.button { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; padding: .75rem 1.2rem; font-weight: 650; }
.button:hover { background: #30674e; }
.cover-photo { border: 1px solid #9ca88c; padding: .45rem; background: #10271e; }
.cover-photo img { height: clamp(28rem, 51vw, 43rem); object-fit: cover; object-position: 50% 54%; }
.letter { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: clamp(4rem, 10vw, 9rem) var(--gutter); background: var(--paper); color: var(--pine); }
.letter h2 { align-self: start; border-top: 1px solid #a3b59e; padding-top: 1rem; color: #24513d; font-style: italic; }
.letter-body { max-width: 41ch; font: clamp(1.25rem, 2.4vw, 1.85rem)/1.45 var(--serif); }
.album { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }
.album header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #405b4a; }
.album header p { margin-top: .85rem; color: #d5e1d3; }
.photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.45rem, 1.2vw, 1rem); }
.photos a { overflow: hidden; background: #243d30; }
.photos img { aspect-ratio: 4/5; object-fit: cover; transition: transform .28s ease; }
.photos a:hover img { transform: scale(1.07); }
.future { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--forest); }
.future-photo { min-height: 25rem; position: relative; }
.future-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 65% 50%; }
.future-copy { padding: clamp(2.5rem, 7vw, 7rem) var(--gutter) clamp(3rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.future-copy h2 { margin-bottom: 1.5rem; }
.future-copy p { max-width: 46ch; }
.signature { font: italic clamp(1.45rem, 3.2vw, 2.5rem)/1.2 var(--serif); }
footer { padding: 1.15rem var(--gutter); text-align: right; font-size: .875rem; }
dialog { width: min(95vw, 40rem); max-height: 94dvh; padding: 1rem; border: 1px solid #9ca88c; background: var(--pine); color: var(--paper); text-align: center; }
dialog::backdrop { background: #081910eb; }
dialog img { height: min(55dvh, 36rem); object-fit: contain; }
dialog figcaption { padding: .8rem 0; }
dialog button { border: 1px solid #9ca88c; background: var(--pine); color: var(--paper); padding: .55rem .85rem; cursor: pointer; font: inherit; }
dialog button:hover { background: var(--forest); }
dialog .close { display: block; margin: 0 0 .5rem auto; padding: 0; width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
.controls { display: flex; justify-content: center; gap: .65rem; }
@media (max-width: 760px) {
  .cover, .letter, .future { grid-template-columns: 1fr; }
  .cover { gap: 1.8rem; min-height: auto; padding-bottom: 1.3rem; }
  .cover::before { inset: auto 0 0; width: 100%; height: 30%; }
  .cover-photo img { height: min(108vw, 34rem); }
  .future-photo { min-height: min(75vw, 26rem); }
  .future-copy { padding-inline: var(--gutter); }
  .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photos img { transition: none; }
}

.cover { background: radial-gradient(ellipse at 46% 15%, #284637 0%, transparent 55%); }
.cover::before { background: linear-gradient(155deg, #4b7457 0%, #2b503c 60%, #1a382b 100%); }
.cover-photo { position: relative; border-radius: 48% 48% .15rem .15rem / 24% 24% .15rem .15rem; overflow: hidden; box-shadow: .8rem 1.2rem 3rem #05130b90; }
.cover-photo figcaption {
  position: absolute; inset: auto .45rem .45rem; padding: 3rem 1.25rem 1.2rem;
  background: linear-gradient(transparent, #08160ef2);
  font: italic clamp(1.05rem, 2.1vw, 1.55rem)/1.25 var(--serif);
}
.moments { display: grid; grid-template-columns: 1fr 1fr; background: #e1e9d8; color: var(--pine); }
.moments figure { position: relative; min-height: 32rem; }
.moments img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 43%; }
.moments-copy { padding: clamp(2.5rem, 6vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem); }
.moments h2 { margin-bottom: 1.8rem; }
.moments details { border-top: 1px solid #a3b59e; }
.moments details:last-child { border-bottom: 1px solid #a3b59e; }
.moments summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: .9rem 0; font: 1.35rem var(--serif); }
.moments summary::-webkit-details-marker { display: none; }
.moments summary::after { content: '+'; color: #24513d; font-family: system-ui, sans-serif; }
.moments details[open] summary::after { content: '−'; }
.moments details p { max-width: 37ch; padding-bottom: 1rem; }
.photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photos a { position: relative; text-decoration: none; }
.photos a:nth-child(1), .photos a:nth-child(6) { grid-column: span 2; }
.photos img { height: 100%; min-height: clamp(15rem, 24vw, 23rem); }
.photos a:nth-child(1) img, .photos a:nth-child(6) img { aspect-ratio: auto; }
.photo-quote {
  position: absolute; inset: auto 0 0; padding: 3.5rem .85rem .9rem;
  background: linear-gradient(transparent, #0a1911 90%);
  font: italic clamp(1rem, 1.55vw, 1.35rem)/1.24 var(--serif);
}
.afterword { padding: clamp(4rem, 8vw, 8rem) var(--gutter); text-align: center; background: var(--paper); color: var(--pine); }
.afterword details { max-width: 38rem; margin: 1.6rem auto 0; padding: clamp(1.4rem, 4vw, 3.5rem); border: 1px solid #a3b59e; background: #e1e9d8; box-shadow: .45rem .45rem 0 #d3dec8; }
.afterword summary { cursor: pointer; list-style: none; }
.afterword summary::-webkit-details-marker { display: none; }
.afterword p { margin-top: 1.2rem; font: clamp(1.2rem, 2.7vw, 1.65rem)/1.45 var(--serif); }
@media (max-width: 760px) {
  .moments { grid-template-columns: 1fr; }
  .moments figure { min-height: min(85vw, 25rem); }
  .moments-copy { padding-inline: var(--gutter); }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos a:nth-child(1) img, .photos a:nth-child(6) img { max-height: 25rem; }
}
@media (max-width: 420px) {
  .masthead { gap: .65rem; }
  .masthead nav { gap: .65rem; }
  .wordmark { font-size: 1.2rem; }
}

.little-things {
  display: grid;
  grid-template-columns: 1fr .83fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  background: var(--paper);
  color: var(--pine);
  padding: clamp(3.2rem, 8vw, 8rem) var(--gutter);
}
.little-things h2 { max-width: 10ch; color: var(--forest); }
.little-things dl { margin: 1.5rem 0 0; max-width: 36rem; }
.little-things dl div { padding: .9rem 0; border-top: 1px solid #a3b59e; }
.little-things dt { font: italic 1.4rem/1.2 var(--serif); margin-bottom: .3rem; }
.little-things dd { margin: 0; }
.little-things-photo {
  padding: .45rem;
  border: 1px solid #9ca88c;
  background: #fffdf2;
  box-shadow: .6rem .6rem 0 #d3dec8;
}
.little-things-photo img { aspect-ratio: 4/5; object-fit: cover; object-position: center 54%; }
.wordmark { color: var(--sage); }
.button { border: 1px solid #92a88b; }
.future { background: linear-gradient(145deg, #315e46, #173d2c); }
.signature { color: #e0eabd; }
.afterword h2 { color: var(--forest); }
.cover-photo figcaption { border-bottom: 1px solid var(--gold); }
.photos a { border: 1px solid #58705d; }
.photos a:focus-visible { z-index: 1; }
@media (max-width: 760px) {
  .little-things { grid-template-columns: 1fr; }
  .little-things-photo { max-width: 32rem; }
}
