/* Mahkyo — shared styles. No external dependencies; system font stack. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3a;
  --muted: #6b6a65;
  --rule: #e4e2dc;
  --rule-strong: #cfccc4;
  --accent: #b4561f;          /* used sparingly: marks and focus */
  --note-bg: #fff6e8;
  --note-ink: #6b4510;
  --note-rule: #ecd3a8;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1040px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: #111; color: #fff; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.wordmark {
  font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline;
}
.wordmark .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-left: 3px; display: inline-block; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 28px); font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }


/* Sections */
section { border-bottom: 1px solid var(--rule); }
.section-inner { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}

/* Hero */
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 10vw, 112px); line-height: 0.95; letter-spacing: -0.03em;
  margin: 0;
}
.hero .lede {
  font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.25;
  color: var(--ink); max-width: 22ch; margin: 28px 0 0;
}
.hero .sub { color: var(--ink-2); max-width: 52ch; margin: 18px 0 0; }

/* Two-column section layout */
.split { display: grid; grid-template-columns: 1fr; gap: 20px 64px; }
@media (min-width: 820px) { .split { grid-template-columns: 220px 1fr; } }
.split h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.015em; line-height: 1.15; margin: 0;
}

/* Product */
.product {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 6px;
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
@media (min-width: 720px) { .product { grid-template-columns: 1fr 1fr; } }
.product-media {
  background: #f1efe9; border-bottom: 1px solid var(--rule);
  min-height: 220px; display: grid; place-items: center; padding: 24px;
}
@media (min-width: 720px) { .product-media { border-bottom: 0; border-right: 1px solid var(--rule); } }
.product-body { padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.product-body h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -0.015em; margin: 0; }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px 12px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.product-body p { margin: 0; color: var(--ink-2); }
.facts { margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Prose */
.prose p { margin: 0 0 16px; max-width: 62ch; color: var(--ink-2); }
.prose p.large { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; color: var(--ink); }

/* Contact */
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 560px; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list .label { color: var(--muted); font-size: 15px; }
.contact-list a { font-weight: 500; }

/* Footer */
.site-footer { font-size: 14px; color: var(--muted); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer p { margin: 0 0 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-2); }

/* Policy page */
.doc { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 104px); }
.doc-inner { max-width: 720px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.pegboard { width: 100%; max-width: 360px; height: auto; display: block; }
