/* Vintage Poster: the Lineup Poster layout in Air Mail's aged paper, sepia ink and air mail ephemera */
:root {
  --paper: #EEE4CF;
  --paper-2: #F3E3BF;
  --paper-3: #FBF6E8;
  --ink: #4A2312;
  --ink-deep: #2E170B;
  --sepia: #7A5536;
  --graphite: #6B655E;
  --air-red: #B5422F;
  --air-blue: #5B8DB8;
  --on-ink: #F3E8D2;
  --display: "Rye", Rockwell, serif;
  --type: "Special Elite", "Courier New", monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font-family: var(--type); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    var(--grain),
    radial-gradient(38% 30% at 82% 22%, rgba(150, 105, 50, .16), transparent 70%),
    radial-gradient(30% 24% at 12% 58%, rgba(150, 105, 50, .12), transparent 70%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(110, 72, 30, .22));
  background-attachment: scroll, fixed, fixed, fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--air-red); outline-offset: 4px; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* Rye wood type with a light sepia offset shadow */
.cond { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .01em; text-shadow: .045em .045em 0 rgba(181, 137, 91, .75); }
h2 { margin: 0 0 30px; font-size: clamp(34px, 7.4vw, 108px); }
.note { color: var(--sepia); font-size: 15px; }
.more { display: inline-block; margin-top: 30px; text-underline-offset: 5px; }

/* Sepia duotone print: brown shadows, paper highlights, a fine dot screen on top */
.duo { position: relative; overflow: hidden; background: var(--ink-deep); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.06); mix-blend-mode: screen; transition: filter .4s, mix-blend-mode .4s; }
.duo::before { content: ""; position: absolute; inset: 0; background: #E9D3A6; mix-blend-mode: multiply; z-index: 1; pointer-events: none; transition: opacity .4s; }
.duo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .3;
  background: radial-gradient(circle, rgba(46, 23, 11, .9) 0 1.1px, transparent 1.6px) 0 0 / 5px 5px; mix-blend-mode: multiply; transition: opacity .4s; }
.duo.color img { filter: none; mix-blend-mode: normal; }
.duo.color::before, .duo.color::after { opacity: 0; }

/* Air mail envelope edge: red and blue chevrons */
.airmail-edge { height: 14px; background: repeating-linear-gradient(-45deg, var(--air-red) 0 16px, var(--paper) 16px 23px, var(--air-blue) 23px 39px, var(--paper) 39px 46px); }

/* Perforated postage stamp: punched holes show around the edge, the inner panel covers the rest */
.stamp-frame { position: relative; padding: 9px; background: radial-gradient(circle at 7px 7px, transparent 3.6px, #F6EFDF 4.2px) -7px -7px / 14px 14px;
  filter: drop-shadow(0 6px 10px rgba(74, 35, 18, .22)); }
.stamp-frame > .inner { position: relative; height: 100%; background: #F6EFDF; }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 40; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1.5px dashed rgba(74, 35, 18, .45); }
.nav .wrap { padding: 14px 0; }
.nav .home img { width: clamp(124px, 12vw, 168px); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 17px; }
.nav ul a:hover, .nav ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu { display: none; font: inherit; font-size: 16px; padding: 7px 12px; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.btn { display: inline-block; text-decoration: none; font-family: var(--type); font-size: 17px; padding: 12px 22px; border: 2px solid var(--ink); }
.btn-red { background: var(--air-red); border-color: var(--air-red); color: var(--paper-3); }
.btn-red:hover { background: var(--ink); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper-3); }
.btn-ink:hover { background: var(--air-red); border-color: var(--air-red); }
.btn-paper { background: var(--paper-3); color: var(--ink); border-color: var(--paper-3); }
.btn-line { color: var(--ink); }
.btn-line:hover { background: rgba(74, 35, 18, .08); }
.nav .btn { padding: 9px 16px; font-size: 15px; }

/* ---------- Subpage header ---------- */
.bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .06em; text-transform: uppercase; }
.page-head { padding-bottom: clamp(40px, 6vw, 80px); }
.page-head h1 { margin: 30px 0 0; font-size: clamp(64px, 12vw, 180px); }
.page-head .lede { max-width: 56ch; font-size: 20px; margin: 24px 0 0; }

/* ---------- Bands ---------- */
.band-ink { background-color: var(--ink); background-image: var(--grain); color: var(--on-ink); padding: clamp(70px, 10vw, 140px) 0; }
.band-ink .cond { text-shadow: .045em .045em 0 rgba(0, 0, 0, .35); }
.band-light { background: rgba(251, 246, 232, .55); border-top: 1.5px dashed rgba(74, 35, 18, .4); border-bottom: 1.5px dashed rgba(74, 35, 18, .4); padding: clamp(70px, 10vw, 140px) 0; }
.band-plain { padding: clamp(70px, 10vw, 140px) 0; }

/* ---------- Footer ---------- */
.footer { background-color: var(--ink); background-image: var(--grain); color: var(--on-ink); text-align: center; }
.footer .inner { padding: clamp(70px, 10vw, 130px) 0 50px; }
.footer .big { margin: 0; font-size: clamp(54px, 10vw, 150px); text-shadow: .045em .045em 0 rgba(0, 0, 0, .35); }
.footer p { font-size: 19px; margin: 20px 0 30px; }
.footer .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer .btn-paper:hover { background: var(--air-red); border-color: var(--air-red); color: var(--paper-3); }
.footer .small { margin-top: 60px; font-size: 14px; opacity: .85; }

@media (max-width: 900px) {
  .menu { display: block; }
  .nav ul { display: none; position: absolute; left: 16px; right: 16px; top: 100%; flex-direction: column; gap: 0; padding: 6px 18px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 16px 40px rgba(74, 35, 18, .25); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 19px; }
  .nav ul li + li { border-top: 1px dashed rgba(74, 35, 18, .4); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; }
  .nav .home img { width: 112px; }
  .bar span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
