/* Miss A.M. Clemens — a 1950s magazine page, mobile first. */

:root {
  --ink: #2c2118;
  --muted: #5c5146;
  --burgundy: #6d241c;
  --burgundy-deep: #4a1612;
  --cherry: #c73432;
  --cherry-deep: #9d2422;
  --teal: #1c6b74;
  --teal-deep: #0f3f46;
  --teal-dark: #0b2e33;
  --cream: #f6ecd7;
  --cream-deep: #efe1c4;
  --paper: #fbf6ec;
  --gold: #f3d597;
  --gold-deep: #e0bc72;
  --white: #fffaf3;
  --line: rgba(109, 36, 28, 0.28);
  --serif: "Bodoni Moda", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Josefin Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --script: "Yellowtail", "Segoe Script", cursive;
  --header: 4.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--teal-dark);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

picture { display: block; }

a { color: var(--burgundy-deep); }

a:hover { color: var(--cherry); }

p, h1, h2, h3, dl, ul, figure { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.05;
  color: var(--burgundy-deep);
}

.sheet {
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(74, 22, 18, 0.04) 0.65px, transparent 0.65px);
  background-size: 4px 4px;
  min-height: 100vh;
}

.sheet > main { flex: 1 0 auto; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--burgundy-deep);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  z-index: 30;
}

.skip:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--cherry);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.btn-cherry:focus-visible { outline-color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.4rem;
  padding: 0.2rem 0.65rem 0.35rem;
  background: var(--teal-deep);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}

.brand {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.35rem;
  line-height: 1;
}

.brand:hover { color: var(--gold); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--gold); }

.section {
  padding: 2.15rem 1.15rem 2.4rem;
  scroll-margin-top: 5.4rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cherry);
}

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cherry);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 10vw, 4.4rem);
  max-width: 12ch;
}

.tagline {
  margin: 0.7rem 0 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 5.4vw, 2.15rem);
  line-height: 1.15;
  color: var(--burgundy);
  max-width: 18ch;
}

.deck {
  margin: 0;
  max-width: 34rem;
  color: var(--ink);
}

.hero-grid { display: grid; gap: 1.15rem; }

#inside { scroll-margin-top: 5.4rem; }

.cover-frame {
  margin: 0.25rem auto 0;
  max-width: 20.5rem;
  background: var(--white);
  padding: 0.4rem;
  border: 1px solid var(--burgundy);
  box-shadow: 7px 8px 0 rgba(15, 63, 70, 0.16);
}

.cover-frame img { display: block; width: 100%; }

.cover-caption {
  margin: 0.55rem 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.2rem;
}

.price {
  width: 6.7rem;
  height: 6.7rem;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.price dt {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
}

.price dd {
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--burgundy-deep);
}

.buy-stack { margin-top: 1rem; }

.btn-row {
  display: grid;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-cherry {
  background: var(--cherry-deep);
  color: var(--cream);
}

.btn-cherry:hover { background: var(--burgundy-deep); color: var(--cream); }

.btn-teal {
  background: var(--teal-deep);
  color: var(--cream);
}

.btn-teal:hover { background: var(--teal); color: var(--cream); }

.btn-gold {
  background: var(--gold);
  color: var(--burgundy-deep);
  border-color: var(--burgundy);
}

.btn-gold:hover { background: var(--gold-deep); color: var(--burgundy-deep); }

.amazon-note {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--cherry);
  font-size: 0.85rem;
}

.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.45;
}

h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 7vw, 3.35rem);
  max-width: 16ch;
}

.subtitle {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--burgundy);
  max-width: 36rem;
}

.prose p { margin: 0 0 0.9rem; max-width: 40rem; }

.prose p:last-child { margin-bottom: 0; }

.tickets {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.tickets li {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: var(--cream);
  border-left: 4px solid var(--cherry);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.tickets span {
  display: block;
  font-family: var(--script);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cherry);
  letter-spacing: 0;
}

.book-top { display: grid; gap: 1.4rem; }

.buy-card {
  display: none;
  background: var(--cream);
  border: 2px solid var(--burgundy);
  padding: 1rem 1rem 1.1rem;
  align-self: start;
}

.buy-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.buy-card .btn-row { display: grid; }

.buy-card .btn { width: 100%; }

.buy-card .prices { margin-top: 0; }

.peek-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: 2rem 0 0.75rem;
}

.peek-head h3 {
  margin: 0;
  font-size: 1.7rem;
}

.swipe {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.peek-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 1.15rem 0.85rem 0;
  margin-right: -1.15rem;
  -webkit-overflow-scrolling: touch;
}

.peek-scroller figure {
  flex: 0 0 78%;
  scroll-snap-align: start;
  margin: 0;
}

.peek-scroller a {
  display: block;
  background: var(--white);
  padding: 0.35rem;
  border: 1px solid var(--burgundy);
  box-shadow: 3px 3px 0 rgba(15, 63, 70, 0.18);
  color: inherit;
}

.peek-scroller img { display: block; width: 100%; }

.peek-scroller figcaption {
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--burgundy-deep);
}

.peek-scroller figcaption span {
  display: block;
  margin-top: 0.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
}

#magazine {
  background: var(--teal-deep);
  color: var(--cream);
}

#magazine .eyebrow,
#magazine .script { color: var(--gold); }

.issue {
  display: grid;
  gap: 1.25rem;
}

.mast {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--gold);
  padding: 1.05rem 1rem 1.15rem;
  text-align: center;
}

.mast-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cherry);
}

.mast .script {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--burgundy);
}

.mast h2 {
  margin: 0 auto;
  max-width: 12ch;
  font-size: clamp(2.1rem, 8vw, 3rem);
  color: var(--burgundy-deep);
}

.slogan {
  margin: 0.8rem 0 0.9rem;
  padding: 0.45rem 0.7rem;
  background: var(--gold);
  color: var(--burgundy-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.3;
}

.mast img {
  width: min(100%, 220px);
  margin: 0 auto;
  border: 1px solid var(--burgundy);
  background: var(--white);
  padding: 0.25rem;
}

.mast-issue {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
}

.mast-issue strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.issue-copy p {
  margin: 0 0 0.9rem;
  max-width: 38rem;
  color: var(--cream);
}

.issue-copy a {
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.issue-copy a:hover { color: var(--white); }

.coupon {
  max-width: 36rem;
  background: var(--cream);
  border: 2px dashed var(--burgundy);
  padding: 1.1rem 1rem 1.15rem;
}

.coupon h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); }

.field { margin: 0 0 0.75rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--burgundy);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
}

.field input::placeholder { color: #6b5e52; opacity: 1; }

.coupon .btn { width: 100%; }

.fine {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status {
  margin: 0.7rem 0 0;
  font-style: italic;
  min-height: 1.2em;
}

.about-grid { display: grid; gap: 1.15rem; }

.portrait {
  margin: 0 auto;
  max-width: 16.5rem;
  background: var(--white);
  padding: 0.45rem;
  border: 1px solid var(--burgundy);
  box-shadow: 6px 6px 0 rgba(15, 63, 70, 0.16);
}

.portrait img { display: block; width: 100%; }

.portrait figcaption {
  margin-top: 0.4rem;
  text-align: center;
  font-family: var(--script);
  font-size: 1.45rem;
  color: var(--burgundy);
  line-height: 1;
}

.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 1.4rem 1.15rem 1.6rem;
  border-top: 3px solid var(--gold);
}

.site-footer a { color: var(--gold); }

.site-footer a:hover { color: var(--white); }

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.15rem;
  padding: 0;
  margin: 0 0 0.9rem;
}

.social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.3rem 0.4rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social a:hover { color: var(--gold); }

.social svg { width: 22px; height: 22px; display: block; }

.footer-meta {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

.footer-meta p { margin: 0.25rem 0; }

.legal {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

#lightbox {
  width: min(920px, calc(100vw - 1.25rem));
  max-height: calc(100vh - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: 0.7rem 0.75rem 0.95rem;
  border: 3px solid var(--burgundy);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

#lightbox::backdrop { background: rgba(8, 28, 32, 0.88); }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.lightbox-count {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-btn {
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--burgundy);
  background: var(--white);
  color: var(--burgundy-deep);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-btn:hover { background: var(--gold); }

#lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 760px);
  max-height: min(70dvh, 760px);
  margin: 0 auto;
  background: var(--white);
}

#lightbox-caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.lost {
  min-height: 55vh;
  display: grid;
  align-content: center;
}

.lost h1 { font-size: clamp(2.4rem, 9vw, 4rem); }

@media (min-width: 760px) {
  body { padding: 1.25rem 1rem 2rem; }

  .sheet {
    max-width: 1080px;
    margin: 0 auto;
    min-height: calc(100vh - 2.5rem);
    border: 3px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .site-header { justify-content: space-between; padding-inline: 1.25rem; }

  .section { padding: 2.8rem 2rem 3rem; }

  .about-grid {
    grid-template-columns: 16.5rem 1fr;
    align-items: start;
    gap: 1.75rem;
  }

  .portrait { margin: 0; }

  .issue {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: center;
    gap: 2rem;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    grid-template-areas:
      "copy cover"
      "buy cover";
    align-items: center;
    gap: 1.25rem 2.25rem;
  }

  .hero-copy { grid-area: copy; }
  .cover-frame { grid-area: cover; max-width: none; margin: 0; align-self: center; }
  .hero-buy { grid-area: buy; }

  .btn-row {
    display: flex;
    flex-wrap: wrap;
  }

  .btn { width: auto; }

  .book-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.75fr);
    gap: 2rem;
    align-items: start;
  }

  .buy-card { display: block; }

  .tickets { grid-template-columns: 1fr 1fr 1fr; }

  .peek-scroller {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    gap: 1rem 0.9rem;
  }

  .peek-scroller figure { flex: none; }

  .swipe { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

@media print {
  body { background: white; padding: 0; }
  .site-header, .btn-row, .social, #lightbox { display: none; }
  .sheet { border: 0; box-shadow: none; }
  a { text-decoration: underline; }
}
