/* GTAVI | postcard system
   Palette: rose page, paper stock, grape ink, sunset stamps
   Type: Ultra (display), Brygada 1918 (text) */

@font-face {
  font-family: "Ultra";
  src: url("../fonts/ultra.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("../fonts/brygada-1918.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("../fonts/brygada-1918-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --rose: #F7C6D0;
  --rose-deep: #EFAFC0;
  --paper: #FFF7EE;
  --grape: #2A1233;
  --grape-soft: #5B3F63;
  --tangerine: #FF7A2F;
  --gulf: #1F5F8B;
  --palm: #2E7D5B;
  --flamingo: #C9336A;

  --display: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --text: "Brygada 1918", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-land: cubic-bezier(.3, 1.35, .45, 1);
  --card-shadow: 0 1px 0 rgba(42, 18, 51, .06), 0 28px 44px -26px rgba(42, 18, 51, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rose);
  color: var(--grape);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain over everything, printed not glowing */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .16  0 0 0 0 .07  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.menu-open { overflow: hidden; }

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 136px); }

/* ---------- shared pieces ---------- */

.h2 {
  margin: 0 0 .45em;
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.005em;
}

.lead {
  margin: 0 0 1em;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 30ch;
}

.body {
  margin: 0 0 1em;
  font-size: 18px;
  line-height: 1.65;
  max-width: 50ch;
  color: var(--grape-soft);
}

/* airmail envelope edge, used by nav and menu */
.airmail {
  padding: 4px;
  border-radius: 16px;
  background: repeating-linear-gradient(
    135deg,
    var(--tangerine) 0 12px,
    var(--paper) 12px 19px,
    var(--gulf) 19px 31px,
    var(--paper) 31px 38px
  );
  box-shadow: 0 18px 36px -24px rgba(42, 18, 51, .6);
}

/* perforated stamp edge */
.perf {
  --r: 4px;
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--grape);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--solid { background: var(--grape); color: var(--paper); }
.btn--solid:hover { background: #3d1c4a; }
.btn--line { background: transparent; color: var(--grape); }
.btn--line:hover { background: var(--grape); color: var(--paper); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 60;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 12px auto 0;
  padding-inline: clamp(12px, 3vw, 32px);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
  padding: 0 10px 0 12px;
  background: var(--paper);
  border-radius: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__stamp {
  --r: 2.5px;
  width: 42px;
  height: 46px;
  padding: 5px;
  background: var(--paper);
  transform: rotate(-5deg);
  transition: transform .35s var(--ease-land);
  filter: drop-shadow(0 1px 0 rgba(42, 18, 51, .25));
}
.brand__stamp img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.brand:hover .brand__stamp { transform: rotate(4deg) scale(1.06); }
.brand__name {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
  letter-spacing: .01em;
  padding-top: 2px;
}

.nav__links {
  display: flex;
  gap: 30px;
}
.nav__links a {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
  padding: 6px 2px;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--tangerine);
}

.nav__social {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}
.soc {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--grape);
  color: var(--grape);
  transition: background-color .2s, color .2s, transform .25s var(--ease-land);
}
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.soc:hover { background: var(--grape); color: var(--paper); transform: rotate(-8deg); }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--grape);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.burger__bar {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grape);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger__bar:first-child { top: 15px; }
.burger__bar:last-child { top: 25px; width: 14px; transition: transform .35s var(--ease-out), top .35s var(--ease-out), width .35s var(--ease-out); }
.burger[aria-expanded="true"] .burger__bar:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:last-child { top: 19.5px; width: 20px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 98px clamp(12px, 3vw, 32px) 24px;
  background: rgba(247, 198, 208, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
  overflow-y: auto;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s var(--ease-out), visibility 0s;
}
.menu__edge {
  transform: translateY(-28px) rotate(-2.5deg);
  transform-origin: 20% 0;
  transition: transform .5s var(--ease-land);
}
.menu.is-open .menu__edge { transform: none; }

.menu__card {
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 22px 22px;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: block;
  padding: 16px 0 12px;
  font-family: var(--display);
  font-size: clamp(36px, 11vw, 48px);
  line-height: 1.05;
  text-decoration: none;
  border-bottom: 2px dashed rgba(42, 18, 51, .22);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), color .2s;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .14s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .2s; }
.menu__links a:active { color: var(--flamingo); }

.menu__social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.menu__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 12px;
  border: 2px solid var(--grape);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.menu__soc:first-child { background: var(--grape); color: var(--paper); }
.menu__soc svg { width: 18px; height: 18px; fill: currentColor; }
.menu__foot {
  margin: 18px 0 0;
  font-style: italic;
  font-size: 16px;
  color: var(--grape-soft);
  text-align: center;
}

/* ---------- hero ---------- */

.hero {
  --mx: 0;
  --my: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - 74px), 880px);
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(56px, 9vh, 96px);
  text-align: center;
}

.hero__welcome {
  margin: 0 0 .1em;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.1;
  color: var(--grape);
}

.letters {
  --size: clamp(66px, 19.2vw, 248px);
  --depth-1: var(--grape);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .015em;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--size);
  line-height: 1;
  letter-spacing: 0;
  padding-right: .07em;
}

.L {
  position: relative;
  display: inline-block;
}
/* extruded block behind each letter */
.L::before {
  content: attr(data-l);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--grape);
  -webkit-text-stroke: .028em var(--grape);
  text-shadow:
    .01em .01em 0 var(--grape), .02em .02em 0 var(--grape), .03em .03em 0 var(--grape),
    .04em .04em 0 var(--grape), .05em .05em 0 var(--grape), .06em .06em 0 var(--grape),
    .07em .07em 0 var(--grape);
}
/* scene inside each letter */
.L__fill {
  --bs: 2.4em;
  --bx: 0em;
  --by: 0em;
  position: relative;
  display: block;
  color: transparent;
  background-image: url("../img/gtavi.jpg");
  background-repeat: no-repeat;
  background-size: var(--bs) var(--bs);
  background-position:
    calc(var(--bx) + var(--mx) * .05em)
    calc(var(--by) + var(--my) * .05em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .028em var(--paper);
  paint-order: stroke fill;
}

.L--g .L__fill { --bs: 2.5em; --bx: .02em;  --by: -.08em; }
.L--t .L__fill { --bs: 2.7em; --bx: -.95em; --by: -.1em; }
.L--a .L__fill { --bs: 3.4em; --bx: 0em;    --by: -1.26em; }
.L--v .L__fill { --bs: 2.9em; --bx: -2.1em; --by: -.06em; }
.L--i .L__fill { --bs: 2.6em; --bx: -1.77em; --by: -.55em; }

.L-break { display: none; }

.hero__sub {
  margin: .9em 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: .01em;
}

/* page load: letters land one by one like a press */
.js .L {
  opacity: 0;
  transform: translateY(-.32em) rotate(var(--rot, 0deg)) scale(1.08);
}
.js .hero__welcome,
.js .hero__sub {
  opacity: 0;
  transform: translateY(10px);
}
.is-ready .L {
  opacity: 1;
  transform: none;
  transition:
    opacity .25s linear calc(var(--i) * 90ms + 120ms),
    transform .75s var(--ease-land) calc(var(--i) * 90ms + 120ms);
}
.is-ready .hero__welcome,
.is-ready .hero__sub {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out) .7s, transform .6s var(--ease-out) .7s;
}
.is-ready .hero__welcome { transition-delay: .05s; }

/* ---------- about: postcard front ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.front {
  margin: 0;
  padding: 14px 14px 0;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease-land);
  max-width: 480px;
  justify-self: center;
  width: 100%;
}
.front:hover { transform: rotate(-1deg) translateY(-4px); }
.front img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.front figcaption {
  padding: 10px 2px 12px;
  font-style: italic;
  font-size: 15px;
  color: var(--grape-soft);
}

/* ---------- token: postcard back ---------- */

.back {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 2px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transform: rotate(.6deg);
}

.back__msg { padding-top: 8px; }

.back__rule {
  background: repeating-linear-gradient(to bottom, rgba(42, 18, 51, .3) 0 10px, transparent 10px 16px);
}

.back__addr {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.back__postage {
  position: relative;
  height: 150px;
  margin-bottom: 18px;
}
.stamp-photo {
  --r: 3.5px;
  position: absolute;
  right: 0;
  top: 0;
  width: 112px;
  height: 128px;
  padding: 8px;
  background: #fff;
  transform: rotate(3deg);
  filter: drop-shadow(0 2px 2px rgba(42, 18, 51, .22));
}
.stamp-photo img { width: 100%; height: 100%; object-fit: cover; }

.postmark {
  color: var(--grape);
  overflow: visible;
}
.postmark__ring {
  font-family: var(--text);
  font-weight: 700;
  font-size: 8.4px;
  letter-spacing: 1.5px;
  fill: currentColor;
}
.postmark__mid {
  font-family: var(--display);
  font-size: 15px;
  fill: currentColor;
}
.back__postage .postmark {
  position: absolute;
  right: 72px;
  top: 26px;
  z-index: 2;
  width: 112px;
  height: 112px;
  opacity: .82;
  transform: rotate(-10deg);
  mix-blend-mode: multiply;
}
.cancel {
  position: absolute;
  right: 170px;
  top: 52px;
  width: 140px;
  height: 56px;
  fill: none;
  stroke: var(--grape);
  stroke-width: 2;
  opacity: .5;
}

.back__to {
  margin: 0 0 8px;
  font-style: italic;
  font-size: 16px;
  color: var(--grape-soft);
}

.ca {
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(42, 18, 51, .28);
  font-family: var(--text);
  font-weight: 600;
  /* sized to keep the full address on one line in its column */
  font-size: min(21px, 3.9cqi);
  line-height: 1.4;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}
@supports not (font-size: 1cqi) {
  .ca { font-size: 17px; white-space: normal; word-break: break-all; }
}
/* very narrow phones: let the same unbroken string wrap instead of shrinking */
@container (max-width: 300px) {
  .ca { font-size: 16px; white-space: normal; word-break: break-all; }
}

.back__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* rubber stamp that lands when the address is copied */
.rubber {
  position: absolute;
  right: 6%;
  bottom: 74px;
  padding: 6px 16px 4px;
  border: 4px double var(--flamingo);
  border-radius: 8px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--flamingo);
  pointer-events: none;
  opacity: 0;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
}
.rubber.is-on { animation: slam 1.9s var(--ease-out) forwards; }
@keyframes slam {
  0%   { opacity: 0;   transform: rotate(-12deg) scale(1.9); }
  14%  { opacity: .92; transform: rotate(-12deg) scale(.96); }
  20%  { opacity: .92; transform: rotate(-12deg) scale(1); }
  78%  { opacity: .92; transform: rotate(-12deg) scale(1); }
  100% { opacity: 0;   transform: rotate(-12deg) scale(1); }
}

/* stamp sheet */
.stamps {
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.stamps__item {
  transform: rotate(var(--tilt, 0deg));
  transition: transform .4s var(--ease-land);
  filter: drop-shadow(0 10px 12px rgba(42, 18, 51, .18));
}
.stamps__item:hover { transform: rotate(0deg) translateY(-6px); }

.stamp {
  --r: 5px;
  height: 100%;
  padding: 12px;
  color: var(--paper);
}
.stamp__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
  padding: 16px 14px 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.stamp__value {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  margin-bottom: auto;
  padding-bottom: 20px;
}
.stamp__label {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.stamp__note {
  margin-top: 4px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.3;
  opacity: .9;
}
.stamp--tangerine { background: var(--tangerine); color: var(--grape); }
.stamp--gulf { background: var(--gulf); }
.stamp--flamingo { background: var(--flamingo); }
.stamp--palm { background: var(--palm); }
.stamp--grape { background: var(--grape); }

/* ---------- chart ---------- */

.chart { padding-top: 0; }
.chart__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chart__head .h2 { margin-bottom: .2em; }
.chart__head .body { margin: 0; }

.chart__frame {
  position: relative;
  padding: 12px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.chart__frame iframe {
  display: block;
  width: 100%;
  height: clamp(460px, 68vh, 640px);
  border: 0;
  border-radius: 4px;
  background: #fff;
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  margin-top: 24px;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--grape);
  color: var(--paper);
}
/* perforated tear line along the top edge */
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 9px;
  background: radial-gradient(circle at 50% 0, var(--rose) 6px, transparent 6.5px) 0 0 / 20px 9px repeat-x;
}

.foot__band {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 247, 238, .14);
}
.foot__waves {
  position: absolute;
  left: 0;
  top: 40px;
  width: 100%;
  height: 72px;
  fill: none;
  stroke: rgba(255, 247, 238, .38);
  stroke-width: 2;
}
.foot__wave-rect { animation: drift 5s linear infinite; }
@keyframes drift { to { transform: translateX(-48px); } }

.postmark--foot {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  top: 16px;
  width: 118px;
  height: 118px;
  color: var(--paper);
  transform: rotate(-12deg);
  transition: transform .9s var(--ease-land);
}
.foot__band:hover .postmark--foot { transform: rotate(348deg); }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.foot__name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
}
.foot__line {
  margin: 0;
  max-width: 34ch;
  font-style: italic;
  color: rgba(255, 247, 238, .78);
}
.foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot__list a {
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
}
.foot__list a:hover {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--tangerine);
}

.foot__small {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 20px;
  border-top: 2px dashed rgba(255, 247, 238, .18);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 247, 238, .62);
}
.foot__small p { margin: 0; max-width: 72ch; }
.foot__top {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--paper);
  text-underline-offset: 5px;
}
.foot :focus-visible { outline-color: var(--paper); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__social { display: none; }
  .burger { display: block; }
  .nav__bar { height: 58px; padding: 0 6px 0 10px; }

  .about__grid { grid-template-columns: 1fr; }
  .front { max-width: 420px; }

  .back {
    grid-template-columns: 1fr;
    transform: none;
  }
  .back__rule {
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(42, 18, 51, .3) 0 10px, transparent 10px 16px);
  }
  .back__postage { height: 140px; }

  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__small { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .body { font-size: 17px; }
  .hero {
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 24px;
  }
  .hero__welcome { font-size: 30px; margin-bottom: .2em; }
  .letters { --size: min(31vw, 150px); line-height: .98; }
  .L-break { display: block; flex-basis: 100%; height: .06em; }
  .hero__sub { font-size: 19px; margin-top: .8em; }
  .about { padding-top: 48px; }
  .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamps__item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7px);
  }
  .stamp__inner { min-height: 172px; padding: 14px 12px 12px; }
  .stamp__label { font-size: 17px; }
  .stamp__note { font-size: 14px; }
  .back { padding: 24px 20px 26px; }
  .back__postage { height: 128px; }
  .stamp-photo { width: 96px; height: 110px; }
  .back__postage .postmark { right: 60px; top: 22px; width: 98px; height: 98px; }
  .cancel { right: 150px; top: 44px; width: 120px; height: 48px; }

  .back__actions .btn { flex: 1 1 auto; }
  .rubber { right: 8%; bottom: 120px; font-size: 26px; }
  .chart__head .btn { width: 100%; }
  .chart__frame { padding: 8px; }
  .chart__frame iframe { height: 520px; }
  .postmark--foot { width: 104px; height: 104px; }
}

@media (min-width: 861px) {
  .menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .rubber.is-on { animation: none; opacity: .92; transform: rotate(-12deg); }
}
