/* HexTrip.app site styles. Colours match the generator: marble terrain, chalky blue water,
   peanut frames and the red route as the only strong accent. */
:root {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --ink: #1e1f22;
  --muted: #6b6e75;
  --line: #e3e1db;
  --accent: #b8322a;
  --accent-dark: #962620;
  --soft: #f7e4e1;
  --marble: #ecebe7;
  --water: #a7c4d6;
  --frame: #dcc6a4;
  --display: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.lead { font-size: 19px; color: #3c3e43; max-width: 640px; }

/* ---------- header ---------- */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .01em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: #cfccc4; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.site-nav .btn { padding: 8px 14px; font-size: 14px; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 760px; }
.hero-figure { margin: 36px 0 0; }
.hero-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.note { font-size: 14px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 18px; margin: 0 0 1em; }
.card li { margin-bottom: 4px; }

.step-num {
  width: 44px; height: 38px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px;
}

/* filament swatches */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.swatch { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.swatch .chip { height: 72px; }
.swatch div.txt { padding: 14px 16px; }
.swatch strong { display: block; font-size: 15px; }
.swatch span { font-size: 13px; color: var(--muted); }

.privacy-band { background: var(--panel); }
.privacy-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

/* gallery placeholders, replaced by photos of real prints */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.gallery figure { margin: 0; }
.photo-slot {
  aspect-ratio: 4 / 3; border: 1.5px dashed #c9c5bb; border-radius: 12px; background: var(--marble);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 14px; padding: 16px;
}
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- prose pages (guide, about, privacy) ---------- */
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }
.prose { padding: 24px 0 72px; }
.prose .wrap { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 32px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 8px 0 8px; }
.toc strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #faf9f6; }
tr:last-child td { border-bottom: 0; }
.callout { background: var(--soft); border-left: 3px solid var(--accent); padding: 14px 18px; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: #ebe9e3; padding: 1px 5px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { background: #1e1f22; color: #c9cacd; font-size: 14px; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* ---------- 404 ---------- */
.lost { padding: 96px 0; text-align: center; }
.lost img { width: 120px; margin: 0 auto 24px; }
.lost .actions { justify-content: center; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-band .wrap { grid-template-columns: 1fr; gap: 24px; }
  .site-nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
}
