:root {
  color-scheme: light;
  --red: #a60609;
  --cream: #efe5d0;
  --gold: #e5bb44;
  --rule: rgb(239 229 208 / 48%);
  font-family: Gotham, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--red) url("assets/paper.png") repeat;
  color: var(--cream);
}
.sheet {
  width: min(100% - clamp(48px, 11vw, 176px), 1512px);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.masthead, footer { display: flex; align-items: center; justify-content: space-between; }
.masthead { gap: 16px; padding-block: clamp(23px, 3.4vh, 38px); border-bottom: 1px solid var(--rule); }
.identity { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 27px); }
.brand { display: block; width: clamp(110px, 9.7vw, 150px); height: auto; }
.organization {
  font: 500 clamp(15px, 1.16vw, 19px)/1.17 "Apple Garamond", Georgia, serif;
}
.cabinet {
  font-size: clamp(10px, .84vw, 13px); font-weight: 650; letter-spacing: .15em;
  text-transform: uppercase; text-align: right; white-space: nowrap;
}
main {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3%; align-items: center; flex: 1; padding-block: clamp(48px, 9vh, 110px);
}
.message { position: relative; z-index: 1; }
h1 {
  margin: 0 0 clamp(19px, 3.2vh, 36px) -.045em;
  font: 700 clamp(70px, 8.8vw, 156px)/1 "New Spirit", Georgia, "Times New Roman", serif;
  color: var(--gold); letter-spacing: -.064em;
}
.lead {
  margin: 0; font: 500 clamp(23px, 2.36vw, 41px)/1.18 "Apple Garamond", Georgia, serif;
  letter-spacing: -.035em; text-wrap: balance;
}
.intro {
  max-width: 435px; margin: 16px 0 0;
  font-size: clamp(16px, 1.15vw, 20px); line-height: 1.63;
}
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 48px); }
.contact a {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border-radius: 3px; border: 1px solid var(--cream);
  color: var(--red); background: var(--cream); text-decoration: none;
  font-size: 14px; font-weight: 650;
}
.contact a + a { background: transparent; color: var(--cream); }
.contact a:hover { background-color: white; border-color: white; color: var(--red); }
.contact a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.contact svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.illustration {
  position: relative; width: min(96%, 520px); margin: 0; justify-self: center;
  display: grid; place-items: center; padding: 4% 9% 6% 0;
}
.stamp { width: 100%; max-width: 394px; transform: rotate(6deg); filter: drop-shadow(5px 8px 0 rgb(73 7 10 / 30%)); }
.stamp-paper {
  padding: clamp(13px, 1.36vw, 24px); background: var(--cream);
  /* Small transparent edge cuts reproduce the cabinet's printed-paper motif. */
  mask: radial-gradient(circle at 5px 5px, transparent 3px, #000 3.5px) -5px -5px / 10px 10px,
        linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat;
}
.engraving { padding: 4px; border: 1px solid #455b42; background: var(--cream); }
.engraving img { display: block; width: 100%; height: auto; border: 1px solid #67745c; }
.stamp-caption {
  display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 1px;
  color: #3d5945; font: bold clamp(13px, 1.2vw, 21px)/1.1 Georgia, serif; letter-spacing: .36em;
}
.stamp-caption span { font-size: .8em; letter-spacing: 0; }
.postmark {
  position: absolute; width: 43%; right: -1%; bottom: 13%; overflow: visible;
  color: #1d2452; transform: rotate(-13deg);
}
.postmark-type { font-family: Arial, sans-serif; font-weight: 700; }
footer { border-top: 1px solid var(--rule); padding: 19px 0 22px; }
footer small { font-size: 12px; letter-spacing: .025em; }
footer span { color: var(--gold); font: 17px/1 Georgia, serif; }
@media (prefers-reduced-motion: no-preference) {
  .message { animation: arrive .52s ease-out both; }
  .illustration { animation: arrive .64s .06s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(7px); } }
}
@media (max-width: 760px) {
  .sheet { width: calc(100% - 44px); }
  .masthead { padding-block: 20px; }
  .identity { gap: 10px; }
  .brand { width: 97px; }
  .organization { font-size: 13px; }
  .cabinet { font-size: 9px; letter-spacing: .09em; }
  main { grid-template-columns: 1fr; gap: 35px; align-content: center; padding-block: 37px 30px; }
  .message { max-width: 520px; }
  h1 { font-size: clamp(65px, 14.5vw, 99px); margin-bottom: 16px; }
  .lead { font-size: clamp(23px, 5.8vw, 30px); }
  .intro { margin-top: 11px; line-height: 1.5; font-size: 16px; }
  .contact { margin-top: 22px; }
  .contact a { min-height: 44px; padding-inline: 15px; }
  .illustration { width: min(59%, 225px); padding: 0 4% 1% 0; }
  .stamp-paper { padding: 9px; mask-size: 8px 8px, calc(100% - 8px) calc(100% - 8px); }
  .engraving { padding: 2px; }
  .stamp-caption { font-size: 11px; padding: 3px 5px 1px; }
  .postmark { width: 50%; right: -8%; bottom: 8%; }
  footer { padding: 15px 0 17px; }
}
@media (max-width: 360px) {
  .sheet { width: calc(100% - 32px); }
  .identity { gap: 7px; }
  .organization { font-size: 12px; }
  .cabinet { letter-spacing: .035em; }
}
