:root {
  color-scheme: light;
  --pine: #17382e;
  --pine-deep: #10281f;
  --paper: #fbf3e5;
  --cream: #fffaf0;
  --ink: #251a14;
  --muted: #625043;
  --berry: #922d36;
  --berry-dark: #72202c;
  --ribbon: #cfa77c;
  --rule: #c9ad8d;
  --heading: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pine-deep);
  color: var(--ink);
  font: 1rem/1.5 var(--body);
}
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .3em; }
button:focus-visible, a:focus-visible { outline: 3px solid #b56723; outline-offset: 5px; }
.postbox { max-width: 1440px; margin-inline: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  overflow: hidden;
  align-items: stretch;
  background: var(--pine);
  color: var(--paper);
}
.hero-copy {
  z-index: 1;
  align-self: center;
  padding: clamp(2.3rem, 6vw, 6rem) clamp(1.4rem, 4.5vw, 5rem) clamp(2.6rem, 6vw, 6rem) clamp(1.4rem, 6.2vw, 6.25rem);
  animation: arrive .62s ease-out both;
}
.postmark {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ribbon);
  border-radius: 50%;
  color: var(--ribbon);
  font: 1.5rem/1 var(--heading);
  margin-bottom: 1.25rem;
}
h1, h2, h3, .punch-line { font-family: var(--heading); }
h1 {
  margin: 0;
  font-size: clamp(3rem, 6.25vw, 6rem);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 400;
}
h1 em { color: #f6c68f; font-weight: 400; }
.hero-copy p { max-width: 26ch; margin: 1.2rem 0 1.55rem; color: #f1e0ca; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.jump {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  color: #fff5e6;
  text-decoration-thickness: 1px;
  font-weight: 650;
  transition: color .16s ease, transform .16s ease;
}
.jump:hover { color: #ffcc94; transform: translateY(3px); }
.hero-art { margin: 0; position: relative; min-height: 100%; isolation: isolate; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #17382e55, transparent 23%); pointer-events: none; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; position: absolute; inset: 0; animation: develop .85s ease-out both; }

.game {
  scroll-margin-top: 1rem;
  background: var(--paper);
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.15rem, 6.2vw, 6.25rem) clamp(2.15rem, 4vw, 3.8rem);
  background-image: radial-gradient(circle at 10% 5%, #fffaf3, transparent 47%);
}
.game-heading { display: flex; align-items: baseline; gap: .3rem 1.4rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.3rem; }
h2 { margin: 0; font-size: clamp(1.85rem, 3.45vw, 3rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.game-heading p { margin: 0; color: var(--muted); }
.envelopes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.65rem, 2.15vw, 1.6rem); }
.envelope {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  min-width: 0;
  min-height: 8.2rem;
  padding: .75rem clamp(.65rem, 2vw, 1.55rem);
  border: 1px solid #ba9c79;
  border-radius: .56rem;
  overflow: hidden;
  background:
    linear-gradient(147deg, transparent 49.6%, #af8a6455 50%, transparent 50.5%) bottom right / 67% 100% no-repeat,
    linear-gradient(32deg, transparent 49.6%, #af8a6444 50%, transparent 50.5%) bottom left / 67% 100% no-repeat,
    #f4e4cb;
  box-shadow: 0 7px 0 #e8d4b8;
  color: var(--ink);
  text-align: start;
  transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease, background-color .17s ease;
}
.envelope:nth-child(2) { background-color: #e4ead8; }
.envelope:nth-child(3) { background-color: #f3ddd6; }
.envelope:hover { transform: translateY(-4px); box-shadow: 0 10px 0 #e8d4b8; border-color: var(--berry); }
.envelope:active { transform: translateY(3px); box-shadow: 0 3px 0 #e8d4b8; }
.envelope[aria-pressed="true"] { border: 2px solid var(--berry); }
.envelope.opened .seal { background: var(--pine); box-shadow: inset 0 0 0 1px #b9b895; }
.seal {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 2.22rem;
  height: 2.22rem;
  margin: 0 0 .47rem;
  background: var(--berry);
  color: white;
  font-family: var(--heading);
}
.envelope-name { font-family: var(--heading); font-size: clamp(1.04rem, 2.1vw, 1.68rem); }
.letter {
  margin-top: 1.5rem;
  border-left: .26rem solid var(--berry);
  padding: clamp(1.15rem, 3vw, 2.35rem);
  background: var(--cream);
  animation: arrive .24s ease-out both;
}
.letter h3 { font-size: clamp(1.35rem, 3vw, 2.55rem); margin: 0; font-weight: 500; line-height: 1.15; }
.letter h3:focus, .punch-line:focus { outline: none; }
.action {
  background: var(--berry);
  color: white;
  border: 0;
  border-radius: .3rem;
  min-height: 2.7rem;
  margin-top: 1.1rem;
  padding: .6rem .9rem;
  font-weight: 700;
  transition: background-color .16s ease;
}
.action:hover { background: var(--berry-dark); }
.punch-line { margin: .9rem 0 0; font-size: clamp(1.25rem, 2.6vw, 2.15rem); color: var(--berry-dark); font-style: italic; animation: arrive .26s ease-out both; }
.game-status { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: .95rem; min-height: 2.7rem; }
.game-status p { margin: 0; color: var(--muted); font-size: .92rem; }
.reset { border: 0; border-radius: .2rem; background: transparent; color: var(--berry-dark); text-decoration: underline; min-height: 2.75rem; font-weight: 650; }
.signoff {
  padding: clamp(1.65rem, 4vw, 3.6rem) clamp(1.15rem, 6.2vw, 6.25rem);
  color: var(--paper);
  background: var(--pine);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: clamp(.8rem, 2.6vw, 1.6rem);
}
.signoff-stamp {
  width: clamp(2.15rem, 5.5vw, 4.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ribbon);
  border-radius: 50%;
  color: var(--ribbon);
  font: clamp(1.1rem, 3vw, 2.15rem)/1 var(--heading);
}
.signoff p { margin: .55rem 0; color: #f1e0ca; }
.signoff a { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; color: #ffd098; font-weight: 650; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes develop { from { opacity: .65; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 630px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1.2rem; }
  .hero-art { height: clamp(12rem, 63vw, 20rem); min-height: 0; }
  .hero-art::after { background: linear-gradient(180deg, #17382e43, transparent 19%); }
  .game-heading { padding-bottom: .85rem; margin-bottom: .85rem; }
  .envelope { min-height: 6.45rem; }
  .envelope-name { overflow-wrap: anywhere; }
  .seal { width: 1.82rem; height: 1.82rem; }
}
@media (max-width: 350px) {
  h1 { font-size: 2.65rem; }
  .envelopes { gap: .45rem; }
  .envelope { padding-inline: .41rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
