:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #5d5d5d;
  --rule: #dddad3;
  --accent: #c8102e;
  --accent-dark: #9e0c24;
  --measure: 80%;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.7 Georgia, "Times New Roman", serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 1rem;
  text-align: center;
}
.site-header img { width: 26rem; max-width: 100%; display: inline-block; }
.site-header a { display: inline-block; }

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 4.5vw, 2.15rem); margin: 0 0 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.links { list-style: none; padding: 0; margin: 0; }
.links li { margin: 0 0 1.25rem; }
.links a { font-weight: bold; }

.signoff { font-style: italic; }

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 0.85rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

/* ---------- For-sale page ---------- */


.notice {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice p { margin: 0.35rem 0; }

.item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}
.item h2 { margin-top: 0; }
.price { color: var(--accent); white-space: nowrap; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery.wide-shots { grid-template-columns: 1fr; }
.gallery a {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.gallery img { display: block; width: 100%; }
.gallery:not(.wide-shots) img { aspect-ratio: 1; object-fit: contain; }

.list-group h3 { margin-top: 1.75rem; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.gear-list li span:first-child { flex: 1; }
.gear-list .price { font-weight: bold; }

/* Simple lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
  z-index: 10;
}
.lightbox img { max-height: 92vh; max-width: 96vw; width: auto; }
[hidden] { display: none !important; }

/* Use the full width (minus padding) on phones and small tablets */
@media (max-width: 760px) {
  :root { --measure: 100%; }
}
