/* ==========================================================================
   okyproxd — site stylesheet
   Design notes: flat surfaces, hairline rules, graph-paper texture, mono
   labels. No blur, no translucency, no gradient glass. Workshop, not lounge.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --paper:      #f3f0ea;
  --panel:      #fbfaf7;
  --panel-2:    #eceae3;
  --ink:        #17160f;
  --ink-2:      #4c483f;
  --ink-3:      #837d70;
  --line:       #dcd6c9;
  --line-2:     #c6bfae;
  --accent:     #d24a12;
  --accent-ink: #ffffff;
  --phos:       #2f7350;
  --grid:       rgba(23, 22, 15, 0.05);
  --shade:      rgba(23, 22, 15, 0.06);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Roboto Mono", "Liberation Mono", monospace;

  --r:   3px;
  --nav: 60px;
  --wrap: 1160px;
}

:root[data-theme="dark"] {
  --paper:      #121210;
  --panel:      #1a1a17;
  --panel-2:    #23231e;
  --ink:        #ece7db;
  --ink-2:      #b0aa9c;
  --ink-3:      #837d70;
  --line:       #2e2e28;
  --line-2:     #45443b;
  --accent:     #ff6b2c;
  --accent-ink: #1a1005;
  --phos:       #5fd39b;
  --grid:       rgba(236, 231, 219, 0.045);
  --shade:      rgba(0, 0, 0, 0.3);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* --- utility -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.center { text-align: center; }
.hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.grid-paper {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center top;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
  flex: none;
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s, transform .14s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.sm { padding: 8px 13px; font-size: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.link-arrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color .14s, color .14s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  -webkit-user-select: none;
  flex: none;
  cursor: pointer;
}
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.brand b {
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .cursor {
  width: 7px; height: 15px;
  background: var(--accent);
  display: inline-block;
  margin-left: 1px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .brand .cursor { animation: none } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  flex: 1 1 auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: var(--r);
  transition: color .14s, background .14s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 4px;
}
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .14s, color .14s, border-color .14s;
  position: relative;
}
.icon-btn:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.yt-btn { width: auto; padding: 0 9px; gap: 7px; }
.yt-btn svg { width: 26px; height: 19px; }
.yt-btn span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cart-count {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}
.cart-count[data-n="0"] { display: none; }

.menu-btn { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--panel); }
.mobile-menu a {
  display: block;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .yt-btn span { display: none; }
  .yt-btn { width: 36px; padding: 0; }
}

/* --- ticker --------------------------------------------------------------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
  height: 30px;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 30px;
  animation: slide 44s linear infinite;
  padding-left: 40px;
}
.ticker-track span::before { content: "▚ "; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none } }

/* --- hero ----------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 84px 0 76px;
  position: relative;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: 17.5px; color: var(--ink-2); max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
}
.hero-card .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-card .bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phos); flex: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--phos) 22%, transparent);
}
.term {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  padding: 16px 14px;
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink-2);
}
.term .k { color: var(--accent); }
.term .g { color: var(--phos); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 52px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
}

/* --- stats ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--mono); font-size: 26px; letter-spacing: -0.02em; }
.stat span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* --- sections ------------------------------------------------------------- */
.section { padding: 74px 0; border-bottom: 1px solid var(--line); }
.section.tight { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 58ch; }

/* --- discipline cards ----------------------------------------------------- */
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.disc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 26px 24px 24px;
  transition: border-color .16s, transform .16s;
}
.disc:hover { border-color: var(--accent); transform: translateY(-2px); }
.disc .no {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 16px;
}
.disc h3 { font-size: 20px; margin-bottom: 10px; }
.disc p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 2px; padding: 3px 7px;
}
@media (max-width: 860px) { .disciplines { grid-template-columns: 1fr; } }

/* --- product grid --------------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .prod-grid, .prod-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prod-grid, .prod-grid.four { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .16s, transform .16s;
  position: relative;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-art {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
}
.card-art svg { width: 100%; height: 100%; color: var(--ink-2); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 10px;
}
.card h3 { font-size: 17px; margin-bottom: 7px; cursor: pointer; }
.card h3:hover { color: var(--accent); }
.card .desc { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
}
.price { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 2px;
  background: var(--ink); color: var(--paper);
}
.badge.hot { background: var(--accent); color: var(--accent-ink); }
.badge.out { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }

/* --- filters -------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; cursor: pointer; color: var(--ink-2);
  transition: all .14s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 8px 11px; font-size: 14px;
  font-family: var(--mono); outline: none; transition: border-color .14s;
}
.field:focus { border-color: var(--accent); }
select.field { cursor: pointer; }

/* --- project rows --------------------------------------------------------- */
.log { border-top: 1px solid var(--line); }
.log-row {
  display: grid;
  grid-template-columns: 130px 1fr 160px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .14s, padding-left .16s;
}
.log-row:hover { background: var(--panel); padding-left: 16px; }
.log-date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.log-row h3 { font-size: 19px; margin-bottom: 6px; }
.log-row p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.log-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); text-align: right;
}
@media (max-width: 780px) {
  .log-row { grid-template-columns: 1fr; gap: 8px; }
  .log-meta { text-align: left; }
}

/* --- youtube band --------------------------------------------------------- */
.yt-band {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.yt-band h2 { font-size: 26px; margin-bottom: 8px; }
.yt-band p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.yt-mark { width: 62px; height: 44px; flex: none; }

/* --- modal ---------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 11, 8, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.overlay[hidden] { display: none; }
.modal {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  width: 100%; max-width: 900px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--r);
  cursor: pointer; font-size: 17px; line-height: 1;
  color: var(--ink-2);
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-art {
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 34px; min-height: 300px;
}
.pd-art svg { width: 100%; height: auto; color: var(--ink-2); }
.pd-art img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 30px 30px 32px; }
.pd-body h2 { font-size: 27px; margin-bottom: 10px; }
.pd-price { font-family: var(--mono); font-size: 24px; margin: 16px 0 18px; }
.specs { border-top: 1px solid var(--line); margin: 20px 0 0; }
.specs div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px;
}
.specs dt { color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.specs dd { margin: 0; text-align: right; }
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; }
  .pd-art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .pd-body { padding: 24px 20px; }
}

.prose { font-size: 15.5px; color: var(--ink-2); }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 10px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* --- cart drawer ---------------------------------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 220;
  width: 100%; max-width: 420px;
  background: var(--paper);
  border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s ease;
}
.drawer.open { transform: none; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(12, 11, 8, 0.45);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; }

.line-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-art {
  width: 62px; height: 62px; flex: none;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--panel-2); padding: 7px;
  display: flex; align-items: center; justify-content: center;
}
.line-art svg { width: 100%; height: 100%; color: var(--ink-2); }
.line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-info h4 { font-size: 14.5px; margin-bottom: 4px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty button {
  width: 26px; height: 26px; border: 0; background: transparent;
  cursor: pointer; color: var(--ink-2); font-family: var(--mono); line-height: 1;
}
.qty button:hover { color: var(--accent); }
.qty span { font-family: var(--mono); font-size: 12px; min-width: 24px; text-align: center; }
.totals { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; margin-bottom: 6px; }
.totals.big { font-size: 18px; font-weight: 600; margin: 12px 0 16px; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); font-family: var(--mono); font-size: 13px; }

/* --- forms ---------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label.lbl {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px;
}
.inp {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 11px 13px;
  font-size: 15px;
  outline: none;
  transition: border-color .14s;
  font-family: var(--font);
}
textarea.inp { font-family: var(--font); resize: vertical; min-height: 110px; line-height: 1.6; }
.inp:focus { border-color: var(--accent); }
.note {
  border-left: 2px solid var(--accent);
  background: var(--panel);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 0 var(--r) var(--r) 0;
}

/* --- split layout --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* --- checkout ------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.summary { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 22px; position: sticky; top: 84px; }

/* --- footer --------------------------------------------------------------- */
.site-footer { padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.foot-grid h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 500;
}
.foot-grid a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 4px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* --- toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 12px 18px; border-radius: var(--r);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- inline edit mode ----------------------------------------------------- */
body.editing { padding-bottom: 92px; }
body.editing [contenteditable] {
  outline: 1px dashed var(--line-2);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
  transition: outline-color .12s, background .12s;
}
body.editing [contenteditable]:hover {
  outline-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
body.editing [contenteditable]:focus {
  outline: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
body.editing a { cursor: text; }

.edit-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  max-width: calc(100vw - 32px);
  flex-wrap: wrap;
}
.edit-bar .edit-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3); flex: none;
}
.edit-bar.on .edit-dot { background: var(--accent); }
.edit-bar .edit-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.edit-bar.on .edit-label::after { content: " · unsaved"; color: var(--accent); }
.edit-bar .edit-page { padding: 7px 9px; font-size: 12px; }

/* --- page head ------------------------------------------------------------ */
.page-head { padding: 60px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.032em; margin-bottom: 14px; }
.page-head p { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 0; }
