/*
 * Maskia shared structure.
 *
 * Every Maskia page — the studio page and each product page — uses this file
 * for layout, rhythm, type scale and component shape. Colour is deliberately
 * NOT set here: each page supplies its own palette by overriding the custom
 * properties below, so the products stay visually distinct while the
 * structure and feel stay identical.
 */

:root {
  color-scheme: light;

  /* Palette contract — override per page. */
  --bg: #f5f2ec;
  --surface: #fffdf8;
  --surface-soft: #efece4;
  --ink: #14202f;
  --muted: #57616f;
  --line: #cfc8ba;
  --line-strong: #14202f;
  --accent: #14202f;
  --accent-dark: #000000;
  --accent-soft: rgba(20, 32, 47, .08);
  --on-accent: #ffffff;

  /* Structure — shared by every page. */
  --shadow: 8px 8px 0 rgba(20, 32, 47, .12);
  --shadow-sm: 3px 3px 0 rgba(20, 32, 47, .10);
  --radius: 6px;
  --radius-lg: 10px;
  --page: 1180px;
  --gutter: 40px;
  --sans: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: min(var(--page), calc(100% - var(--gutter))); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── Navigation ─────────────────────────────────────────────────────── */

.site-nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-nav-inner {
  width: min(var(--page), calc(100% - var(--gutter)));
  min-height: 68px; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
/* One mark in the header on every page: Maskia. Products are identified in the
   body of their own page, never in the global navigation. */
.site-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.site-logo svg, .site-logo img { height: 19px; width: auto; }
.site-nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav-links a:hover { color: var(--ink); }
/* A button in the nav is a button first — outrank the muted link colour above. */
.site-nav-links a.btn { color: var(--ink); font-weight: 700; padding: 9px 17px; }
.site-nav-links a.btn-primary { color: var(--on-accent); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(20, 32, 47, .14); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(20, 32, 47, .14); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-quiet { border-color: var(--line); box-shadow: none; }
.btn-quiet:hover { box-shadow: none; border-color: var(--line-strong); }

/* ── Section rhythm ─────────────────────────────────────────────────── */

.section { padding: 82px 0; }
.section-tight { padding: 58px 0; }
.eyebrow {
  margin: 0 0 10px; font-size: .78rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
}
.section-heading { max-width: 62ch; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-heading p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ── Product lockup ─────────────────────────────────────────────────── */

/* A product identifies itself here, in the body of its own page. */
.product-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.product-lockup img { width: 34px; height: 34px; border-radius: 7px; }
.product-lockup .name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.product-lockup .kind { color: var(--muted); font-size: .95rem; }
.product-lockup .kind::before { content: "·"; margin: 0 9px 0 3px; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { padding: 88px 0 74px; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 46ch; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-lead { margin: 20px 0 0; font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }

/* ── Cards ──────────────────────────────────────────────────────────── */

.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card-index { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .13em; color: var(--accent); margin-bottom: 12px; }

/* ── Accent band ────────────────────────────────────────────────────── */

.band { background: var(--surface-soft); border-block: 1px solid var(--line); padding: 72px 0; }
.band-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.band p { color: var(--muted); font-size: 1.04rem; }

/* ── Lists ──────────────────────────────────────────────────────────── */

.tick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.tick-list li { position: relative; padding-left: 27px; color: var(--muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--accent);
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
td { text-align: center; width: 132px; color: var(--muted); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq-grid { display: grid; gap: 12px; max-width: 820px; }
details {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm);
}
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 700; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--surface-soft); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--ink); }
.footer-legal { margin: 18px 0 0; color: var(--muted); font-size: .85rem; max-width: 70ch; }

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal { padding: 62px 0 84px; max-width: 76ch; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.16rem; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal-meta { color: var(--muted); font-size: .92rem; }
.legal-card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); margin: 22px 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  :root { --gutter: 32px; }
  .section { padding: 60px 0; }
  .hero { padding: 62px 0 54px; }
  .band { padding: 56px 0; }
  .band-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-nav-links { gap: 18px; }
  .site-nav-links a { font-size: .9rem; }
  .site-footer-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-nav-links .nav-hide-sm { display: none; }
  .hero-actions .btn { width: 100%; }
}

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