/* poppysterling.com: a cut-out coupon */

:root {
  --font-heading: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, 'Segoe UI', Roboto, sans-serif;

  --bg: #F6F2FB;
  --card: #FFFFFE;
  --ink: #1A1530;
  --ink-soft: #4F4866;
  --line: #CFC6E0;
  --pink: #D3245F;

  --gap-s: 1.5rem;
  --gap-m: 3rem;
  --gap-l: clamp(4rem, 8vw, 8rem);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: var(--pink); }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--card); padding: .6rem 1rem; z-index: 10; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: var(--gap-s); }

section { padding: var(--gap-l) 0 0; scroll-margin-top: 1rem; }

/* ---------- The coupon ---------- */

.coupon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.coupon .stub { padding: 1.75rem; }
.coupon .body { padding: clamp(1.75rem, 4vw, 3.25rem); position: relative; }

/* perforation between stub and body, with the two notches */
.coupon .body::before {
  content: "";
  position: absolute; top: 1.2rem; bottom: 1.2rem; left: -1px;
  border-left: 2px dashed var(--ink);
}
.notch {
  position: absolute; left: calc(22rem - 17px); width: 34px; height: 34px;
  background: var(--bg); border: 2px solid var(--ink); border-radius: 50%;
}
.notch.top { top: -19px; clip-path: inset(50% 0 0 0); }
.notch.bottom { bottom: -19px; clip-path: inset(0 0 50% 0); }

/* scissors that cut along the perforation */
.scissors {
  position: absolute; left: calc(22rem - 13px); top: 1rem;
  width: 26px; height: 26px; color: var(--pink); background: var(--card);
}
.scissors { top: calc(100% - 3rem); transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .scissors { animation: cut 700ms var(--ease) 350ms both; }
}
@keyframes cut { from { top: 1rem; } to { top: calc(100% - 3rem); } }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero .stub { display: flex; }
.hero .stub img { display: block; width: 100%; height: 100%; min-height: 20rem; object-fit: cover; object-position: 40% 20%; border-radius: 10px; }
.hero h1 { font-size: clamp(3.6rem, 11vw, 8.5rem); letter-spacing: -.01em; }
.hero .role { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; margin: 1.25rem 0 .5rem; }
.hero .pitch { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 var(--gap-s); max-width: 34ch; }

.tag {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: .2rem 1rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--pink); color: #FFFFFE;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .6rem 1.8rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  color: #FFFFFE; background: var(--ink); border: 2px solid var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.button:hover { background: var(--card); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* barcode strip: decorative */
.barcode {
  height: 44px; width: 11rem; margin-top: var(--gap-s);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px);
}

/* ---------- About: text + pull ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap-m); align-items: start; }
.about p { margin: 0 0 var(--gap-s); max-width: 62ch; }
.big-number { font-family: var(--font-heading); font-weight: 800; line-height: .85; color: var(--pink); font-size: clamp(7rem, 16vw, 12rem); margin: 0; }
.big-number + p { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; margin: .4rem 0 0; }

/* ---------- Covers: voucher tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tiles li {
  grid-column: span 2;
  background: var(--card);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tiles li:nth-child(1), .tiles li:nth-child(2) { grid-column: span 3; }
.tiles li:first-child { background: var(--ink); color: #FFFFFE; border-style: solid; }
.tiles li:first-child p { color: #DCD5EC; }
.tiles h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.tiles p { margin: 0; color: var(--ink-soft); }
.tiles .off { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .08em; color: var(--pink); margin-bottom: .5rem; }
.tiles li:first-child .off { color: #FF8FB5; }

/* ---------- Career: the receipt ---------- */

.receipt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--gap-m); align-items: start; }
.receipt-wrap > div > p { margin: 0 0 var(--gap-s); max-width: 50ch; }
.receipt {
  background: var(--card);
  padding: 2rem 1.75rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: .02em;
  --zz: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz) / 2 * 1.9) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz) / 2 * 1.9) no-repeat;
}
.receipt .rh { text-align: center; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; border-bottom: 2px dashed var(--ink); padding-bottom: .8rem; margin: 0 0 .8rem; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; text-transform: uppercase; }
.receipt li span:last-child { font-weight: 700; white-space: nowrap; }
.receipt .sep { border-top: 2px dashed var(--ink); margin: .8rem 0; }
.receipt .total { font-weight: 800; font-size: 1.5rem; }
.receipt .total span:last-child { color: var(--pink); }

/* ---------- Off the clock: stamps ---------- */

.stamps { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: var(--gap-s); }
.stamp {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 11rem; height: 11rem; padding: 1rem; border-radius: 50%;
  border: 3px double var(--pink); color: var(--pink);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase;
  transform: rotate(-8deg);
}
.stamp:nth-child(2) { transform: rotate(6deg); }
.offclock p { max-width: 58ch; margin: 0; }

/* ---------- Language switch ---------- */

.topbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.langs { display: flex; flex-wrap: wrap; gap: .35rem; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem;
  border: 2px solid var(--ink); border-radius: 999px; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .05em;
}
.langs a:hover { color: var(--pink); border-color: var(--pink); }
.langs a[aria-current="page"] { background: var(--ink); color: #FFFFFE; }
.site-footer .langs { margin-bottom: 1rem; }

/* ---------- Photos ---------- */

.gallery-intro { margin: 0 0 var(--gap-s); color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery figure {
  margin: 0; background: var(--card); padding: .6rem .6rem .5rem;
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.gallery figure:nth-child(4n+2) { transform: translateY(1.5rem); }
.gallery figure:nth-child(4n+4) { transform: translateY(1.5rem); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .2rem 0; }

/* ---------- Contact ---------- */

.contact .coupon { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
.contact .stub h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.contact .stub p { margin: 0 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .6rem .9rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 10px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pink); outline-offset: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; line-height: 1.45; margin: 1.2rem 0; }
.consent input { width: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--pink); }
.sent { display: none; margin-top: 1rem; font-weight: 600; color: var(--pink); }
.sent.is-visible { display: block; }

/* ---------- Footer ---------- */

.site-footer { margin-top: var(--gap-l); border-top: 2px dashed var(--ink); padding: var(--gap-m) 0; }
.site-footer .brand { font-family: var(--font-heading); font-weight: 800; font-size: 2rem; text-transform: uppercase; margin: 0 0 .75rem; }
.site-footer p { margin: 0 0 .6rem; font-size: .95rem; color: var(--ink-soft); max-width: 70ch; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Plain pages ---------- */

.plain { padding-top: var(--gap-m); }
.plain .back { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.plain .back:hover { color: var(--pink); }
.plain .sheet { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); max-width: 48rem; }
.plain h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin: 0 0 .5rem; }
.plain .updated { color: var(--ink-soft); margin: 0 0 var(--gap-s); }
.plain h2 { font-size: 1.6rem; margin: var(--gap-s) 0 .4rem; }
.plain p { margin: 0 0 1rem; }
.notfound .big { font-family: var(--font-heading); font-weight: 800; font-size: clamp(6rem, 22vw, 12rem); line-height: .85; color: var(--pink); margin: 0; }

/* ---------- Simplified Chinese: Barlow has no CJK glyphs ---------- */

:lang(zh) {
  --font-heading: 'Barlow Condensed', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body: 'Barlow', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
:lang(zh) h2 { letter-spacing: .02em; }
:lang(zh) .stamp { font-size: 1.9rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about, .receipt-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--gap-s); }
  .tiles li, .tiles li:nth-child(1), .tiles li:nth-child(2) { grid-column: span 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:nth-child(n) { transform: none; }
  .gallery figure:nth-child(2n) { transform: translateY(1.5rem); }
}
@media (max-width: 720px) {
  .coupon, .contact .coupon { grid-template-columns: minmax(0, 1fr); }
  .coupon .body::before { top: -1px; bottom: auto; left: 1.2rem; right: 1.2rem; border-left: 0; border-top: 2px dashed var(--ink); }
  .notch, .scissors { display: none; }
  .hero .stub img { max-width: 16rem; height: auto; min-height: 0; }
  .tiles li, .tiles li:nth-child(1), .tiles li:nth-child(2) { grid-column: span 6; }
  .stamp { width: 9rem; height: 9rem; font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .button { width: 100%; }
}
