@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;700&display=swap");

:root {
  --paper: #eeeae1;
  --paper-dark: #ded9cf;
  --ink: #11100e;
  --muted: #45423d;
  --line: rgba(17, 16, 14, .55);
  --shadow: rgba(0, 0, 0, .28);
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.55), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.08), transparent 30%),
    #bdb9b0;
  font-family: "IBM Plex Mono", "Roboto Mono", monospace;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 4px),
    radial-gradient(circle, #000 0 .5px, transparent .7px);
  background-size: auto, 5px 5px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.paper {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 22px auto;
  padding: 42px 54px 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.55), transparent 20%),
    radial-gradient(circle at 90% 70%, rgba(0,0,0,.045), transparent 25%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 5px),
    var(--paper);
  box-shadow: 0 24px 55px var(--shadow);
  filter: saturate(.7);
}

/* Subtle thermal-print texture */
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background:
    radial-gradient(circle, #000 0 .5px, transparent .7px) 0 0 / 6px 6px,
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(0,0,0,.06) 81px, transparent 82px);
  mix-blend-mode: multiply;
}

/* Jagged receipt edges */
.paper::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 7px, var(--paper) 7px) 0 0 / 18px 18px repeat-x;
}

.site-header,
.hero,
.benefits,
.contact-strip,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  text-align: center;
}

.header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0 20px;
  text-decoration: none;
}

.brand-name {
  font-size: clamp(32px, 5vw, 54px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.07em;
  text-shadow: .8px 0 0 var(--ink);
}

.brand-name sup {
  font-size: .25em;
  vertical-align: top;
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 17px;
  letter-spacing: .18em;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 49px;
  padding: 8px 4px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  transition: opacity .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: .55;
}

.nav-search {
  margin-left: auto;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-15deg);
}

.hero {
  padding: 34px 0 26px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: clamp(15px, 2vw, 21px);
  letter-spacing: .25em;
  font-weight: 600;
}

h1 {
  margin: 3px 0 12px;
  font-size: clamp(54px, 10vw, 106px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 700;
  text-shadow: 1px 0 0 var(--ink), 0 1px 0 var(--ink);
}

.hero-art {
  min-height: 420px;
  position: relative;
  max-width: 900px;
  margin: 10px auto 8px;
}

.roll,
.box,
.loose-paper {
  position: absolute;
  filter: grayscale(1);
}

.roll {
  border: 2px solid rgba(17,16,14,.7);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(17,16,14,.14) 8px 9px),
    repeating-linear-gradient(90deg, rgba(17,16,14,.04) 0 2px, transparent 2px 5px),
    #e2ded5;
  box-shadow: 0 9px 12px rgba(0,0,0,.15);
}

.roll span {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  left: 38%;
  top: 38%;
  border: 7px solid #292722;
  border-radius: 50%;
  background: #ded9cf;
}

.roll-large {
  width: 270px;
  height: 185px;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  border-radius: 50% / 44%;
}

.roll-mid {
  width: 190px;
  height: 145px;
  left: 27%;
  top: 135px;
  transform: rotate(-8deg);
  border-radius: 50% / 45%;
}

.roll-small {
  width: 160px;
  height: 125px;
  right: 25%;
  top: 160px;
  transform: rotate(9deg);
  border-radius: 50% / 45%;
}

.box {
  width: 260px;
  height: 135px;
  bottom: 46px;
  left: 8%;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(0,0,0,.08) 10px);
  transform: rotate(-2deg);
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 16px;
}

.box-right {
  left: auto;
  right: 7%;
  transform: rotate(2deg);
}

.box small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .1em;
}

.loose-paper {
  width: 165px;
  height: 110px;
  left: 42%;
  bottom: 25px;
  background: #e8e3da;
  border: 1px solid var(--ink);
  transform: rotate(-4deg);
  box-shadow: 0 5px 8px rgba(0,0,0,.15);
}

.loose-paper::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -32px;
  width: 40px;
  height: 55px;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  transform: skewY(18deg);
}

.loose-paper span {
  display: block;
  margin: 18px;
  font-size: 8px;
  font-weight: 700;
}

.scribble {
  position: absolute;
  z-index: 2;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-align: left;
  line-height: 1.15;
  transform: rotate(-7deg);
}

.scribble i {
  display: block;
  width: 55px;
  height: 9px;
  margin-top: 5px;
  border-bottom: 2px solid var(--ink);
  border-radius: 50%;
}

.scribble-left { left: 0; top: 120px; }
.scribble-right { right: 0; top: 110px; transform: rotate(7deg); }
.scribble-bottom-left { left: 8%; bottom: 4px; }
.scribble-bottom-right { right: 4%; bottom: 12px; transform: rotate(7deg); }

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero-copy > p:first-child {
  margin: 0 auto 23px;
  font-size: 15px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 300px;
  padding: 15px 22px;
  color: #f1eee7;
  background: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .18s ease, background .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #292722;
}

.button-icon {
  transform: rotate(-35deg);
}

.small-note {
  margin: 13px 0 0;
  font-size: 12px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.benefits article {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 12px;
  border-right: 1px dashed var(--line);
}

.benefits article:last-child {
  border-right: 0;
}

.icon {
  font-size: 28px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.benefits strong,
.benefits small {
  display: block;
}

.benefits strong {
  font-size: 11px;
}

.benefits small {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.45;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.45fr 1.2fr;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}

.contact-brand,
.contact-item {
  padding: 0 18px;
  border-right: 1px dashed var(--line);
}

.contact-brand {
  padding-left: 0;
}

.contact-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.contact-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.06em;
}

.contact-brand span,
.contact-brand small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 21px;
  line-height: 1;
}

.contact-item a,
.contact-item strong,
.contact-item small {
  display: block;
}

.contact-item a,
.contact-item strong {
  font-size: 11px;
  text-decoration: none;
}

.contact-item small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 0 14px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .04em;
}

.footer > div {
  font-size: 14px;
  letter-spacing: -.05em;
}

.footer sup {
  font-size: .45em;
}

@media (max-width: 820px) {
  .paper {
    padding: 30px 28px 24px;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits article:nth-child(2) {
    border-right: 0;
  }

  .contact-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .contact-brand,
  .contact-item {
    min-height: 60px;
  }

  .contact-item:nth-child(2) {
    border-right: 0;
  }

  .contact-item:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--paper);
  }

  .paper {
    width: 100%;
    margin: 0;
    min-height: 100vh;
    padding: 24px 18px 26px;
    box-shadow: none;
  }

  .header-meta {
    font-size: 8px;
  }

  .brand-name {
    font-size: 30px;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .nav {
    gap: 9px;
    font-size: 9px;
  }

  .nav-search {
    font-size: 22px;
  }

  .hero {
    padding-top: 25px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: .15em;
  }

  h1 {
    font-size: clamp(47px, 16vw, 76px);
  }

  .hero-art {
    min-height: 290px;
    transform: scale(.78);
    transform-origin: center top;
    margin-bottom: -55px;
  }

  .roll-large {
    width: 210px;
    height: 145px;
  }

  .roll-mid {
    width: 145px;
    height: 110px;
  }

  .roll-small {
    width: 125px;
    height: 95px;
  }

  .box {
    width: 190px;
    height: 100px;
    font-size: 11px;
  }

  .scribble {
    font-size: 10px;
  }

  .hero-copy > p:first-child {
    font-size: 11px;
  }

  .button {
    width: 100%;
    min-width: 0;
    gap: 16px;
  }

  .small-note {
    font-size: 9px;
  }

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

  .benefits article {
    min-height: 90px;
    padding: 12px 5px;
    gap: 7px;
  }

  .icon {
    font-size: 22px;
    min-width: 25px;
  }

  .benefits strong {
    font-size: 9px;
  }

  .benefits small {
    font-size: 7px;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-brand,
  .contact-item {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }

  .contact-item:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
