* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--poster-paper) url(paper.webp); color: var(--poster-black); font-family: var(--poster-face); font-size: var(--text-body); font-weight: var(--weight-regular); line-height: var(--leading-poster-text); font-synthesis: none; }
::selection { background: var(--butter); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:active, summary:active { opacity: .6; }
:focus-visible { outline: 2px solid var(--poster-blue); outline-offset: var(--focus-offset); }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
figure, h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font-weight: inherit; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: var(--space-3); background: var(--poster-black); color: var(--poster-paper); }
.skip-link:focus { top: 16px; }
.page { overflow-x: clip; }
main { display: flex; flex-direction: column; align-items: center; }
.poster, .letter, .announcement, .weekend, .travel, .practical, .closing { width: min(100% - 40px, 46rem); }
.ink { color: var(--poster-blue); -webkit-mask: url(riso.webp) 0 0 / 160px; mask: url(riso.webp) 0 0 / 160px; }
.drawing { width: 100%; height: auto; }

.poster { container-type: inline-size; padding-top: var(--space-6); }
/* theme-exception: The poster's columns and gaps are proportions of the sheet. */
.poster-sheet { display: grid; grid-template-columns: 3.6cqi 1fr auto; column-gap: 2.5cqi; text-transform: uppercase; }
.poster-rail { grid-column: 1; grid-row: 1 / 3; align-self: center; z-index: 1; font-size: var(--text-poster-rail); font-weight: var(--weight-regular); line-height: var(--leading-poster); white-space: nowrap; }
.poster-rail span { display: block; writing-mode: vertical-rl; rotate: 180deg; }
.poster-names, .poster-place { grid-column: 2 / 4; white-space: nowrap; line-height: var(--leading-poster); }
.poster-names { font-size: var(--text-poster-names); font-weight: var(--weight-regular); letter-spacing: -.035em; }
/* theme-exception: The ring of Å rises above the tight line box; the padding keeps it inside the grain mask and the negative margin keeps the line in place. */
.poster-place { margin-top: -.25em; padding-top: .25em; font-size: var(--text-poster-place); font-weight: var(--weight-black); font-stretch: 125%; letter-spacing: -.02em; }
/* theme-exception: The drawing hangs just under the title and runs off the sheet's left edge, like the poster's clothes rail. */
.poster-art { grid-column: 1 / -1; grid-row: 3 / 5; align-self: start; width: 112cqi; max-width: none; margin-top: 8cqi; margin-left: -38cqi; }
/* theme-exception: The date block sits in the poster's right column, spaced in proportion to it. */
.poster-when { grid-column: 3; grid-row: 3; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 7cqi; }
.poster-days, .poster-month { font-size: var(--text-poster-when); font-weight: var(--weight-light); letter-spacing: .3em; margin-right: -.3em; }
.poster-dates { margin-block: 1.2cqi; font-size: var(--text-poster-dates); font-weight: var(--weight-black); font-stretch: 125%; line-height: var(--leading-poster); letter-spacing: -.03em; }

.letter { margin-top: var(--space-16); }
.invitation-greeting, .deadline, .host-preview, .day dt, .ways dt, .site-footer { font-size: var(--text-poster-label); letter-spacing: .2em; text-transform: uppercase; }
.invitation-greeting { margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.lead { font-size: var(--text-poster-lead); line-height: var(--leading-heading); letter-spacing: -.015em; text-wrap: pretty; }
.rsvp { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-8); padding: var(--space-5); background: var(--poster-blue); color: var(--poster-paper); font-size: var(--text-body); font-weight: var(--weight-black); font-stretch: 125%; line-height: var(--leading-heading); text-transform: uppercase; text-decoration: none; }
.deadline, .host-preview { margin-top: var(--space-4); }
.host-preview { letter-spacing: .08em; text-transform: none; }
.announcement { margin-top: var(--space-12); padding: var(--space-4) var(--space-5); border: 1px solid currentColor; }

.riso-photo { background: var(--poster-blue); mix-blend-mode: multiply; -webkit-mask: url(riso.webp) 0 0 / 160px; mask: url(riso.webp) 0 0 / 160px; }
.riso-photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.15) brightness(1.06); mix-blend-mode: screen; }
@container style(--palette-tone: dark) {
  .riso-photo { position: relative; background: var(--poster-paper); mix-blend-mode: normal; }
  .riso-photo::after { content: ''; position: absolute; inset: 0; background: var(--poster-blue); mix-blend-mode: multiply; }
}
.couple-photo { width: min(100%, 46rem); margin-top: var(--space-16); }
.couple-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 75%; }

.weekend, .travel, .practical, .closing { margin-top: var(--space-24); }
.heading { margin-bottom: var(--space-8); font-size: var(--text-poster-heading); font-weight: var(--weight-black); font-stretch: 125%; line-height: var(--leading-poster); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.day { position: relative; min-height: var(--space-24); padding-left: var(--space-24); }
.day + .day { margin-top: var(--space-8); }
.day dt { margin-bottom: var(--space-2); }
.day-number { position: absolute; top: 0; left: 0; font-size: var(--text-poster-day); font-weight: var(--weight-black); font-stretch: 125%; line-height: var(--leading-poster); letter-spacing: -.03em; }
.day dd p + p, .ways dd p + p { margin-top: var(--space-2); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); }
.weekend .text-link { margin-top: var(--space-8); }

/* theme-exception: The night train crosses the sheet from edge to edge on phones. */
.travel-drawing { width: calc(100% + 40px); margin: 0 -20px var(--space-12); color: var(--poster-blue); }
.travel .lead { margin-bottom: var(--space-8); }
.ways > div + div { margin-top: var(--space-6); }
.ways dt { margin-bottom: var(--space-2); }
.travel-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--space-6); }

summary { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-3) 0; font-size: var(--text-poster-lead); font-weight: var(--weight-light); line-height: var(--leading-heading); text-transform: uppercase; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; content: '+' / ''; }
details[open] > summary::after { content: '−'; content: '−' / ''; }
.detail-copy { max-width: 32em; padding-bottom: var(--space-6); }

.closing-photo { width: min(72%, 24rem); }
.closing-photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.contact-message { margin-top: var(--space-8); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--space-4); overflow-wrap: anywhere; }
.contact-links a { padding-block: var(--space-2); }
/* theme-exception: The fjällstation closes the page from edge to edge on phones. */
.closing-drawing { width: calc(100% + 40px); max-width: none; margin: var(--space-16) -20px 0; }

.site-footer { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-12) var(--space-5) var(--space-8); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); }
.site-footer nav > a { display: inline-flex; align-items: center; min-height: var(--touch-target); }
.site-footer form { margin: 0; }
.site-footer small { font-size: inherit; }
.link-button { min-height: var(--touch-target); padding: var(--space-3) 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: var(--space-6); translate: -50% 0; padding: var(--space-3) var(--space-5); background: var(--poster-black); color: var(--poster-paper); opacity: 0; pointer-events: none; transition: opacity var(--feedback-duration) ease; }
.toast.visible { opacity: 1; }

@media (min-width: 776px) {
  .poster { padding-top: var(--space-16); }
  .travel-drawing, .closing-drawing { width: 100%; margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }
