:root {
  --bg: #3a2418; --bg-deep: #2a190f; --text: #eadcc2; --gold: #e2c46a;
  --muted: #b9a07a; --line: #57392a; --field: #2f1d13; --field-line: #7a5a44;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px; --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { color: var(--gold); font-weight: normal; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.4rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--gold); color: var(--bg-deep); padding: 8px 12px; }

/* header */
.site-header { background: var(--bg-deep); }
.site-header .inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 44px; width: auto; }
.nav-desktop { display: none; }
.nav-desktop a, .nav-mobile a { color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font: 600 .85rem/1 var(--sans); }
.nav-desktop a[aria-current], .nav-mobile a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav-mobile summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 14px; color: var(--gold); font: 600 .9rem var(--sans); border: 1px solid var(--line); border-radius: 4px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: var(--gutter); top: calc(100% - 4px); z-index: 5; min-width: 220px; padding: 8px 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px; }
.nav-mobile nav a { display: block; padding: 15px 18px; }
@media (min-width: 640px) {
  .logo img { height: 56px; }
  .nav-desktop { display: flex; gap: 28px; }
  .nav-mobile { display: none; }
}

/* page */
main { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 48px; }
.page-text { max-width: 42rem; }
.page-home .page-text { max-width: none; text-align: center; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 16px; }
.section-head h2 { margin: 0; }
.empty { color: var(--muted); }

/* home: logo hero on phones, banners on desktop only */
.hero-logo { display: block; width: min(100%, 420px); height: auto; margin: 8px auto 24px; }
.banner { display: none; }
.page-home .site-header .logo { visibility: hidden; }
@media (min-width: 640px) {
  .hero-logo { display: none; }
  .banner { display: block; margin: 0 0 24px; }
  .banner img { width: 100%; border-radius: 4px; }
  .page-home .site-header .logo { visibility: visible; }
}

/* grid and cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { display: block; color: var(--text); text-decoration: none; }
.card img, .card .photo-missing { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.card-title { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.3; }
.price { color: var(--gold); font-size: 1.05rem; }
.card .price { display: block; }
.badge { display: inline-block; margin: 4px 0 0; padding: 5px 8px; border-radius: 3px; color: var(--bg-deep); background: var(--muted); font: 700 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.photo-missing { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--bg-deep); color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; font-size: .95rem; text-align: center; }

/* listing */
.crumb { margin-bottom: 12px; color: var(--muted); font: .85rem var(--sans); }
.crumb a { color: var(--muted); }
.listing { display: grid; gap: 20px; }
@media (min-width: 800px) {
  .listing { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
  .listing .crumb { grid-column: 1 / -1; margin: 0; }
}
.photo-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px; }
.photo-track::-webkit-scrollbar { display: none; }
.photo-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.photo-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.thumbs { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 0; }
.thumbs a { display: block; width: 56px; border: 2px solid var(--line); border-radius: 3px; overflow: hidden; }
.thumbs a[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 639px) {
  .listing-photos { margin: 0 calc(-1 * var(--gutter)); }
  .photo-track, .photo-track img { border-radius: 0; }
  .thumbs { padding: 0 var(--gutter); }
}
.listing-info .price { margin: 0 0 12px; font-size: 1.5rem; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 16px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

/* enquiry */
.enquiry { margin-top: 20px; padding: 18px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 6px; }
.enquiry h2 { margin-bottom: .25em; }
.enquiry-form label { display: block; margin: 14px 0 6px; color: var(--text); font: 600 .95rem var(--sans); }
.enquiry-form input, .enquiry-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: var(--field); border: 1px solid var(--field-line); border-radius: 4px; font: 1rem var(--sans); }
.enquiry-form textarea { min-height: 140px; resize: vertical; }
.cf-turnstile { margin-top: 16px; min-height: 65px; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--gold); font: .95rem var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; padding: 0 24px; color: var(--bg-deep); background: var(--gold); border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; font: 700 1rem var(--sans); }
.button[disabled] { opacity: .6; cursor: wait; }
@media (min-width: 640px) { .button { width: auto; } }

/* about */
.poem { margin: 32px 0; padding: 20px; background: var(--bg-deep); border-left: 3px solid var(--gold); }
.poem p { margin: 0 0 1em; }
.poem .author { color: var(--muted); font-style: italic; }

/* footer */
.site-footer { background: var(--bg-deep); color: var(--muted); font: .9rem var(--sans); }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
