:root {
  --paper: #f7f4ed;
  --ink: #252524;
  --red: #b43225;
  --line: #cac5bb;
  --muted: #65625c;
  --gutter: clamp(1.75rem, 8vw, 8.5rem);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.7 var(--sans);
}
a {
  color: inherit;
}
button,
select {
  font: inherit;
}
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
::selection {
  background: #edd3ca;
}
h1,
h2,
p {
  margin: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 126px;
  margin: 0 var(--gutter);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.monogram {
  text-decoration: none;
  font: 400 2rem var(--serif);
  white-space: nowrap;
}
.monogram span {
  font-style: italic;
  font-size: 0.72em;
}
nav {
  display: flex;
  gap: 2.5rem;
}
nav a,
footer a:not(.monogram) {
  text-decoration: none;
}
nav a:hover,
footer a:hover {
  color: var(--red);
}
nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
nav a[aria-current="page"] {
  color: var(--red);
}
nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
/* Header menus: a globe for the language and a line-drawn sign for the
   current currency, each with a small chevron that turns over when its plain
   list opens. The current choice in the list is red. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.picker {
  position: relative;
}
/* RSVP sits first, like a sign-in button: the site's filled button, sized
   down to the header's small controls. */
.header-rsvp {
  min-height: 36px;
  margin-right: 0.35rem;
  padding: 0.3rem 0.95rem;
  white-space: nowrap;
}
.picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.15rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.picker-toggle:hover,
.picker-toggle[aria-expanded="true"] {
  color: var(--ink);
}
.picker-toggle:focus-visible,
.picker-menu button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.picker-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.picker-icon[data-value] {
  display: none;
}
.picker[data-value="USD"] .picker-icon[data-value="USD"],
.picker[data-value="JPY"] .picker-icon[data-value="JPY"] {
  display: block;
}
.picker-chevron {
  width: 0.34rem;
  height: 0.34rem;
  margin-top: -0.2rem;
  border: solid currentColor;
  border-width: 0 1.2px 1.2px 0;
  transform: rotate(45deg);
  transition:
    transform 0.2s ease,
    margin 0.2s ease;
}
.picker-toggle[aria-expanded="true"] .picker-chevron {
  margin-top: 0.2rem;
  transform: rotate(-135deg);
}
.picker-menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 10;
  min-width: 8.5rem;
  padding: 0.3rem 0;
  border: 1px solid var(--line);
  background: var(--paper);
  animation: picker-in 0.18s ease both;
}
.picker-menu[hidden] {
  display: none;
}

@keyframes picker-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.picker-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 0.86rem/1.2 var(--sans);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.picker-menu button:hover {
  color: var(--red);
}
.picker-menu button[aria-pressed="true"] {
  color: var(--red);
}
.picker-menu button:disabled {
  opacity: 0.5;
  cursor: default;
}
select {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.6rem 1.7rem 0.6rem 0.8rem;
  color: var(--ink);
  font-size: 0.88rem;
  max-width: 150px;
  border-radius: 0;
  cursor: pointer;
}

/* The hero keeps the complete illustration, including the skyline and reflections. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.hero-art {
  position: relative;
  z-index: -1;
  grid-area: 1 / 1;
  align-self: end;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.hero-copy {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  max-width: 53%;
  padding: 5% 0 3rem var(--gutter);
}
.hero h1 {
  font: 400 clamp(5.5rem, 9.8vw, 10.7rem) / 0.82 var(--serif);
  margin: 2rem 0 1.5rem;
}
.hero h1 span {
  color: var(--red);
  font-weight: 400;
}
.hero-city {
  text-transform: uppercase;
  margin: 0.25rem 0 1.65rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid #b98e82;
  background: rgba(247, 244, 237, 0.94);
  color: var(--red);
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover {
  background: #eee5dc;
  border-color: var(--red);
  color: var(--red);
}
/* The filled button: the main action on a screen. */
.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.button-primary:hover {
  background: #92291e;
  border-color: #92291e;
  color: var(--paper);
}
.calendar:before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 2v6M16 2v6'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.vertical {
  position: absolute;
  top: 11%;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  right: var(--gutter);
}
.hero-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  grid-area: 2 / 1;
  margin: 0 var(--gutter);
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
}
.section {
  margin: 0 7.5%;
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow {
  margin-bottom: 1.5rem;
  color: var(--red);
}
.wedding,
.questions,
.gifts {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8%;
}
.intro {
  max-width: 650px;
}
.fine {
  color: var(--muted);
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
/* Answers that point to another screen end with a link to it. */
.faq-list details .trip-link {
  margin-top: 0.5rem;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  font-size: 1rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 1.3rem;
  color: var(--red);
}
details[open] summary:after {
  content: "−";
}
details p {
  padding: 1rem 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.closing {
  padding: 6rem 1.5rem;
  text-align: center;
}
.closing .eyebrow {
  color: var(--red);
  margin-bottom: 1.5rem;
}
.closing .button {
  margin: 2rem 0;
}
.closing > p:last-child {
  font: 2.1rem var(--serif);
}
.closing > p:last-child span {
  color: var(--red);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 var(--gutter);
  padding: 2.7rem 0 3.5rem;
  border-top: 1px solid var(--line);
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 0;
  left: 0;
  padding: 1rem;
  background: white;
  z-index: 50;
}
.noscript-note {
  padding: 1rem 7.5%;
  font-size: 0.85rem;
}
:lang(ja) h2 {
  font-family: "Noto Serif JP", serif;
  line-height: 1.5;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  letter-spacing: 0;
}
:lang(ja) .intro {
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 2;
}
:lang(ja) .hero-date {
  letter-spacing: 0.1em;
}

@media (min-width: 1600px) {
  main {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Equal side columns keep the navigation centered independently of the
   controls; neither side shrinks below its content, so when space is tight
   (the longest translations) the navigation shifts aside instead of under
   the RSVP button. */

@media (min-width: 1261px) {
  .header {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  }
  .header > .monogram {
    justify-self: start;
  }
  .header > nav {
    justify-self: center;
  }
  .header > .header-tools {
    justify-self: end;
  }
}

/* Below that, the navigation takes its own row, with room for all five
   translated items. The widest header (Spanish) needs about 1230px on one row. */

@media (max-width: 1260px) {
  .header {
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.5rem 1.6rem;
    flex-wrap: wrap;
  }
  .header-tools {
    margin-left: auto;
  }
}

/* Phones: a smaller button and tighter gaps keep the monogram, the longest
   translated RSVP and both menus on one row. (.header raises the button rule
   above the .button font set in typography.css.) */

@media (max-width: 600px) {
  .header {
    column-gap: 1rem;
  }
  .header-tools {
    gap: 0.6rem;
  }
  .header .header-rsvp {
    min-height: 34px;
    margin-right: 0.15rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 800px) {
  .hero-art {
    grid-area: 2 / 1;
    object-position: center;
  }
  .hero-copy {
    max-width: 100%;
    padding-top: 3rem;
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 6.5rem;
  }
  .vertical {
    top: 3rem;
    font-size: 0.8rem;
  }
  .hero-foot {
    grid-area: 3 / 1;
  }
  .section {
    padding: 4rem 0;
  }
  .wedding,
  .questions,
  .gifts {
    gap: 5%;
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 1rem;
  }
  .header {
    min-height: 136px;
    padding: 1.5rem 0 1rem;
  }
  .monogram {
    font-size: 1.7rem;
  }
  select {
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    min-height: 40px;
  }
  /* The menu stays on one row and scrolls sideways; the fade hints at more. */
  nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1.25rem;
    padding-right: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav a {
    flex-shrink: 0;
    padding: 0.2rem 0;
  }
  .hero-copy {
    z-index: 1;
    padding-right: var(--gutter);
  }
  .hero h1 {
    margin: 1.5rem 0;
    font-size: clamp(4.1rem, 21vw, 7.5rem);
  }
  .vertical {
    font-size: 0.72rem;
  }
  .hero-copy .button {
    margin-top: 0.1rem;
  }
  .hero .button {
    max-width: 100%;
  }
  .hero-foot {
    gap: 1rem;
  }
  .hero-foot span:first-child {
    max-width: 58%;
  }
  .hero-date:lang(ja) {
    font-size: 1rem;
  }
  .section {
    margin: 0 var(--gutter);
    padding: 3.5rem 0;
  }
  .wedding,
  .questions,
  .gifts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-heading .eyebrow {
    margin-bottom: 1rem;
  }
  .closing {
    padding: 4rem 7%;
  }
  footer {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr auto;
    padding: 2.3rem 0 3rem;
  }
  footer > span {
    grid-row: 2;
    grid-column: 1/-1;
  }
  footer a:last-child {
    font-size: 0.75rem;
    grid-column: 2;
    grid-row: 1;
  }
}

/* Desktop composition: title at left, complete artwork fitted at right. */

@media (min-width: 801px) {
  .header {
    min-height: 106px;
    padding: 1rem 0;
  }
  .hero {
    height: calc(100svh - 106px);
    min-height: 510px;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .hero-art {
    display: block;
    height: 100%;
    min-height: 0;
    object-position: right bottom;
    mix-blend-mode: normal;
  }
  .hero-art img {
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }
  .hero-copy {
    max-width: 48%;
    padding-top: clamp(1rem, 3svh, 2rem);
    padding-bottom: 0;
  }
  .hero h1 {
    margin: 1.2rem 0;
    font-size: clamp(4.7rem, min(7.6vw, 16svh), 8.1rem);
  }
  .hero-city {
    margin-bottom: 1.3rem;
  }
  .vertical {
    top: 2rem;
  }
  .hero-foot {
    padding: 0.9rem 0 1.1rem;
  }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .header {
    min-height: 128px;
  }
  .hero {
    height: calc(100svh - 128px);
  }
  .hero-copy {
    max-width: 53%;
  }
}

@media (min-width: 1100px) {
  .hero {
    max-height: calc(min(100vw, 1600px) / 2.3 + 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .picker-menu {
    animation: none;
  }
}

/* The header stays in place while the six screens move horizontally. */
.screen-navigation {
  height: 100%;
  scroll-behavior: auto;
}
.screen-navigation body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.screen-navigation .header {
  flex-shrink: 0;
  background: var(--paper);
}
.screen-navigation main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  overflow: clip;
}
.screen-navigation .screen-track {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: stretch;
}
.screen-navigation .screen-track.is-ready {
  transition: transform 0.55s cubic-bezier(0.22, 0.68, 0.2, 1);
}
.screen-navigation .screen {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--paper);
}
.screen:focus,
main:focus {
  outline: none;
}
.screen-navigation .screen > .section {
  min-height: 100%;
  margin: 0 var(--gutter);
  padding: clamp(2.5rem, 7vh, 6.5rem) 0;
  border-bottom: 0;
  align-content: center;
}
.screen-navigation .questions,
.screen-navigation .gifts {
  align-content: start;
}
.screen-navigation .closing {
  border-top: 1px solid var(--line);
  margin: 0 var(--gutter);
}

@media (min-width: 801px) {
  .screen-navigation .hero {
    height: 100%;
    min-height: 510px;
    max-height: calc(min(100vw, 1600px) / 2.3 + 60px);
    max-width: 1600px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .screen-navigation .screen > .section {
    align-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-navigation .screen-track.is-ready {
    transition: none;
  }
}

/* Home's invitation flows below the artwork at its natural content height. */
.home-details {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.celebration-intro {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.celebration-intro .eyebrow {
  color: var(--red);
  margin-bottom: 1rem;
}
.celebration-intro .intro {
  margin: 1.4rem auto 0;
}
.celebration-intro .intro + .intro {
  margin-top: 1rem;
}
.home-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 2.25rem auto 2rem;
  padding: 1.25rem 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.home-days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1rem;
}
.home-days li + li {
  border-left: 1px solid var(--line);
}
.home-days .eyebrow {
  color: var(--red);
  white-space: nowrap;
}
.home-day-title {
  text-wrap: balance;
}

@media (max-width: 600px) {
  .home-days {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
  .home-days li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.8rem 0;
    text-align: right;
  }
  .home-days li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.hero-copy > .eyebrow {
  color: var(--red);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-bottom: 1rem;
}
.home-deadline {
  margin-top: 0.25rem;
}
.home-details > .fine {
  max-width: 620px;
  margin-inline: auto;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .home-details {
    max-width: 560px;
  }
  .celebration-intro .intro {
    margin-top: 1.1rem;
  }
}

/* Weekend: a quiet date rail with progressively disclosed day schedules. */
.weekend-section {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 3.5rem;
}
.weekend-heading {
  max-width: 680px;
  margin: 0 auto clamp(2.75rem, 5vw, 4.5rem);
  text-align: center;
}
.weekend-heading > .eyebrow {
  color: var(--red);
  margin-bottom: 1rem;
}
.weekend-heading > .intro {
  margin: 1.25rem auto 1.5rem;
}
.weekend-dates {
  margin-bottom: 0.4rem;
}
.weekend-timeline {
  --date-width: 120px;
  --rail-gap: 34px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.weekend-timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 0;
  left: calc(var(--date-width) + var(--rail-gap));
  width: 1px;
  background: var(--red);
  opacity: 0.4;
}
.timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: var(--date-width) minmax(0, 1fr);
  column-gap: calc(var(--rail-gap) * 2);
  padding-bottom: 3.5rem;
}
.timeline-day::before {
  content: "";
  position: absolute;
  left: calc(var(--date-width) + var(--rail-gap) - 5px);
  top: 1rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
}
.timeline-day:last-child {
  padding-bottom: 0;
}
.timeline-day:last-child::before {
  background: var(--red);
}
.timeline-date {
  padding-top: 0.15rem;
  text-align: right;
}
.timeline-date time {
  display: flex;
  flex-direction: column;
}
.date-number {
  font: 400 4rem/0.95 var(--serif);
  letter-spacing: -0.04em;
}
.date-month,
.date-weekday {
  display: block;
}
.date-month {
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.date-weekday {
  margin-top: 0.35rem;
  color: var(--muted);
}
.day-content {
  min-width: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.day-time {
  color: var(--red);
  margin-bottom: 0.65rem;
}
.day-content h3 {
  margin: 0 0 1rem;
  text-wrap: balance;
}
.day-description {
  max-width: 650px;
}
.day-notes {
  list-style: disc;
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
}
.day-notes li + li {
  margin-top: 0.7rem;
}
.day-notes li::marker {
  color: var(--red);
}
.day-notes li {
  padding-left: 0.2rem;
}
.day-notes strong {
  color: var(--ink);
  margin-right: 0.3rem;
}
.day-details {
  margin-top: 1.25rem;
}
.day-map {
  display: inline-flex;
  gap: 0.3rem;
  margin-left: 0.35rem;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
.day-map:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* A quiet close to the timeline: what to do once you've seen the plan. */
.weekend-next {
  --date-width: 120px;
  --rail-gap: 34px;
  margin: 3rem 0 0 calc(var(--date-width) + var(--rail-gap) * 2);
}
.weekend-next-title {
  margin: 0;
  font: 400 clamp(1.7rem, 2.6vw, 2.2rem) / 1.2 var(--serif);
  letter-spacing: -0.02em;
}
.weekend-next-text {
  max-width: 460px;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.weekend-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.4rem;
}
:lang(ja) .weekend-next-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.6;
  letter-spacing: 0;
}
.day-details summary {
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  color: var(--red);
  align-items: center;
}
.day-details summary:hover {
  color: #922619;
  text-decoration: none;
}

/* A chevron that turns with the panel replaces the +/− glyph swap. */
.day-details summary::after,
.day-details[open] summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 0.3s ease;
  align-self: center;
}
.day-details[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}
.day-details.is-closing summary::after {
  transform: translateY(-0.2rem) rotate(45deg);
}
.day-details-body {
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem) 1.5rem;
  background: rgba(202, 197, 187, 0.14);
  margin-top: 0.6rem;
}
.day-details p {
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.day-details .eyebrow {
  color: var(--red);
}
.day-schedule {
  margin: 1rem 0 1.25rem;
}
.day-schedule > div {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.day-schedule > div:first-child {
  padding-top: 0;
}
.day-schedule dt {
  color: var(--ink);
}
.day-schedule dd {
  margin: 0;
}
:lang(ja) .day-content h3 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.6;
  letter-spacing: 0;
}
:lang(ja) .weekend-heading > .intro {
  font-size: 1rem;
}

@media (max-width: 700px) {
  .weekend-section {
    padding-top: 2.5rem;
  }
  .weekend-heading {
    text-align: left;
    margin-bottom: 2.5rem;
  }
  .weekend-heading > .intro {
    margin-left: 0;
  }
  .weekend-timeline {
    --date-width: 0px;
    --rail-gap: 5px;
  }
  .timeline-day {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-left: 1.75rem;
    padding-bottom: 2.5rem;
  }
  .timeline-date {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0;
  }
  .timeline-date time {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
  }
  .date-number {
    font-size: 2.5rem;
  }
  .date-month,
  .date-weekday {
    margin: 0;
  }
  .day-content {
    padding-bottom: 1.5rem;
  }
  .weekend-next {
    margin: 2.5rem 0 0 1.75rem;
  }
  .day-details-body {
    padding: 0.9rem 0.85rem 1.1rem;
  }
  .day-schedule > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .day-schedule dt {
    color: var(--red);
  }
}

/* Companion illustrations share the hero's ink, paper, and red thread. */
.day-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "heading art" "description art";
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 1rem;
  align-items: start;
}
.day-heading {
  grid-area: heading;
  min-width: 0;
}
.day-overview h3 {
  margin-bottom: 0;
}
.day-overview > .day-description {
  grid-area: description;
  min-width: 0;
}
.day-art {
  grid-area: art;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  align-self: center;
  mix-blend-mode: multiply;
}
.timeline-day:nth-child(even) .day-overview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "art heading" "art description";
}

@media (max-width: 1050px) {
  .day-overview,
  .timeline-day:nth-child(even) .day-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "art" "description";
    row-gap: 1.15rem;
  }
  .day-art {
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .day-overview,
  .timeline-day:nth-child(even) .day-overview {
    row-gap: 1rem;
  }
}

/* Keep the weekend introduction still while its timeline scrolls beside it. */
.weekend-scroll {
  min-width: 0;
  container-type: inline-size;
  container-name: weekend-timeline;
}
.weekend-scroll:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
:lang(ja) .weekend-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

@media (min-width: 1100px) and (min-height: 640px) {
  .screen-navigation [data-screen="wedding"] {
    overflow: hidden;
  }
  .screen-navigation .weekend-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(3.5rem, 6vw, 6.5rem);
    height: 100%;
    min-height: 0;
    max-width: 1400px;
    padding: 0;
  }
  .screen-navigation .weekend-heading {
    align-self: center;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 2rem 0;
    text-align: left;
  }
  .screen-navigation .weekend-heading > .intro {
    margin: 1.5rem 0 2rem;
  }
  .screen-navigation .weekend-heading > .fine {
    max-width: none;
    line-height: 1.75;
  }
  .screen-navigation .weekend-scroll {
    min-height: 0;
    margin-block: clamp(3rem, 7vh, 5rem) 2rem;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0.75rem 1rem 2rem 0;
    scroll-padding-block: 1.5rem;
    scrollbar-color: auto;
  }
  /* A styled WebKit scrollbar stays visible on macOS, hinting that more events sit below.
    Chrome only honours it while scrollbar-color (inherited from .screen) is auto. */
  .screen-navigation .weekend-scroll::-webkit-scrollbar {
    width: 4px;
  }
  .screen-navigation .weekend-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  .screen-navigation .weekend-scroll::-webkit-scrollbar-thumb {
    background: rgb(101 98 92 / 0.28);
    border-radius: 4px;
  }
  .screen-navigation .weekend-scroll::-webkit-scrollbar-thumb:hover {
    background: rgb(101 98 92 / 0.5);
  }
  @supports not selector(::-webkit-scrollbar) {
    .screen-navigation .weekend-scroll {
      scrollbar-width: thin;
      scrollbar-color: rgb(101 98 92 / 0.28) transparent;
    }
  }
  .screen-navigation .weekend-timeline,
  .screen-navigation .weekend-next {
    --date-width: 56px;
    --rail-gap: 18px;
  }
  .screen-navigation .date-number {
    font-size: 3.25rem;
  }
  .screen-navigation .day-overview {
    column-gap: 1.5rem;
  }
  .screen-navigation:lang(ja) .weekend-heading h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  }
  .screen-navigation:lang(ja) .weekend-heading > .intro {
    font-size: 1rem;
  }
}

/* Artwork responds to the available timeline width, not the whole window. */

@container weekend-timeline (max-width:460px) {
  .day-overview,
  .timeline-day:nth-child(even) .day-overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "art" "description";
    row-gap: 1.15rem;
  }
  .day-art {
    max-width: 520px;
    justify-self: start;
  }
  .day-content h3 {
    font-size: clamp(2rem, 5cqw, 2.7rem);
  }
  :lang(ja) .day-content h3 {
    font-size: clamp(1.5rem, 4cqw, 2rem);
  }
}

/* Our story: a horizontal ribbon of memories, with space to pause and read. */
.story-section {
  padding: clamp(2rem, 5vh, 4rem) 0 2rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.story-heading {
  margin-inline: var(--gutter);
  max-width: 850px;
}
.story-heading > .eyebrow {
  color: var(--red);
  margin-bottom: 1rem;
}
.story-timeline {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-top: 2rem;
  scroll-padding-inline: var(--gutter);
}
.story-timeline:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.story-rail {
  position: relative;
  display: flex;
  align-items: flex-start;
  /* On wide screens where every chapter fits, spread them gutter to gutter. */
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  width: max-content;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--gutter) 0.75rem;
}
.story-milestone {
  --memory-offset: 0px;
  width: clamp(250px, 23vw, 330px);
  position: relative;
  flex-shrink: 0;
  margin-top: var(--memory-offset);
}
.story-moment {
  appearance: none;
  display: block;
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.story-moment:focus {
  outline: none;
}
.story-moment:focus-visible .moment-title {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.moment-photo {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e8e3d9;
  aspect-ratio: 4/3;
}
.moment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

/* Frame the faces in the short timeline cards without cropping the reader photos. */
.story-milestone:nth-child(1) {
  --photo-position: center 50%;
}
.story-milestone:nth-child(2) {
  --photo-position: center 22%;
}
.story-milestone:nth-child(3) {
  --photo-position: center 20%;
}
.story-milestone:nth-child(4) {
  --photo-position: center 45%;
}
.story-milestone:nth-child(5) {
  --photo-position: center 55%;
}
.moment-marker {
  position: relative;
  display: block;
  height: 52px;
  margin-top: 20px;
  padding-top: 14px;
  color: var(--muted);
}
.moment-marker::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--red);
  border-radius: 45% 55% 48% 52%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--paper);
  transition: background 0.3s;
}
.moment-title {
  display: block;
  transition: color 0.35s;
}
.moment-description {
  margin-top: 0.75rem;
  color: var(--ink);
  transition:
    opacity 0.35s,
    transform 0.35s;
  text-wrap: pretty;
}
.story-enhanced .moment-photo img {
  filter: grayscale(0.7);
  opacity: 0.78;
}
.story-enhanced .moment-photo {
  transform: scale(0.72);
  transform-origin: left bottom;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story-enhanced .moment-title {
  color: var(--muted);
  transform: scale(0.78);
  transform-origin: left center;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.3s;
}
.story-enhanced .moment-description {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.story-enhanced .is-active .moment-photo img {
  filter: grayscale(0);
  opacity: 1;
}
.story-enhanced .is-active .moment-photo {
  transform: scale(1);
}
.story-enhanced .is-active .moment-title {
  color: var(--ink);
  transform: scale(1);
}
.story-enhanced .is-active .moment-description {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.story-enhanced .is-active .moment-marker::after {
  background: var(--red);
}
.story-enhanced .is-active .moment-marker {
  color: var(--red);
}

@media (max-width: 600px) {
  .story-section {
    padding-top: 2rem;
    justify-content: flex-start;
  }
  .story-timeline {
    margin-top: 1.2rem;
  }
  .story-milestone {
    width: 76vw;
    max-width: 330px;
  }
}

/* Reserved chapter space lets the photo and title grow without moving the rail. */
.story-stage {
  position: relative;
  min-height: 0;
  flex-shrink: 0;
  margin-top: 1.25rem;
}
.story-stage .story-timeline {
  position: relative;
  margin-top: 0;
}

@media (max-width: 600px) {
  .story-stage {
    margin-top: 1.25rem;
  }
}

/* The thread keeps going; the way on to the weekend sits outside it. */
.story-onward {
  align-self: flex-start;
  margin: 1.5rem var(--gutter) 0;
  white-space: nowrap;
}

/* Keep the expanded story within a typical desktop window. */

@media (min-width: 801px) {
  .story-stage {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .story-section {
    padding: 1.5rem 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
  }
  .story-heading {
    max-width: none;
  }
  .story-heading > .eyebrow {
    margin-bottom: 0.65rem;
  }
  .story-milestone {
    width: clamp(280px, 25vw, 350px);
  }
  .story-onward {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 var(--gutter) 0 2rem;
  }
  .moment-photo {
    aspect-ratio: auto;
    height: 170px;
  }
  .moment-marker {
    height: 40px;
    margin-top: 16px;
    padding-top: 10px;
  }
}
.story-timeline::-webkit-scrollbar {
  display: none;
}

/* One red thread follows the actual milestone positions, including their stagger. */
.story-ribbon {
  position: relative;
  width: max-content;
  min-width: 100%;
}
.story-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  color: var(--red);
}
.story-thread path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.65;
}
.story-milestone:nth-child(5n + 2) {
  --memory-offset: 38px;
}
.story-milestone:nth-child(5n + 3) {
  --memory-offset: 12px;
}
.story-milestone:nth-child(5n + 4) {
  --memory-offset: 56px;
}
.story-milestone:nth-child(5n + 5) {
  --memory-offset: 24px;
}

@media (max-width: 600px) {
  .story-milestone:nth-child(5n + 2) {
    --memory-offset: 16px;
  }
  .story-milestone:nth-child(5n + 3) {
    --memory-offset: 5px;
  }
  .story-milestone:nth-child(5n + 4) {
    --memory-offset: 24px;
  }
  .story-milestone:nth-child(5n + 5) {
    --memory-offset: 10px;
  }
}

/* Short introductions on the thread; complete chapters in a quiet reading panel. */
.story-subtitle {
  margin-top: 0.65rem;
  max-width: 760px;
  color: var(--muted);
}
.story-read {
  display: none;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.4rem 0;
  margin-top: 0.5rem;
  color: var(--red);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.story-enhanced .story-read {
  display: inline-flex;
  opacity: 0;
  transition: opacity 0.2s;
}
.story-enhanced .is-active .story-read,
.story-enhanced .story-read:focus-visible {
  opacity: 1;
}
.story-read:focus-visible,
.story-reader button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.story-enhanced .story-fallback {
  display: none;
}
.story-fallback {
  margin-top: 1rem;
}
.story-fallback h3 {
  margin: 1rem 0 0;
}
.story-fallback p {
  padding-right: 0;
}
.story-reading,
.story-reading body,
.story-reading .screen {
  overflow: hidden;
}
.story-reader {
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100% - 64px));
  height: calc(100dvh - 64px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  box-shadow: 0 24px 100px #25252433;
}
.story-reader::backdrop {
  background: rgb(37 37 36 / 0.52);
}
.story-reader[open] {
  animation: story-reader-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.story-reader[open]::backdrop {
  animation: story-backdrop-in 0.42s ease both;
}
.story-reader.is-closing {
  animation: story-reader-out 0.26s ease-in both;
}
.story-reader.is-closing::backdrop {
  animation: story-backdrop-out 0.26s ease-in both;
}

@keyframes story-reader-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

@keyframes story-reader-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
}

@keyframes story-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes story-backdrop-out {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-reader[open],
  .story-reader[open]::backdrop,
  .story-reader.is-closing,
  .story-reader.is-closing::backdrop {
    animation: none;
  }
}
.story-reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 6px 24px 6px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.story-reader-count {
  color: var(--red);
}
.story-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.story-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 32px 40px 24px;
}
.story-reader-photo {
  position: sticky;
  top: 88px;
  margin: 0;
}
.story-reader-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65dvh;
  object-fit: contain;
  margin-inline: auto;
  transition: opacity 0.35s ease;
}
.story-reader-photo img.is-loading {
  opacity: 0;
}
.story-reader-photo img[data-crop="portrait"] {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 65% center;
}
.story-reader-article {
  min-width: 0;
}
.story-reader-article h2:focus {
  outline: none;
}
.story-reader-subtitle {
  margin: 1.2rem 0 2rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.story-reader-body p + p {
  margin-top: 1.1em;
}
.story-reader-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.story-reader-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--red);
  cursor: pointer;
}
.story-reader-navigation button[hidden] {
  display: none;
}
.story-close svg,
.story-reader-navigation svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-close:hover,
.story-reader-navigation button:hover {
  background: #eee5dc;
}
.story-next {
  margin-left: auto;
}

@media (max-width: 700px) {
  .story-reader {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
  }
  .story-reader-toolbar {
    min-height: 52px;
    padding: 4px 12px 4px 24px;
    padding-top: max(4px, env(safe-area-inset-top));
  }
  .story-reader-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding: 24px 24px max(16px, env(safe-area-inset-bottom));
  }
  .story-reader-photo {
    position: static;
  }
  .story-reader-photo img {
    max-height: 48dvh;
  }
  .story-reader-navigation {
    align-items: stretch;
  }
}

/* Touch has no hover: keep previews and their reading controls discoverable. */

@media (hover: none) {
  .story-enhanced .moment-photo {
    transform: none;
  }
  .story-enhanced .moment-photo img {
    filter: none;
    opacity: 1;
  }
  .story-enhanced .moment-title {
    transform: none;
    color: var(--ink);
  }
  .story-enhanced .moment-description {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .story-enhanced .story-read {
    opacity: 1;
  }
}

/* Keep preview copy and its reading link visible on shorter laptop screens. */

@media (min-width: 801px) and (max-height: 800px) {
  .story-section {
    padding-top: 1rem;
  }
  .story-stage {
    margin-top: 0.75rem;
  }
  .moment-photo {
    height: 150px;
  }
  .moment-marker {
    height: 28px;
    margin-top: 12px;
    padding-top: 8px;
  }
  .moment-description {
    margin-top: 0.5rem;
  }
  .story-read {
    margin-top: 0.25rem;
  }
  .story-milestone:nth-child(5n + 2) {
    --memory-offset: 18px;
  }
  .story-milestone:nth-child(5n + 3) {
    --memory-offset: 6px;
  }
  .story-milestone:nth-child(5n + 4) {
    --memory-offset: 24px;
  }
  .story-milestone:nth-child(5n + 5) {
    --memory-offset: 12px;
  }
}

/* Gifts: the letter on the left; each way to send a gift is a hairline row,
   its details beside a QR code, followed by the note about the day. */
.gifts .section-heading {
  max-width: 680px;
}
.gifts .section-heading .intro {
  margin-top: 1.5rem;
}
.gifts-label {
  margin: 0 0 1rem;
  color: var(--muted);
}
.gift-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gift-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.gift-method:last-child {
  border-bottom: 1px solid var(--line);
}
.gift-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  margin: 0 0 0.75rem;
}
.gift-region {
  color: var(--red);
}
.gift-value {
  margin: 0;
  overflow-wrap: anywhere;
}
/* Copy buttons swap the copy icon for a tick while "Copied" shows. */
.gift-copy {
  cursor: pointer;
}
.gift-copy[hidden] {
  display: none;
}
.gift-copy.is-copied {
  color: var(--ink);
}
.gift-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gift-icon-done,
.gift-copy.is-copied .gift-icon {
  display: none;
}
.gift-copy.is-copied .gift-icon-done {
  display: block;
}
.gift-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}
.gift-qr {
  width: 7.5rem;
  margin: 0;
  text-align: center;
}
.gift-qr img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.gift-qr figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
}
.gifts-day {
  margin-top: 3rem;
}
.gifts-day-title {
  margin: 0 0 0.75rem;
}
.gifts-day p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.gifts-day .gifts-signoff {
  margin-top: 1.5rem;
  color: var(--ink);
}
.gifts-amp {
  color: var(--red);
}

/* Side by side, the letter stays in view while the list scrolls past. */
@media (min-width: 1001px) {
  .gifts .section-heading {
    position: sticky;
    top: 2.5rem;
    align-self: start;
  }
}

/* The rows need the full width before the letter and list sit side by side. */
@media (max-width: 1000px) {
  .gifts {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
}

/* A phone can't scan its own screen: keep the links and copy buttons. */
@media (max-width: 600px) {
  .gift-qr {
    display: none;
  }
  .gift-method {
    grid-template-columns: minmax(0, 1fr);
  }
}
