:root {
  --ink: #111111;
  --paper: #f4f4f1;
  --white: #ffffff;
  --blue: #2a45ff;
  --line: #111111;
  --muted: #5c5c5c;
  --wa: #128c4a;
  --sans: "Manrope", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: stretch;
  background: var(--ink);
  color: white;
  border-bottom: 7px solid var(--blue);
}
.logo {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.nav-links { display: flex; }
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a.on { background: var(--blue); }
.bar-end { display: flex; }
.bag, .book, .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 16px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.book { background: var(--blue); }
.bag b { margin-left: 8px; }
.menu-btn { display: none; width: 64px; flex-direction: column; gap: 6px; }
.menu-btn span { width: 18px; height: 2px; background: white; }

.blast { padding: 28px 0 8px; }
.blast .where {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.blast h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.2rem, 12vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 12ch;
  margin: 8px 0 18px;
}
.blast p { max-width: 46ch; color: var(--muted); margin-bottom: 18px; }
.bleed { margin: 0; }
.bleed img { width: 100%; height: min(72vh, 640px); object-fit: cover; }
.bleed figcaption {
  display: inline-block;
  margin-top: -42px;
  margin-left: 16px;
  position: relative;
  background: var(--blue);
  color: white;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.grid3 article { padding: 22px; border-left: 2px solid var(--ink); }
.grid3 article:first-child { border-left: 0; }
.grid3 b { font-family: var(--display); font-size: 2.4rem; letter-spacing: 0.04em; }
.grid3 h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0; }
.grid3 p { color: var(--muted); }

.section { padding: 48px 0; }
.h1, .page-intro h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }

.row {
  display: grid;
  grid-template-columns: 48px 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
}
.idx { font-family: var(--display); font-size: 1.6rem; }
.row img { width: 120px; height: 84px; object-fit: cover; filter: grayscale(0.2); }
.row h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; }
.row p { color: var(--muted); font-size: 0.95rem; }
.row-end { display: grid; justify-items: end; gap: 6px; }
.row-end b { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.03em; }
.row-end small { color: var(--muted); }

.btn, .book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-line, .btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-wa { background: var(--wa); }
.btn-solid { background: var(--blue); }
.btn-lime, .btn-gold { background: var(--ink); }
.btn-wine { background: var(--blue); }
.btn-block { width: 100%; }

.work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}
.work img { width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--ink); cursor: zoom-in; }

.quote {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
}
.quote p { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.house { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.house img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.house div { padding: 36px; border-left: 2px solid var(--ink); }

.book-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 2px solid var(--ink); margin-bottom: 48px; }
.panel { padding: 16px; }
.panel + .panel { border-left: 2px solid var(--ink); }
.looks { display: grid; }
.look {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  border-top: 1px solid var(--ink);
}
.look img { width: 48px; height: 48px; object-fit: cover; }
.look.on { background: #e7ebff; outline: 2px solid var(--blue); padding-inline: 6px; }
.look strong { display: block; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.look small, .look b { font-size: 12px; color: var(--blue); }
.hours-pill { display: block; margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.side-total { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--display); font-size: 1.6rem; }

.steps { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.steps button {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps button.on { background: var(--ink); color: white; }
.steps button:disabled { opacity: 0.35; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-h strong { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; }
.cal-h button { width: 36px; height: 36px; border: 2px solid var(--ink); font-size: 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-grid .dow { font-size: 11px; font-weight: 800; padding: 6px 0; }
.cal-grid button { height: 40px; border: 1px solid #ddd; }
.cal-grid button.on { background: var(--blue); color: white; border-color: var(--blue); }
.cal-grid button.off { text-decoration: line-through; }
.cal-grid button:disabled { opacity: 0.3; cursor: not-allowed; }
.slot-hint { margin: 12px 0 8px; color: var(--muted); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slots button { min-height: 38px; padding: 0 10px; border: 2px solid var(--ink); font-size: 13px; font-weight: 700; }
.slots button.on { background: var(--ink); color: white; }
.step-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.form, .finder label, .block-form label, .track-link { display: grid; gap: 6px; }
.form { gap: 12px; }
.form label, .finder label, .block-form label, .track-link {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.form input, .form textarea, .form select, .finder input, .block-form input, .track-link input, #done-msg, #desk-pin {
  border: 2px solid var(--ink);
  background: white;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.sum dt { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.code-xl { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.04em; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0; }
.rail li { border-top: 4px solid #ddd; padding-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rail li.done { border-top-color: var(--ink); }
.rail li.now { border-top-color: var(--blue); color: var(--blue); }
.finder, .block-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.finder label, .block-form label { flex: 1; min-width: 180px; }
.block-form { margin-top: 22px; }
.desk-list { display: grid; gap: 12px; margin-top: 16px; }
.desk-row { border-top: 2px solid var(--ink); padding-top: 10px; display: grid; gap: 8px; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.err { display: none; color: var(--blue); font-weight: 700; margin-top: 8px; }
.err.on { display: block; }

.foot { background: var(--ink); color: white; padding: 18px 0; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.foot strong { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.06em; }
.foot-links { display: flex; gap: 16px; }
.foot a { color: white; text-decoration: underline; text-underline-offset: 3px; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 50; opacity: 0; pointer-events: none; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(380px, 100%);
  background: white; z-index: 60; border-left: 7px solid var(--blue);
  transform: translateX(104%); display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-h, .drawer-f { padding: 16px; border-bottom: 2px solid var(--ink); }
.drawer-f { border-bottom: 0; border-top: 2px solid var(--ink); }
.drawer-h { display: flex; justify-content: space-between; align-items: center; }
.drawer-h h2 { font-family: var(--display); font-size: 2rem; letter-spacing: 0.05em; }
.drawer-b { padding: 8px 16px; overflow: auto; flex: 1; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.item img { width: 64px; height: 64px; object-fit: cover; }
.item .rm { color: var(--blue); font-size: 12px; font-weight: 800; }
.total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 1.6rem; margin-bottom: 10px; }
.empty { color: var(--muted); padding: 16px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 70; display: none; place-items: center; padding: 20px; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; }

@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .logo { border-right: 0; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: var(--blue);
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); min-height: 52px; }
  .bar-end .book { display: none; }
  .menu-btn { display: flex; }
  .grid3, .house, .book-layout, .quote, .work { grid-template-columns: 1fr; }
  .house div { border-left: 0; border-top: 2px solid var(--ink); }
  .panel + .panel { border-left: 0; border-top: 2px solid var(--ink); }
  .row { grid-template-columns: 36px 1fr; }
  .row img { display: none; }
  .row-end { grid-column: 2; justify-items: start; }
  .work img { height: 200px; }
  .rail { grid-template-columns: 1fr 1fr; }
}
