:root {
  --paper: #f4f3ef;
  --paper-2: #e6e4de;
  --card: #fbfbfa;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6d6d6d;
  --line: rgba(17, 17, 17, 0.12);
  --cinnabar: #d6ff3c;
  --moss: #111111;
  --gold: #d6ff3c;
  --sans: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  --serif: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  --kai: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  --latin: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}
img { border: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::placeholder { color: #9a9a9a; }
::selection { background: #d6ff3c; color: #111; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 10px; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.kicker {
  font-family: var(--sans);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 38em;
}
.hint { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 6px 0; }
.prose { font-size: 16px; line-height: 1.95; color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(14px);
  border-top: 2px solid #111;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #111;
  color: #f4f3ef;
  border: none;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 16px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.04em;
  max-width: none;
}
.brand-text small {
  font-family: var(--sans);
  letter-spacing: 0.2em;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.cats {
  display: flex;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}
.cats a.on, .cats a:hover { color: var(--ink); }
.cats a.on { box-shadow: inset 0 -1px 0 var(--cinnabar); }
.search input {
  width: 148px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  transition: width 0.25s ease;
}
.search input:focus { outline: none; border-bottom-color: var(--ink); width: 200px; }
.manage {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
}
.manage:hover { color: var(--ink); }

.announce {
  background: var(--moss);
  color: #f3eee6;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  padding: 8px 16px;
}

.flash {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  margin: 14px 0;
  background: #e4efe6;
  color: #24312c;
}
.flash.is-error { background: #f8e6e1; color: #7a2c22; }
.flash a { color: inherit; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 18px;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.hero-copy .textlink { display: inline-block; margin-top: 18px; }
.hero-frame {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  margin: 0 8px 18px 0;
}
.mount {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: -14px;
  bottom: -14px;
  left: 18px;
  background: #111;
}
.hero-frame .media {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin-left: auto;
  max-height: 575px;
}
.hero-cap {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-top: 12px;
}
.hero-cap strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.hero-cap small, .hero-cap em {
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 13px;
}

.page-head { padding: 46px 0 6px; }
.page-head h1 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.045em;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.12;
  margin: 8px 0 0;
  text-wrap: balance;
}

.section-head { margin: 28px 0 8px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 18px 0 18px;
  color: var(--muted);
}
.toolbar p { margin: 0; }
.toolbar select {
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.sort { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 22px;
  align-items: start;
}
.card {
  color: inherit;
  text-decoration: none;
  display: block;
  min-width: 0;
}
.media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e6dfd4;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.card:hover .media img { transform: scale(1.045); }
.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(156, 59, 46, 0.16), transparent 46%),
    #e5d9c8;
  font-family: var(--serif);
  font-size: 72px;
}
.chip, .counter {
  position: absolute;
  background: rgba(250, 247, 242, 0.92);
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.chip { left: 12px; bottom: 12px; }
.counter { right: 12px; bottom: 12px; }
.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 4px 8px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-top: 12px;
}
.card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover h3 { color: #111; }
.price {
  color: var(--muted);
  flex: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.card.is-lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
}
.card.is-lead .card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 0 6px 8px 0;
}
.card.is-lead h3 {
  font-size: clamp(28px, 3vw, 44px);
  -webkit-line-clamp: 3;
}
.card-summary {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more {
  grid-column: 1 / -1;
  margin-top: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: #111;
}

.pager {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 42px 0 10px;
}
.pager a { color: var(--ink); letter-spacing: 0.12em; }

.empty { padding: 64px 0 24px; max-width: 560px; }
.empty-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.8;
  color: rgba(26, 23, 20, 0.12);
  display: block;
}
.empty h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin: 8px 0;
}

.pdp {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: start;
  padding-top: 28px;
}
.pdp-info { position: sticky; top: 96px; }
.crumb { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; margin: 0 0 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.owner-edit {
  float: right;
  color: #111;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-decoration: none;
}
.pdp h1 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 8px 0 10px;
  text-wrap: balance;
}
.pdp-price {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pdp-price small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0;
}
.specs {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  margin: 22px 0;
}
.specs dt { color: var(--muted); margin: 0; }
.specs dd { margin: 0; }
.gallery-main {
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 74px;
  height: 92px;
  padding: 0;
  border: 1px solid transparent;
  background: #e6dfd4;
  cursor: pointer;
}
.thumb.on { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share, .inquiry { margin-top: 28px; }
.share .btn { margin-top: 12px; }
.link-box {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 14px;
  margin-top: 10px;
}
.inquiry { padding-top: 18px; border-top: 1px solid var(--line); }
.contact-line { font-family: var(--serif); font-size: 24px; margin: 8px 0 0; }
.walk {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.walk a { text-decoration: none; color: inherit; max-width: 46%; }
.walk small { display: block; color: var(--muted); letter-spacing: 0.14em; font-size: 12px; }
.walk .next { text-align: right; margin-left: auto; }
.related { padding: 28px 0 10px; }
.related h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  margin: 48px 0 18px;
}

.about { background: var(--moss); color: #f4efe8; margin-top: 72px; }
.about-inner {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about .kicker { color: #d6ff3c; }
.about h2 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.28;
  margin: 12px 0 0;
}
.about .prose { color: rgba(244, 239, 232, 0.86); }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 48px; }
.about + .footer { margin-top: 0; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 24px; }
.brand-name { font-family: var(--sans); font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.footer a { color: var(--ink); }
.footer-end { text-align: right; }
.footer p { margin: 8px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 14px;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { background: #d6ff3c; border-color: #d6ff3c; color: #111; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.textlink { color: var(--ink); letter-spacing: 0.14em; font-size: 14px; text-decoration: none; }
.textlink:hover { color: #111; }

#lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
}
#lightbox img { max-width: 92vw; max-height: 84vh; display: block; }
#lightbox::backdrop { background: rgba(26, 23, 20, 0.86); }
#lightbox form { margin: 10px 0 0; text-align: right; }
#lightbox .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }

@media (max-width: 980px) {
  .bar { grid-template-columns: 1fr auto auto; min-width: 0; }
  .cats { grid-column: 1 / -1; min-width: 0; padding-bottom: 10px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-frame .media, .hero-cap { margin-left: 0; }
  .about-inner, .footer-grid, .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .footer-end { text-align: left; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card h3 { font-size: 18px; }
  .card.is-lead {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search input, .search input:focus { width: 108px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
  .card.is-lead h3 { font-size: 28px; }
  .specs { grid-template-columns: 72px 1fr; }
  .walk a { max-width: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .footer, .about, .manage, .pager, .walk, .btn, .mount { display: none !important; }
  body { background: #fff; }
}
