/* PackNPD V4 — Editorial Quarterly */
:root {
  --paper: #F4F1EB;
  --paper-2: #ECE8E0;
  --sweep: #DEDBD5;
  --ink: #141311;
  --ink-2: #3D3A35;
  --line: rgba(20, 19, 17, 0.16);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
.head-left { font-size: 13px; color: var(--ink-2); }
.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.head-nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 14px; }
.head-nav a { text-decoration: none; }
.head-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.head-nav a.cta { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h1, h2 { text-wrap: balance; }
:lang(zh) h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.25; letter-spacing: 0; }
:lang(zh) h2 { letter-spacing: 0; }
.label { font-size: 13px; color: var(--ink-2); margin: 0 0 18px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; margin: 0; }
.muted { color: var(--ink-2); }

.link {
  display: inline-block;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.3s var(--ease);
}
.link:hover { opacity: 0.6; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: clamp(80px, 11vw, 150px) 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lede { justify-self: end; }

/* Cover */
.cover { padding-top: clamp(32px, 5vw, 64px); }
.cover-figure { margin: 0; }
.cover-figure img { width: 100%; aspect-ratio: 16 / 7.4; max-height: 56vh; object-fit: cover; object-position: center 55%; background: var(--sweep); }
.caption { font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.cover-text { margin-top: clamp(32px, 4vw, 56px); }
.cover-text h1 { max-width: 17ch; }
.cover-side { display: grid; grid-template-columns: minmax(0, 34em) auto; justify-content: space-between; align-items: end; gap: 32px; margin-top: 28px; }
.cover-side .lede { font-size: 17px; }
.cover-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Catalogue grid */
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 28px); }
.item { margin: 0; }
.item .frame { overflow: hidden; background: var(--sweep); }
.item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.1s var(--ease); }
.item:hover img { transform: scale(1.03); }
.item figcaption { display: grid; grid-template-columns: 34px 1fr; padding-top: 14px; font-size: 15px; }
.item .num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item .name { font-weight: 500; }
.item .desc { grid-column: 2; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.grid-note { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; }

/* Box */
.split { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sweep); }
.rows { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 11em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows strong { font-weight: 500; }
.rows span { color: var(--ink-2); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.step .n { font-family: var(--serif); font-size: 64px; line-height: 1; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 30em; }
.wide-figure { margin: 0; }
.wide-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 62%; background: var(--sweep); }

/* Pricing */
.notice { border: 1px solid var(--line); padding: 16px 20px; font-size: 15px; margin-bottom: 40px; background: var(--paper-2); }
.plans { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 1px solid var(--ink); }
.plan { padding: 36px 40px 40px 0; display: flex; flex-direction: column; }
.plan + .plan { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.plan .pname { font-size: 15px; font-weight: 500; }
.plan .price { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; margin: 22px 0 6px; }
.plan .per { font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan .btn { align-self: flex-start; }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form-msg { font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.4rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-family: var(--sans); font-size: 22px; font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* Issue page features */
.feature { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 140px); }
.feature.flip { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.feature.flip .feature-img { order: 2; }
.feature-img { background: var(--sweep); }
.feature-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.feature .num { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.feature h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin-bottom: 20px; }
.feature dl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.feature dt { font-size: 13px; color: var(--ink-2); padding-top: 14px; }
.feature dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Prose (legal, suppliers) */
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 28px; }
.prose h2 { font-size: 1.75rem; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul { padding-left: 1.1em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 44px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.foot-grid .wordmark { font-size: 26px; }
.foot-grid p { color: var(--ink-2); margin: 12px 0 0; max-width: 28em; }
.foot-col a { display: block; text-decoration: none; padding: 3px 0; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-col .h { color: var(--ink); margin-bottom: 8px; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .item img { transition: none; }
}

@media (max-width: 960px) {
  .site-head .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .head-left { display: none; }
  .wordmark { font-size: 26px; }
  .head-nav { gap: 18px; }
  .head-nav a:not(.cta) { display: none; }
  .cover-side, .sec-head, .split, .form-grid, .feature, .feature.flip, .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .sec-head .lede { justify-self: start; }
  .feature.flip .feature-img { order: 0; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 32px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  form { grid-template-columns: 1fr; }
  .cover-figure img { aspect-ratio: 4 / 3; }
  .wide-figure img { aspect-ratio: 4 / 3; }
  .catalogue { gap: 24px 14px; }
  .item figcaption { grid-template-columns: 26px 1fr; font-size: 14px; }
}
