dialog[data-section="outside"] { overflow: clip; }
dialog[data-section="outside"] .dialog-scroll { min-height: 0; }
.collection-switch { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 3px; margin: 0 0 20px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.collection-switch-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 9px 16px; border-radius: 3px; font-size: 16px; line-height: 1.3; color: var(--body); }
.collection-switch-button[aria-current="page"] { color: var(--ink); background: var(--wash); box-shadow: 0 1px 2px var(--shadow); }
.collection-switch-button:is(:hover, :focus-visible) { color: var(--ink); background: var(--accent-wash); }
.collection-heading, .work-interests h3 { margin: 6px 0 20px; font-size: 24px; line-height: 1.3; font-weight: 400; }
.interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.interest-list li { padding: 22px 0; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.5; color: var(--body); }
.postcard-event { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; }
.postcard-event-logo { display: block; flex: none; width: 30px; height: 30px; object-fit: contain; border-radius: 5px; }
.postcard-event h3 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 400; }
.postcard-desk { perspective: 1100px; padding: 12px 8px 10px; }
.postcard-paper { display: block; position: relative; width: 100%; height: 260px; padding: 0; border: 0; text-align: left; transform-style: preserve-3d; transform: rotate(-1.5deg); transition: transform 620ms cubic-bezier(.2,.8,.2,1); }
.postcard-paper:hover { transform: rotate(-.5deg) translateY(-2px); }
.postcard-paper.is-turned { transform: rotateY(180deg) rotate(1deg); }
.postcard-face { display: flex; flex-direction: column; position: absolute; inset: 0; padding: 13px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 5px 15px var(--shadow), 0 1px 2px var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.postcard-paper:is(:hover, :focus-visible) .postcard-face { background: var(--accent-wash); }
.postcard-photo { display: block; width: 100%; height: 196px; object-fit: cover; object-position: center 38%; }
.postcard-paper.has-full-photo { display: grid; height: auto; max-width: calc(520px * var(--photo-ratio, 1) + 28px); margin-inline: auto; }
.has-full-photo .postcard-face { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
.has-full-photo .postcard-photo { height: auto; flex: none; object-fit: contain; object-position: center; }
.has-full-photo .postcard-caption { margin-top: auto; }
.postcard-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 8px 6px; font-size: 19px; color: var(--ink); }
.postcard-date { font-size: 14px; color: var(--muted); }
.postcard-back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.3fr 1fr; padding: 24px 26px; gap: 24px; }
.postcard-message { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.postcard-back-title { font-size: 25px; line-height: 1.1; }
.postcard-back-date { color: var(--muted); font-size: 14px; margin-top: 10px; }
.postcard-description { color: var(--body); font-size: 18px; line-height: 1.5; margin-top: 23px; }
.postcard-address { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; font-size: 16px; color: var(--muted); }
.postcard-stamp { position: relative; align-self: flex-end; display: block; flex: none; width: 78px; height: 96px; margin: -4px -3px 23px 0; pointer-events: none; }
.postcard-stamp-art { display: block; width: 100%; height: 100%; transform: rotate(6deg); filter: drop-shadow(0 1px 1px rgba(40, 34, 57, .16)); }
.postcard-postmark { position: absolute; width: 126px; height: 62px; right: 31px; top: 13px; color: #56616c; fill: currentColor; opacity: .38; transform: rotate(-13deg); font-family: Georgia, serif; }
.postcard-signature { color: var(--ink); font-size: 23px; font-style: italic; margin-bottom: 9px; }
.postcard-illustration { height: 196px; position: relative; background: var(--wash); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.postcard-city { color: var(--ink); font-size: 37px; letter-spacing: -1px; padding-top: 15px; }
.postcard-study { width: 96%; height: 132px; fill: none; stroke: var(--green); stroke-width: 1; opacity: .65; }
.postcard-foot { min-height: 46px; padding: 10px 12px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); }
.postcard-turn, .postcard-source { padding: 9px 0; white-space: nowrap; }
.postcard-photos { display: flex; align-items: center; gap: 8px; }
.postcard-thumbnail { width: 42px; height: 36px; padding: 2px; border: 1px solid transparent; opacity: .6; transition: opacity 150ms, border-color 150ms; }
.postcard-thumbnail[aria-pressed="true"] { opacity: 1; border-color: var(--green); }
.postcard-thumbnail:is(:hover, :focus-visible) { opacity: 1; border-color: transparent; background: var(--accent-gradient); }
.postcard-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.postcard-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 16px; margin-bottom: 10px; }
.postcard-step { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; text-align: left; color: var(--ink); }
.postcard-step[data-direction="previous"] { grid-column: 1; }
.postcard-step[data-direction="next"] { grid-column: 3; }
.postcard-count { grid-column: 2; }
.postcard-step[data-direction="next"] { justify-content: flex-end; text-align: right; color: var(--green); background: var(--wash); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.postcard-step:not(:disabled):is(:hover, :focus-visible) { border-color: var(--green); background: var(--accent-wash); }
.postcard-step:disabled { background: transparent; border-style: dashed; }
.postcard-step-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.postcard-step-label { font-size: 13px; line-height: 1.2; }
.postcard-step-destination { font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.postcard-step-arrow { flex: none; font-family: system-ui, sans-serif; font-size: 22px; line-height: 1; }
.postcard-count { align-self: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .postcard-thumbnail { width: 44px; height: 44px; }
  .postcard-photos { flex-wrap: wrap; gap: 6px; }
  .postcard-turn, .postcard-source { min-height: 44px; display: inline-flex; align-items: center; }
  .postcard-paper:not(.has-full-photo) { display: grid; height: auto; min-height: 310px; }
  .postcard-face { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
  .collection-switch-button { padding-inline: 12px; }
  .postcard-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .postcard-count { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .postcard-step { grid-row: 2; padding: 10px; gap: 8px; }
  .postcard-step[data-direction="next"] { grid-column: 2; }
  .postcard-step[hidden] + .postcard-count + .postcard-step { grid-column: 1 / -1; }
  .postcard-step-destination { font-size: 16px; }
  .postcard-desk { padding: 8px 0; }
  .postcard-paper { height: 310px; }
  .postcard-photo, .postcard-illustration { height: 240px; }
  .postcard-face { padding: 9px; }
  .postcard-caption { padding: 16px 3px 0; font-size: 17px; }
  .postcard-date { font-size: 12px; }
  .postcard-back { padding: 22px 17px; gap: 16px; grid-template-columns: 1.4fr 1fr; }
  .postcard-back-title { font-size: 22px; }
  .postcard-description { font-size: 16px; margin-top: 16px; }
  .postcard-address { padding-left: 15px; font-size: 14px; }
  .postcard-signature { font-size: 20px; }
  .postcard-stamp { width: 68px; height: 84px; margin-bottom: 33px; }
  .postcard-postmark { width: 110px; height: 54px; right: 26px; top: 13px; }
  .postcard-city { font-size: 31px; }
  .postcard-study { height: 165px; }
  .postcard-foot { padding: 10px 0 0; gap: 8px; }
  .postcard-photos:has(+ .postcard-source) { order: 1; flex-basis: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-paper, .postcard-paper:hover, .postcard-paper.is-turned { transform: none; transition: none; }
  .postcard-back { transform: none; visibility: hidden; }
  .postcard-paper.is-turned .postcard-front { visibility: hidden; }
  .postcard-paper.is-turned .postcard-back { visibility: visible; }
}
@media (max-width: 420px) {
  .postcard-back { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 24px 20px; gap: 15px; }
  .postcard-message { padding-top: 0; }
  .postcard-back-title, .postcard-back-date { max-width: calc(100% - 86px); }
  .postcard-description { margin-top: 38px; }
  .postcard-address { border-left: 0; padding-left: 0; }
  .postcard-address > span:last-child { display: none; }
  .postcard-signature { margin: 0; }
  .postcard-stamp { position: absolute; top: 21px; right: 18px; margin: 0; }
  .postcard-postmark { display: none; }
}
@media (pointer: coarse) {
  .postcard-thumbnail { width: 44px; height: 44px; }
  .postcard-photos { gap: 6px; flex-wrap: wrap; }
  .postcard-turn, .postcard-source { min-height: 44px; display: inline-flex; align-items: center; }
}
