/* Anping Mesh — static site stylesheet */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex';
  src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #EFF0EC;
  --paper-2: #F9FAF6;
  --ink: #171A1B;
  --soft: #55605F;
  --line: #C6CBC7;
  --accent: #A4481F;
  --accent-dark: #7A3315;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, .num {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6.2vw, 3.8rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); line-height: 1.12; }
h3 { font-size: clamp(1.02rem, 1.8vw, 1.22rem); font-weight: 700; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.band { background: var(--accent); color: #F7F2EC; padding: 48px 0; }

.lede { color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.6; max-width: 54ch; }
.small { font-size: 13px; color: var(--soft); }
.eyebrow { font-size: 13px; color: var(--soft); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; }
.brand svg { width: 20px; height: 20px; flex: none; }
.nav { margin-left: auto; display: none; gap: 24px; font-size: 14px; color: var(--soft); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.bar > .head-cta { display: none; }

.menu { margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 40px; padding: 0 14px;
  display: flex; align-items: center; font-size: 14px;
  border: 1px solid var(--line); background: var(--paper-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--paper-2); border: 1px solid var(--line); padding: 6px; display: none;
}
.menu[open] .menu-panel { display: block; }
.menu-panel a { display: block; padding: 12px; font-size: 15px; }
.menu-panel a:hover { background: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper-2);
  border: 1px solid var(--ink); font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-light { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); }
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.link-plain { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-plain:hover { text-decoration-color: var(--accent); color: var(--accent-dark); }

/* ---------- home hero ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 30px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.hero-media { aspect-ratio: 1 / 1; overflow: hidden; background: #dcdcd6; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.specstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.specstrip .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
}
.specstrip .cell { background: var(--paper); padding: 16px 14px; }
.specstrip .k { font-size: 12px; color: var(--soft); }
.specstrip .v { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 17px; margin-top: 2px; }

/* ---------- product grid ---------- */
.pgrid { display: grid; gap: 30px; }
.pcard { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.pcard .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #dcdcd6; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard h3 a:hover { color: var(--accent-dark); }
.pcard .specs-mini { display: grid; gap: 1px; font-size: 13px; color: var(--soft); }

/* ---------- product page ---------- */
.prod-hero { padding: 34px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--soft); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-dark); }
.prod-grid { display: grid; gap: 30px; }
.facts { margin-top: 26px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts .k { color: var(--soft); }

.spec-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14.5px; }
.spec-table col:first-child { width: 38%; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--soft); padding-right: 18px; }

.prose p { margin-bottom: 16px; max-width: 72ch; font-size: 16.5px; line-height: 1.7; }
.prose h3 { margin: 28px 0 10px; }
.body-section + .body-section { margin-top: 34px; }
.body-section h3 { margin-bottom: 12px; }

.apps { border-top: 1px solid var(--line); }
.apps li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 15.5px;
}
details.faq summary::after { content: '+'; font-family: 'Archivo', sans-serif; color: var(--accent); font-size: 18px; }
details.faq[open] summary::after { content: '–'; }
details.faq p { padding: 0 0 18px; color: var(--soft); max-width: 72ch; }

.related { display: grid; gap: 24px; margin-top: 24px; }

/* ---------- article ---------- */
.article-head { padding: 42px 0 26px; border-bottom: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--soft); margin-bottom: 16px; }
.article-body { max-width: 72ch; padding: 32px 0 0; }
.article-body h2 { margin: 38px 0 12px; font-size: clamp(1.22rem, 2.6vw, 1.55rem); }
.article-body p { font-size: 17px; line-height: 1.72; margin-bottom: 18px; }
.article-body ul { border-top: 1px solid var(--line); margin-bottom: 20px; }
.article-body li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.article-body .formula {
  background: var(--paper-2); padding: 16px 18px; margin-bottom: 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px;
}
.article-body .note { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--soft); font-size: 15px; margin: 26px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 22px; table-layout: fixed; }
.data-table th, .data-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.data-table th { font-weight: 600; color: var(--soft); font-size: 13px; }

/* ---------- process / lists ---------- */
.steps { border-top: 1px solid var(--line); }
.step { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.step .num { font-size: 13px; color: var(--accent); letter-spacing: .02em; }
.step h3 { font-size: 1rem; }
.step p { font-size: 14.5px; color: var(--soft); max-width: 60ch; }

.docs { border-top: 1px solid var(--line); }
.docs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.docs.one { display: block; }
.docs .t { font-weight: 600; font-size: 15px; }
.docs .d { color: var(--soft); font-size: 14px; }

.checks { display: grid; gap: 20px; }
.check h3 { font-size: 1rem; margin-bottom: 6px; }
.check p { font-size: 14.5px; color: var(--soft); max-width: 46ch; }

.rcard { border-top: 1px solid var(--line); padding-top: 14px; display: block; }
.rcard .meta { margin-bottom: 8px; }
.rcard h3 { font-size: 1.08rem; }
.rcard p { color: var(--soft); font-size: 14.5px; margin-top: 8px; }
.rcard:hover h3 { color: var(--accent-dark); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 24px; }
.foot-grid { display: grid; gap: 30px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.foot .brand { display: flex; }
.foot a { display: block; padding: 6px 0; font-size: 14px; }
.foot a:hover { color: var(--accent-dark); }
.foot-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; color: var(--soft); }

/* ---------- contact form ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 12px; font-size: 16px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 0;
  font-family: inherit;
}
.field textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--soft); }

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-tall img { aspect-ratio: 4 / 5; }
.figure-wide img { aspect-ratio: 16 / 9; }
.figcap { font-size: 12.5px; color: var(--soft); padding-top: 8px; }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .specstrip .grid { grid-template-columns: repeat(4, 1fr); }
  .apps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
}
@media (min-width: 720px) {
  .bar, .wrap { padding: 0 32px; }
  .nav { display: flex; }
  .menu { display: none; }
  .bar > .head-cta { display: inline-flex; }
  .section { padding: 70px 0; }
  .hero { padding: 62px 0 0; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); }
  .step { border-bottom: none; border-left: 1px solid var(--line); padding: 0 16px 0 16px; }
  .step:first-child { border-left: none; padding-left: 0; }
  .docs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
  .related { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .rcard-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
}
@media (min-width: 900px) {
  .prod-grid { grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: start; }
  .grid-two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
}
@media (min-width: 980px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 44px 40px; }
  .rcard-list { grid-template-columns: repeat(2, 1fr); }
}
