/* The WOW Magazine — site styles (rebuilt from the Squarespace design) */

@font-face { font-family: "WOW Sans"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "WOW Sans"; src: url("fonts/inter-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "WOW Sans"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "WOW Sans"; src: url("fonts/inter-mediumitalic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "WOW Sans"; src: url("fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "WOW Sans"; src: url("fonts/inter-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --black: #000;
  --ink: #111;
  --grey: #555;
  --line: #000;
  --light: #dcdddf;
  --pad: 4vw;
  --font: "WOW Sans", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { text-align: center; padding: 18px var(--pad) 14px; background: #fff; }
.site-header .logo { display: inline-block; }
.site-header .logo img { height: 46px; width: auto; margin: 0 auto; }
.site-nav { margin-top: 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.site-nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-bottom-color: #000; }

/* ---------- Mobile menu ---------- */
.site-header { position: relative; }
.menu-btn, .menu-close { display: none; background: none; border: 0; padding: 10px; cursor: pointer; width: 44px; height: 44px; }
.menu-btn span, .menu-close span { display: block; width: 24px; height: 1.5px; background: #000; margin: 6px auto; transition: transform .2s; }
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; align-items: center; justify-content: center; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; font-size: 26px; }
.mobile-menu nav a { text-decoration: none; }
.mobile-menu nav a.active { border-bottom: 1px solid #000; }
.menu-close { display: block; position: absolute; top: 18px; right: 4vw; }
.menu-close span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-close span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font); font-size: 13px; line-height: 1;
  padding: 11px 14px; border: 2px solid currentColor; background: transparent;
  color: inherit; text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: #000; color: #fff; border-color: #000; }
.on-dark .btn:hover { background: #fff; color: #000; border-color: #fff; }
.text-link { font-size: 12px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Home: cover-story heroes ---------- */
.hero {
  position: relative; min-height: 85vh; color: #fff; overflow: hidden;
  display: flex; align-items: flex-start; background: #1a1a1a;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--overlay, .15); }
.hero .hero-text { position: relative; z-index: 1; max-width: 760px; padding: 13vh var(--pad) 10vh; }
.hero .label { font-size: 11px; letter-spacing: .02em; margin: 0 0 22px; text-transform: uppercase; }
.hero h2 { font-size: clamp(38px, 4.6vw, 68px); margin: 0 0 26px; }
.hero .deck { font-size: clamp(15px, 1.25vw, 18px); font-weight: 700; line-height: 1.7; margin: 0 0 28px; }
.hero.dark { background: #2b2b2b; }
.hero.black .deck { font-weight: 400; }
.hero.black { background: #000; }

/* ---------- Home: featured grid ---------- */
.featured { padding: 50px var(--pad) 60px; }
.section-label { font-size: 11px; text-transform: uppercase; margin: 0 0 30px; }
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 50px 3.6%; }
.card a { text-decoration: none; }
.card .thumb { aspect-ratio: 5 / 4; overflow: hidden; background: #eee; margin-bottom: 14px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card a:hover .thumb img { opacity: .85; }
.card h3 { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0; margin: 0 0 8px; }
.card .date { font-size: 12px; color: var(--grey); margin: 0 0 8px; }
.card .excerpt { font-size: 13px; line-height: 1.55; margin: 0; }
.card .excerpt p { margin: 0; }

/* ---------- Home: current issue ---------- */
.issue { text-align: center; padding: 40px var(--pad) 50px; }
.issue h2 { font-size: 18px; margin-bottom: 60px; }
.issue img { width: 250px; margin: 0 auto 70px; box-shadow: 0 1px 0 rgba(0,0,0,.05); }

/* ---------- Newsletter + footer ---------- */
.site-footer { text-align: center; padding: 0 var(--pad) 40px; }
.site-footer .rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 50px; }
.newsletter h2 { font-size: 13px; font-weight: 400; margin-bottom: 26px; letter-spacing: 0; }
.newsletter form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] {
  font-family: var(--font); font-size: 13px; width: 262px; max-width: 100%;
  padding: 15px 22px; border: 1px solid #e3e3e3; border-radius: 0; background: #fff; color: #000;
}
.newsletter .btn { padding: 15px 24px; }
.newsletter .hp { display: none; }
.newsletter .note { font-size: 12px; color: var(--grey); margin-top: 12px; min-height: 1em; }
.footer-meta { margin-top: 60px; font-size: 12px; }
.footer-meta .copy { font-weight: 700; margin: 0 0 14px; }
.footer-links { margin: 0 0 22px; }
.footer-links a { margin: 0 6px; }
.social { display: flex; justify-content: center; gap: 12px; }
.social a { display: inline-flex; width: 18px; height: 18px; }
.social svg { width: 100%; height: 100%; fill: #000; }

/* ---------- Archive list ---------- */
.archive-list { padding: 40px var(--pad) 20px; max-width: 1400px; margin: 0 auto; }
.archive-item { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4.5%; margin-bottom: 70px; align-items: start; }
.archive-item .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.archive-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-item .meta { font-size: 11px; text-transform: uppercase; margin: 6px 0 16px; }
.archive-item h2 { font-size: clamp(24px, 2.6vw, 38px); margin: 0 0 18px; }
.archive-item h2 a { text-decoration: none; }
.archive-item .excerpt { font-size: 12px; margin: 0 0 14px; }
.archive-item .excerpt p { margin: 0; }
.pager { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0 60px; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article { max-width: 1040px; margin: 0 auto; padding: 60px var(--pad) 40px; }
.article .meta { font-size: 11px; text-transform: uppercase; margin: 0 0 24px; }
.article .meta span + span { margin-left: 10px; text-transform: none; }
.article h1 { font-size: clamp(34px, 3.9vw, 56px); margin: 0 0 34px; }
.article .divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.content .text-block p { margin: 0 0 1em; white-space: pre-wrap; }
.content .text-block p.spacer { margin: 0; min-height: 1em; }
.content .text-block h3, .content .text-block h4 { margin: 1.2em 0 .6em; font-size: 18px; }
.content .small { font-size: 12px; line-height: 1.7; }
.content .small + .small { margin-top: -0.5em; }
.content .large { font-size: 18px; }
.content .center { text-align: center; }
.content a { text-decoration: underline; }
.content .text-block { margin: 18px 0; }

.figures { display: flex; flex-wrap: wrap; gap: 0 4%; }
.content figure { margin: 18px 0; flex: 0 0 100%; }
.content figure.half { flex: 0 0 48%; }
.content figure img { width: 100%; height: auto; background: #f1f1f1; min-height: 120px; }
.content figure img.loaded { min-height: 0; background: none; }
.content figcaption { font-size: 12px; margin-top: 10px; line-height: 1.6; }
.content figcaption p { margin: 0 0 .6em; white-space: pre-wrap; }
.content .video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; }
.content .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article .tags { font-size: 11px; text-transform: uppercase; margin: 40px 0 0; }
.article .tags a { text-decoration: none; margin-right: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 50px var(--pad) 60px; }
.post-nav a { text-decoration: none; font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); display: flex; align-items: center; gap: 14px; }
.post-nav .next { margin-left: auto; text-align: right; }
.post-nav svg { width: 10px; height: 16px; flex: none; }

/* ---------- Plain pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 80px var(--pad) 80px; font-size: 12px; line-height: 1.7; }
.page h1 { font-size: 30px; text-align: center; margin: 0 0 30px; }
.page.legal { max-width: 900px; font-size: 13px; }
.page.legal h1 { text-align: left; }
.page .text-block p { margin: 0 0 1em; white-space: pre-wrap; }
.page.contact { text-align: center; font-size: 12px; }
.page.contact .text-block p { margin: 0; }
.page.contact .person { margin-bottom: 14px; }
.page.contact strong a, .page.contact a { text-decoration: underline; }

.stockists { text-align: center; max-width: 760px; margin: 0 auto; padding: 80px var(--pad) 60px; font-size: 12px; }
.stockists h1 { font-size: 30px; padding-bottom: 26px; border-bottom: 1px solid #000; margin-bottom: 34px; }
.stockists h2 { font-size: 30px; text-decoration: underline; margin: 40px 0 30px; }
.stockists h3 { font-size: 13px; margin: 26px 0 18px; }
.stockists p { margin: 0 0 14px; }
.stockists p.store { font-weight: 700; font-size: 11px; margin-top: 4px; }

/* ---------- Shop / past issues ---------- */
.shop { padding: 60px var(--pad) 40px; max-width: 1400px; margin: 0 auto; }
.shop h1 { font-size: 30px; text-align: center; margin: 0 0 14px; }
.shop .intro { text-align: center; font-size: 13px; margin: 0 0 50px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 5%; }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.product .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 13px; }
.product .name { font-weight: 700; }
.product .status { font-size: 12px; }

.notfound { text-align: center; padding: 120px var(--pad); }
.notfound h1 { font-size: 40px; margin-bottom: 20px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --pad: 6vw; }
  .site-header { padding: 16px var(--pad); }
  .site-header .logo img { height: 36px; }
  .site-header .site-nav { display: none; }
  .menu-btn { display: block; position: absolute; right: calc(var(--pad) - 10px); top: 50%; transform: translateY(-50%); }
  .hero { min-height: 70vh; }
  .hero .hero-text { padding-top: 9vh; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 6%; }
  .archive-item { grid-template-columns: 1fr; margin-bottom: 50px; }
  .archive-item .meta { margin-top: 16px; }
  .content figure.half { flex: 0 0 100%; }
  .shop-grid { grid-template-columns: 1fr; }
  .post-nav a { font-size: 16px; }
  .page, .stockists { padding-top: 50px; }
}
