/* Layout: sluice-line page on a rustic plank wall. Text sits on the wood;
   anything to read closely is mounted on a brushed-steel plate with corner
   screws, like the Mining Company plaque. Single look in every theme.
   Type is Lato (Black for headlines). */
:root {
  --bg: #56402f;          /* wood fallback under the plank texture */
  --ink: #f6eee3;         /* text on wood */
  --muted: #e0d0bc;
  --line: rgba(246, 238, 227, 0.22);
  --surface: #ffffff;
  --steel-1: #f3f4f5;
  --steel-2: #d1d5d8;
  --plate-ink: #1c1c1e;   /* engraving black */
  --plate-muted: #4c5156;
  --plate-line: #c2c6c9;
  --wood: #6e4c33;
  --wood-dark: #2f2218;
  --wood-soft: rgba(0, 0, 0, 0.24);
  --amber: #f2c47c;       /* pine highlight */
  --btn-fg: #1c1c1e;
  --water: #f6eee3;
  --water-soft: rgba(0, 0, 0, 0.22);
  --gem: #3fc4ce;         /* Deep Sea Gypsy turquoise */
  --citrine: #f2c47c;
  --ok: #1d7a55;
  --warn: #f2b45c;
  --bad: #b0302a;
  --display: "Lato", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--bg) url("../img/wood.jpg") repeat center top / 900px auto;
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-within {
  outline: 3px solid var(--citrine); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.015em; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: #2a1e15;
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: linear-gradient(rgba(20,14,10,.55), rgba(20,14,10,.55)), var(--bg) url("../img/wood.jpg") repeat center top / 900px auto;
  border-bottom: 4px solid var(--wood-dark); box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 104px; width: auto; border-radius: 3px; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
@media (max-width: 720px) { .logo img { height: 68px; } }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--amber); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); padding: 14px 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: #1c1c1e; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: #1c1c1e; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-block: 48px 56px; }
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 4.6rem); overflow-wrap: break-word; }
.hero .wrap > * { min-width: 0; }
.hero h1 .row2 { color: var(--amber); display: block; }
.hero h1 .row2 { font-size: 0.55em; line-height: 1.15; margin-top: 10px; letter-spacing: -0.005em; }
.hero .tagline { font: 900 clamp(1.4rem, 3vw, 2rem)/1.15 var(--display); margin-top: 18px; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.where-tag {
  margin-top: 28px; display: inline-flex; gap: 10px; align-items: baseline;
  font-size: 0.95rem; color: var(--ink); background: var(--wood-soft);
  padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--wood);
}
.where-tag { flex-wrap: wrap; max-width: 100%; row-gap: 2px; }
.hero-photo { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero-photo img { border-radius: 14px; aspect-ratio: 464 / 640; object-fit: cover; object-position: 50% 40%; width: 100%; max-width: 100%; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-photo .hero-split img { width: 100%; height: 100%; aspect-ratio: 232 / 360; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.hero-split .hs-a { object-position: 70% 50%; border-radius: 14px 0 0 14px; }
.hero-split .hs-b { object-position: 50% 50%; border-radius: 0 14px 14px 0; }
@media (max-width: 820px) { .hero-photo .hero-split img { aspect-ratio: 4 / 5; } }
.find-card {
  position: static; margin-top: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 0.9rem; max-width: none;
}
.find-card b { display: block; font-size: 1rem; }
.find-card .gem-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.find-card .gem-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px 40px; gap: 28px; }
  .hero-photo { justify-self: start; max-width: 100%; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* Sections as sluice boxes */
.box { padding-block: 64px; border-top: 6px solid var(--wood-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); position: relative; }
.box::before { content: none; }
.box.alt { background: rgba(0, 0, 0, 0.16); }
.box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.box .intro { color: var(--muted); max-width: 60ch; margin-top: 12px; font-size: 1.08rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 20px 0 0; min-width: 0; }
.steps li::before {
  content: counter(s); font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--amber);
  display: block; border-bottom: 3px dashed color-mix(in srgb, var(--amber) 60%, transparent); padding-bottom: 8px; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin-top: 6px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Buckets */
.buckets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; align-items: end; }
.bucket { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; height: 100%; }
.bucket svg { display: block; height: auto; margin: 0 auto 6px; color: var(--water); }
.bucket h3 { font-size: 1.05rem; }
.bucket p { color: var(--muted); font-size: 0.97rem; }
.from-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; }
.from-price b { font: 900 2.4rem/1 var(--body); color: var(--amber); font-variant-numeric: tabular-nums; }
.from-price span { color: var(--muted); }
.disclaimer { margin-top: 10px; font-size: 0.9rem; font-style: italic; color: var(--muted); }
@media (max-width: 820px) { .buckets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .buckets { grid-template-columns: 1fr; } }

/* Photo wall */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 720px) { .wall { grid-template-columns: 1fr 1fr; } }
.wall figure:not(.slot) { margin: 0; background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.wall figure:not(.slot) img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wall figcaption { font-size: 0.9rem; padding: 8px 12px; color: var(--muted); }
.wall-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; padding: 22px 26px; }
.wall-cta p { flex: 1 1 260px; min-width: 0; }
.wall-empty { margin-top: 28px; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.sample-note { font-size: 0.85rem; color: var(--amber); margin-top: 12px; }

/* Photo slots: fixed shape, clean crop. Empty slots show what shot goes there. */
.slot {
  margin: 0; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 12px;
  background: rgba(0,0,0,.28); border: 1.5px dashed rgba(246,238,227,.35);
  color: var(--muted); font-size: 0.9rem; font-weight: 700;
}
.slot.sq { aspect-ratio: 1 / 1; }
.slot span { display: grid; gap: 4px; max-width: 24ch; }
.slot small { font-weight: 400; font-size: 0.78rem; opacity: 0.8; }
.slot.filled { padding: 0; border: 0; background: none; }
.slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.steps .slot { margin-bottom: 14px; }
.bucket .slot { margin-bottom: 6px; }

/* Deep Sea Gypsy */
.neighbor .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.neighbor .slot { max-width: 440px; }
.neighbor .copy { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 820px) { .neighbor .wrap { grid-template-columns: 1fr; } }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 32px; }
.visit-grid > div { min-width: 0; }
.visit-grid h3 { margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 0; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-foot { border-top: 6px solid var(--wood-dark); background: rgba(0,0,0,.3); padding-block: 36px; font-size: 0.92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot a { color: var(--muted); }

/* Forms (share + admin) */
.narrow { max-width: 620px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.field small { color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 80px; resize: vertical; }
.drop {
  display: grid; place-items: center; text-align: center; gap: 8px; cursor: pointer;
  border: 2px dashed var(--plate-muted); background: rgba(255,255,255,.55); border-radius: 12px; padding: 28px 16px;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .big { font-weight: 800; font-size: 1.1rem; }
.preview { border-radius: 10px; max-height: 360px; width: auto; margin: 0 auto; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #6e4c33; }
.release-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; max-height: 220px; overflow: auto; font-size: 0.92rem; color: var(--muted); }
.release-box h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.release-box p + p { margin-top: 8px; }
.msg { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.msg.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.msg.err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.demo-banner { background: #1f1610; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.demo-banner .wrap { padding-block: 8px; }

details.mini summary { cursor: pointer; font-weight: 700; color: var(--plate-ink); text-decoration: underline; text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Steel plates: brushed metal with four corner screws, like the plaque */
.plate, .find-card, .bucket, .visit-grid > div, .faq, .wall-cta, .gem, .form, .legal, .item, #login-form {
  --ink: var(--plate-ink); --muted: var(--plate-muted); --line: var(--plate-line);
  --surface: #ffffff; --btn-fg: #f6eee3; --amber: #6e4c33;
  color: var(--plate-ink); text-shadow: none;
  border: 1px solid #9ea3a7; border-radius: var(--radius);
  background:
    radial-gradient(circle, #fff 0 1.2px, #a2a7ab 1.8px 3px, #5c6165 3.4px, transparent 3.9px) left 5px top 5px / 9px 9px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, #a2a7ab 1.8px 3px, #5c6165 3.4px, transparent 3.9px) right 5px top 5px / 9px 9px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, #a2a7ab 1.8px 3px, #5c6165 3.4px, transparent 3.9px) left 5px bottom 5px / 9px 9px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, #a2a7ab 1.8px 3px, #5c6165 3.4px, transparent 3.9px) right 5px bottom 5px / 9px 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, var(--steel-1), var(--steel-2));
  box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.28);
}
.plate h1, .plate h2, .legal h1, .legal h2, .form h2 { text-shadow: none; }
.bucket, .visit-grid > div, .gem { padding: 20px; }
.faq { padding: 6px 24px; }
.form { padding: 24px 22px; }
.legal { margin-block: 32px 64px; padding: 28px clamp(18px, 4vw, 44px) 40px !important; max-width: 860px; }
.find-card { padding: 14px 16px; }
.where-tag { background: rgba(0,0,0,.3); border-left-color: var(--amber); color: var(--ink); }

/* Groups */
.groups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.groups-grid > * { min-width: 0; }
.group-types { display: grid; gap: 14px; }
.group-types .plate { padding: 18px 22px; }
.group-types h3 { margin-bottom: 6px; }
.group-types p { color: var(--plate-muted); }
.group-form { margin-top: 0; }
.group-form h3 { font-size: 1.25rem; }
.row2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select { font: inherit; appearance: auto; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .groups-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2col { grid-template-columns: 1fr; } }

.travel-count { margin-top: 14px; font-weight: 900; font-size: 1.15rem; color: var(--amber); }
.travel-count span { font-weight: 700; color: var(--ink); }

/* Quick facts */
.facts-band .wrap { padding-block: 0 48px; }
.facts { margin: 0; padding: 18px 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 20px; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #6e4c33; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 980px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Gems */
.finds-banner { margin: 28px 0 0; }
.finds-banner img { width: 100%; height: auto; aspect-ratio: 1448 / 634; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.finds-banner figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.gems { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.gem { padding: 10px 10px 12px; display: grid; gap: 8px; min-width: 0; }
.gem img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gem b { font-size: 0.98rem; text-align: center; }
@media (max-width: 980px) { .gems { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) { .gems { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gems { grid-template-columns: 1fr 1fr; } }
.gem b small { font-weight: 700; color: var(--plate-muted); }
.many-more { margin-top: 18px; font-weight: 700; font-size: 1.05rem; }
.credit-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* Legal text pages */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { max-width: 68ch; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
