/* Room layer: shared print/sticker language plus one signature layout per room. */

.room--now { --room: var(--nav-now); }
.room--work { --room: var(--nav-work); }
.room--archive { --room: var(--nav-archive); }
.room--north { --room: var(--nav-north); }
.room--field { --room: var(--nav-field); }
.room--objects { --room: var(--nav-objects); }
.room--past { --room: var(--nav-past); }
.room--write { --room: var(--accent); }

::selection {
  background: var(--room, var(--accent));
  color: #fff;
}

.page-hero p {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.print {
  margin: 0;
  padding: 8px;
  background: var(--surface);
  box-shadow: 0 22px 44px -22px rgb(22 16 11 / 42%), 0 2px 6px rgb(22 16 11 / 10%);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms, background-color 160ms, border-color 160ms;
}

.chip:hover {
  color: var(--text);
  border-color: var(--control);
}

.chip[aria-pressed="true"] {
  background: var(--room, var(--text));
  border-color: var(--room, var(--text));
  color: #fff;
}

/* ---------- Home ---------- */

.home-intro {
  display: grid;
  gap: 24px;
  padding: 32px var(--inset) 8px;
  align-items: end;
}

.home-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.home-name em {
  font-style: italic;
  color: var(--accent-text);
}

.home-role {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

.home-role strong {
  color: var(--text);
  font-weight: 600;
}

.home-intro .menu-tagline {
  margin: 12px 0 0;
  max-width: 30ch;
  font-style: italic;
}

.desk-tools {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.desk-tools p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.desk-tools div {
  display: flex;
  gap: 8px;
}

.desk-tools .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 20px;
}

@media (min-width: 900px) {
  .home-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .desk-tools {
    justify-items: end;
    text-align: right;
  }
}

.desk-piece {
  user-select: none;
  -webkit-user-drag: none;
}

.desk-piece.is-dragging {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 34px 60px -20px rgb(22 16 11 / 45%);
  z-index: 50;
}

.desk-piece:not(.tile-round) {
  padding: 6px;
}

.desk-piece:hover,
.desk-piece:focus-visible {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 26px 50px -18px rgb(22 16 11 / 38%);
  z-index: 40;
}

[data-desk-piece="now"] { --piece-color: var(--nav-now); }
[data-desk-piece="work"] { --piece-color: #a4462a; }
[data-desk-piece="archive"] { --piece-color: var(--nav-archive); }
[data-desk-piece="north"] { --piece-color: var(--nav-north); }
[data-desk-piece="field"] { --piece-color: var(--nav-field); }
[data-desk-piece="objects"] { --piece-color: var(--nav-objects); }
[data-desk-piece="past"] { --piece-color: var(--nav-past); }
[data-desk-piece="write"] { --piece-color: #a4462a; }

.is-room .desk-piece-label {
  left: 14px;
  bottom: 14px;
  padding: 4px 12px 2px;
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--piece-color);
  box-shadow: 0 6px 14px -8px rgb(22 16 11 / 40%);
  transform: rotate(-2deg);
}

.tile-round.is-room .desk-piece-label {
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  white-space: nowrap;
}

.desk-piece.is-scattering {
  transition: left 700ms cubic-bezier(0.16, 1, 0.3, 1), top 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 0 var(--inset) 48px;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  text-decoration: none;
}

.home-now-label {
  font-family: var(--sign);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--nav-now);
}

.home-now-items {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
}

.home-now-go {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 160ms, translate 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-now:hover .home-now-go {
  color: var(--nav-now);
  translate: 6px 0;
}

/* ---------- Now ---------- */

.now-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-stamp time {
  font-variant-numeric: tabular-nums;
  color: var(--room);
}

.now-board {
  padding: 8px var(--inset) 72px;
}

.now-board dl {
  margin: 0;
}

.now-board dl > div {
  display: grid;
  gap: 4px 32px;
  align-items: baseline;
  padding: 18px 0 20px;
  border-top: 1px solid var(--divider);
}

.now-board dl > div:last-child {
  border-bottom: 1px solid var(--divider);
}

.now-board dt {
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 0.9;
  color: var(--room);
}

.now-board dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.3;
  transition: translate 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.now-board dl > div:hover dd {
  translate: 8px 0;
}

@media (min-width: 768px) {
  .now-board dl > div {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.now-log {
  padding: 0 var(--inset) 96px;
}

.now-log > h2,
.room-subhead {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
}

.now-log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 56px 36px;
}

.now-log li:nth-child(3n + 1) { --tilt: -1.6deg; }
.now-log li:nth-child(3n + 2) { --tilt: 1.2deg; }
.now-log li:nth-child(3n) { --tilt: -0.6deg; }

.now-log .print {
  position: relative;
  aspect-ratio: 4 / 5;
}

.now-log li:hover .print {
  transform: rotate(0deg) translateY(-6px);
}

.film-date {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #ffa24d;
  text-shadow: 0 1px 2px rgb(40 12 0 / 90%), 0 0 8px rgb(255 110 20 / 80%);
}

.now-log h3 {
  margin: 20px 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
}

.now-log p {
  margin: 0;
  max-width: 40ch;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Work ---------- */

.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--inset) 28px;
}

.work-index {
  list-style: none;
  margin: 0;
  padding: 0 var(--inset) 96px;
}

.work-row {
  border-top: 1px solid var(--divider);
}

.work-row:last-child {
  border-bottom: 1px solid var(--divider);
}

.work-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.work-row summary::-webkit-details-marker {
  display: none;
}

.work-year {
  display: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.work-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 200ms, translate 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-kind {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-kind i {
  font-size: 18px;
  transition: rotate 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-row details[open] .work-kind i {
  rotate: 45deg;
}

.work-row summary:hover .work-title,
.work-row summary:focus-visible .work-title,
.work-row details[open] .work-title {
  color: var(--room);
  translate: 12px 0;
}

.work-open {
  display: grid;
  gap: 24px;
  padding: 8px 0 44px;
}

.work-open .print {
  aspect-ratio: 3 / 2;
}

.work-open .print:nth-child(2) {
  --tilt: 1.2deg;
}

.work-open .print:first-child {
  --tilt: -1deg;
}

.work-open p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  max-width: 52ch;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .work-row summary {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 24px;
  }
  .work-year {
    display: block;
  }
  .work-open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 88px;
  }
}

.work-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 260px;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  --tilt: -4deg;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 0) rotate(var(--tilt)) scale(0.9);
  transition: opacity 200ms, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-float.is-on {
  opacity: 1;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 0) rotate(var(--tilt)) scale(1);
}

.work-float img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.work-float img + img {
  opacity: 0;
}

.work-float.is-alt img + img {
  opacity: 1;
}

/* ---------- Archive ---------- */

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 0 var(--inset) 32px;
}

.archive-count {
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.catalog {
  list-style: none;
  margin: 0;
  padding: 0 var(--inset) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 44px 28px;
}

.catalog li:nth-child(4n + 1) { --tilt: -1.4deg; }
.catalog li:nth-child(4n + 2) { --tilt: 0.8deg; }
.catalog li:nth-child(4n + 3) { --tilt: -0.4deg; }
.catalog li:nth-child(4n) { --tilt: 1.6deg; }

.catalog-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.catalog-no {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--room);
}

.catalog-item .print {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
}

.catalog-item:hover .print,
.catalog-item:focus-visible .print {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 30px 50px -22px rgb(22 16 11 / 50%);
}

.catalog-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}

.catalog-meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.catalog-empty {
  padding: 0 var(--inset) 96px;
  font-family: var(--serif);
  font-size: 22px;
}

.viewer {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--canvas);
  color: var(--text);
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.viewer::backdrop {
  background: var(--canvas);
}

.viewer-bar,
.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--inset);
}

.viewer-count {
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--room);
}

.viewer-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--inset);
}

.viewer-stage .print {
  --tilt: -0.8deg;
  max-height: 100%;
  animation: viewer-in 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-stage img {
  max-width: min(88vw, 1100px);
  max-height: calc(100svh - 230px);
  width: auto;
  height: auto;
}

@keyframes viewer-in {
  from { opacity: 0; transform: rotate(-3deg) scale(0.96); }
}

.viewer-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
}

.viewer-caption p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.viewer-nav {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms;
}

.icon-btn:hover {
  border-color: var(--control);
  background: var(--surface-alt);
}

/* ---------- North Star ---------- */

.constellation {
  position: relative;
  margin: 0 var(--inset) 72px;
  aspect-ratio: 1000 / 560;
}

.constellation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constellation line {
  stroke: var(--room);
  stroke-width: 1;
  stroke-opacity: 0.32;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
  transition: stroke-opacity 260ms;
}

.constellation line.is-lit {
  stroke-opacity: 1;
  stroke-dasharray: none;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: color 200ms;
}

.star i {
  font-size: 22px;
  color: var(--room);
  transition: scale 360ms cubic-bezier(0.16, 1, 0.3, 1), rotate 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.star:hover,
.star:focus-visible,
.star.is-active {
  color: var(--text);
}

.star:hover i,
.star:focus-visible i,
.star.is-active i {
  scale: 1.5;
  rotate: 45deg;
}

.star--center {
  font-family: var(--sign);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--room);
}

.star--center i {
  font-size: 34px;
}

.star-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(360px, 100%);
  padding: 18px 22px 20px;
  background: var(--surface);
  box-shadow: 0 18px 36px -18px rgb(22 16 11 / 35%);
  transform: rotate(-1deg);
}

.star-caption h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
}

.star-caption p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 767px) {
  .constellation {
    aspect-ratio: auto;
    display: grid;
    gap: 4px;
  }
  .constellation svg {
    display: none;
  }
  .star {
    position: static;
    translate: none;
    grid-auto-flow: column;
    justify-content: start;
    text-align: left;
  }
  .star-caption {
    position: static;
    margin-top: 16px;
    width: auto;
  }
}

.project-status {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--room, var(--muted));
}

/* ---------- Field Notes ---------- */

.card-drawer {
  list-style: none;
  margin: 0;
  padding: 8px var(--inset) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 48px 36px;
}

.card-drawer li:nth-child(3n + 1) { --tilt: -1.2deg; }
.card-drawer li:nth-child(3n + 2) { --tilt: 0.9deg; }
.card-drawer li:nth-child(3n) { --tilt: -0.4deg; }

.index-card {
  position: relative;
  min-height: 260px;
  padding: 18px 26px 28px;
  background:
    linear-gradient(to bottom, transparent 55px, rgb(196 92 58 / 55%) 55px 56px, transparent 56px),
    repeating-linear-gradient(to bottom, transparent 0 27px, rgb(51 71 154 / 16%) 27px 28px) 0 56px / 100% calc(100% - 56px) no-repeat,
    #fffef9;
  box-shadow: 0 22px 40px -24px rgb(22 16 11 / 45%), 0 1px 3px rgb(22 16 11 / 12%);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.index-card:hover {
  transform: rotate(0deg) translateY(-8px);
}

.card-call {
  display: block;
  height: 38px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.card-stamp {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 3px 8px;
  border: 2px solid var(--room);
  color: var(--room);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  transform: rotate(-7deg);
}

.index-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
}

.index-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 28px;
}

/* ---------- Objects ---------- */

.hall {
  display: grid;
  gap: 96px;
  padding: 16px var(--inset) 112px;
}

.exhibit {
  display: grid;
  gap: 32px;
  align-items: end;
}

.exhibit-object {
  perspective: 900px;
}

.exhibit-object .print {
  position: relative;
  aspect-ratio: 4 / 3;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, 0deg));
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibit-object.is-handling .print {
  transition: transform 90ms linear;
}

.exhibit-object .print::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / 30%), transparent 55%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.exhibit-object.is-handling .print::after {
  opacity: 1;
}

.wall-label {
  max-width: 320px;
  padding: 20px 22px 22px;
  background: var(--surface);
  box-shadow: 0 10px 24px -14px rgb(22 16 11 / 30%);
}

.wall-label .acc {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--room);
}

.wall-label h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

.wall-label .medium {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.wall-label p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .exhibit {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 48px;
  }
  .exhibit:nth-child(even) .exhibit-object {
    order: 2;
  }
  .exhibit:nth-child(even) .wall-label {
    justify-self: end;
  }
  .exhibit:nth-child(even) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  }
}

/* ---------- Write (postcard) ---------- */

.post-hero h1 {
  margin-bottom: 8px;
}

.postcard {
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 1080px;
  margin: 8px var(--inset) 112px;
  padding: 32px;
  background: #fffef9;
  box-shadow: 0 30px 60px -30px rgb(22 16 11 / 45%), 0 2px 6px rgb(22 16 11 / 10%);
  transform: rotate(-0.5deg);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms;
}

@media (min-width: 1144px) {
  .postcard {
    margin-inline: auto;
  }
}

.post-message {
  display: grid;
  gap: 16px;
  align-content: start;
}

.post-greeting {
  margin: 0;
  font-family: var(--sign);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  color: var(--accent-text);
}

.post-message > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.skip-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.post-message label {
  display: grid;
  gap: 6px;
}

.post-message textarea {
  width: 100%;
  min-height: 256px;
  padding: 2px 0 0;
  border: 0;
  resize: vertical;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--divider) 31px 32px);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 32px;
  color: var(--text);
}

.post-message textarea:focus-visible {
  outline-offset: 6px;
}

.post-address {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: end;
  padding-top: 160px;
}

.post-address label {
  display: grid;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-address input {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--control);
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.post-address .btn {
  justify-self: start;
  margin-top: 8px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 26px;
}

.stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 104px;
  padding: 6px;
  background: #fff;
  border: 5px dotted #fffef9;
  outline: 1px solid var(--divider);
  outline-offset: -5px;
  transform: rotate(3deg);
}

.stamp img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.postmark {
  position: absolute;
  top: 44px;
  right: 72px;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border: 2px solid rgb(51 71 154 / 70%);
  border-radius: 50%;
  color: rgb(51 71 154 / 85%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-14deg);
  pointer-events: none;
}

.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--muted);
}

.post-foot [data-form-status] {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
}

.postcard.is-posted {
  transform: rotate(1.5deg) translateY(-10px);
}

.postcard.is-posted .postmark {
  animation: postmark-hit 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes postmark-hit {
  from { transform: rotate(-14deg) scale(1.6); opacity: 0; }
}

@media (min-width: 900px) {
  .postcard {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    padding: 40px 44px;
  }
  .post-address {
    padding-left: 44px;
    border-left: 1px solid var(--divider);
  }
}

@media (prefers-reduced-motion: reduce) {
  .print,
  .index-card,
  .postcard,
  .exhibit-object .print,
  .work-title,
  .now-board dd {
    transition: none;
  }
  .viewer-stage .print,
  .postcard.is-posted .postmark {
    animation: none;
  }
}
