#postkort { margin-block:clamp(22px,3vw,42px) 0; scroll-margin-top:1rem; }
#postkort[hidden], #postkort [hidden] { display:none; }
.postcard-paper {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,.63fr) minmax(0,1.37fr);
  gap:clamp(20px,4vw,70px); align-items:center; padding:clamp(20px,3.8vw,56px);
  color:#183e34; background:#f7f3e7; border:1px solid #d6d7c6; border-radius:14px; box-shadow:0 4px 16px #2c443009;
}
.postcard-paper::before {
  content:""; position:absolute; inset:0 16px auto; height:4px;
  background:repeating-linear-gradient(120deg,#327763 0 15px,transparent 15px 25px,#be654e 25px 40px,transparent 40px 50px); opacity:.75;
}
.postcard-intro h2 { font:400 clamp(2.4rem,4.6vw,4.4rem)/1.01 var(--display,Georgia,serif); letter-spacing:-.052em; margin:.6rem 0 .7rem; }
.postcard-intro>p { max-width:32ch; color:#40594c; line-height:1.55; margin:0; }
.postcard-stamp { display:grid; place-items:center; width:48px; height:42px; border:2px dotted #477963; background:#e9eedc; transform:rotate(-5deg); }
.postcard-stamp img { width:32px; height:auto; }
.postcard-work { min-width:0; }
.postcard-progress,.postcard-message>p:first-child { font-size:.8rem; font-weight:700; color:#386452; margin:0 0 .35rem; }
.postcard-stage h3 { margin:0 0 .85rem; font:650 clamp(1.15rem,1.75vw,1.55rem)/1.24 var(--sans,Arial,sans-serif); letter-spacing:-.025em; scroll-margin-top:1rem; }
.postcard-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.5rem,1.2vw,1.15rem); }
.postcard-option { padding:5px; background:#fffef9; border:1px solid #c8d0c0; border-radius:8px; text-align:left; color:#193f33; box-shadow:0 2px 6px #1937290d; overflow:hidden; }
.postcard-option img { display:block; width:100%; height:auto; aspect-ratio:1.97; object-fit:cover; border-radius:4px; }
.postcard-option span { display:flex; align-items:center; justify-content:space-between; gap:.3rem; padding:.45rem; line-height:1.25; min-height:42px; font-size:clamp(.9rem,1.25vw,1.05rem); font-weight:650; }
.postcard-option b { font-size:1.2rem; }
.postcard-controls { display:flex; align-items:start; gap:.55rem 1rem; flex-wrap:wrap; }
.postcard-controls button,.postcard-credits summary { min-height:44px; padding:.7rem 0; font-size:.85rem; color:#355c4c; text-decoration:underline; text-underline-offset:.18em; cursor:pointer; }
.postcard-credits summary { width:fit-content; }
.postcard-credits p { font-size:.77rem; margin:.15rem 0; }.postcard-credits a { text-decoration:underline; }
.postcard-reveal { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); border:1px solid #cad3c4; border-radius:9px; background:#fffdf6; overflow:hidden; }
.postcard-picture { width:100%; height:100%; min-height:190px; object-fit:cover; }
.postcard-message { padding:clamp(.9rem,2vw,1.65rem); }
.postcard-message h3 { font:400 clamp(2rem,4vw,3.5rem)/1 var(--display,Georgia,serif); margin:0 0 .6rem; letter-spacing:-.05em; }
.postcard-message p { line-height:1.52; }.postcard-message small { display:block; margin-top:.4rem; }
.postcard-message a { margin-top:.8rem; }
#postkort :is(button,a,summary):focus-visible { outline:3px solid #27624e; outline-offset:3px; }
@media(hover:hover) { .postcard-option:hover { border-color:#497b5f; box-shadow:0 4px 10px #224f341a; }.postcard-option:hover span { text-decoration:underline; text-underline-offset:.18em; } }
@media(prefers-reduced-motion:no-preference) { .postcard-reveal { animation:postcard-turn .55s ease-out both; transform-origin:center; } @keyframes postcard-turn { from {opacity:.18;transform:perspective(1000px) rotateY(-75deg)} to {opacity:1;transform:perspective(1000px) rotateY(0)} } }
@media(max-width:800px) {
  .postcard-paper { grid-template-columns:1fr; gap:1.1rem; }
  .postcard-stamp { float:right; margin:0 0 4px .7rem; }
  .postcard-intro h2 { margin:0 0 .35rem; }.postcard-intro>p { max-width:46ch; }
}
@media(max-width:500px) {
  .postcard-paper { padding:1.05rem .85rem; }.postcard-stamp { height:32px;width:36px; }.postcard-stamp img { width:26px; }
  .postcard-option img { aspect-ratio:1.32; }.postcard-option span { padding:.35rem .15rem; min-height:48px; }.postcard-option b { display:none; }
  .postcard-reveal { grid-template-columns:1fr; }.postcard-picture { min-height:0; height:142px; }.postcard-message { padding:1rem; }
}
