/* Wild Roads Australia. One stylesheet, phone first.
   Brand lives in the custom properties below: swap colours, fonts or the wordmark here, not in the pages.
   Palette is taken from the channel badges (eucalyptus ring, navy type, bone band, red-ochre ranges). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f1ea;          /* bone */
  --paper: #fffdf8;
  --sand: #ebe2d3;
  --ink: #1c2230;
  --muted: #5b6270;
  --navy: #13284b;
  --euc: #4b7055;         /* eucalyptus */
  --euc-soft: #dfe7dc;
  --ochre: #b5532a;       /* red ochre */
  --ochre-dark: #8e3c1b;
  --line: rgba(28, 34, 48, .14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --max: 1180px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ochre-dark); text-underline-offset: .18em; }
a:hover { color: var(--ochre); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Small letter-spaced caps, like the reference site's tagline */
.kicker, .tagline {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--euc);
  margin: 0 0 .9em;
}
.tagline { color: var(--ink); font-size: clamp(.78rem, 2.2vw, 1.05rem); letter-spacing: .12em; }
.tagline span { color: var(--ochre); padding: 0 .35em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; padding: 10px 0; }
.wordmark { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); line-height: 1; }
.wordmark span { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.wordmark small { font-weight: 700; font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ochre); margin-top: 4px; padding-left: .42em; }
.wordmark:hover { color: var(--navy); }
.wordmark.light { color: var(--bg); }
.actions { grid-column: 2; grid-row: 1; display: flex; gap: 10px; justify-self: end; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; padding: 0; }
.round svg { width: 20px; height: 20px; fill: currentColor; }
.round:hover { background: var(--ochre); color: #fff; }
.nav { grid-column: 1 / -1; grid-row: 2; display: none; flex-direction: column; padding: 6px 0 12px; }
.nav.open, .no-js .nav { display: flex; }
.site-header:has(.nav.open) { background: var(--bg); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.nav a { font-weight: 600; text-decoration: none; color: var(--ink); padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav a[aria-current="page"] { color: var(--ochre-dark); }
/* 900-1279px: wordmark centred on top, nav centred underneath. 1280px+: Eva-style single row, nav | wordmark | icons */
@media (min-width: 900px) {
  .bar { grid-template-columns: 1fr auto 1fr; padding: 14px 0 8px; row-gap: 8px; }
  .wordmark { grid-column: 2; justify-self: center; }
  .wordmark span { font-size: 1.75rem; }
  .actions { grid-column: 3; }
  .menu { display: none; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: row; justify-content: center; flex-wrap: nowrap; gap: 4px 24px; padding: 0; }
  .nav a { border: 0; padding: 4px 0; font-size: .98rem; border-bottom: 2px solid transparent; white-space: nowrap; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
}
@media (min-width: 1280px) {
  .bar { padding: 16px 0; }
  .nav { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 4px 22px; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(28px, 6vw, 64px) 0 0; }
.hero h1 { margin-bottom: .2em; }
.hero .motto { font-family: var(--font-display); font-size: clamp(1.25rem, 3.4vw, 1.75rem); color: var(--ochre-dark); margin: .4em auto 0; max-width: 28ch; line-height: 1.25; }
.hero-photo { position: relative; margin: clamp(24px, 4vw, 40px) 0 0; }
.hero-photo img { width: 100%; height: clamp(360px, 72vh, 760px); object-fit: cover; object-position: 62% 60%; }
/* soft curved edge into the page, like the reference site's illustrated hero */
.hero-photo::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: clamp(28px, 6vw, 80px); background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-photo figcaption { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vw, 92px); background: rgba(19, 40, 75, .78); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 99px; z-index: 1; }

/* Page hero (inner pages): photo band with title over a dark gradient */
.page-hero { position: relative; color: #fff; min-height: clamp(320px, 52vh, 560px); display: grid; align-items: end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 28, .78), rgba(10, 16, 28, .1) 60%); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; padding: 0 0 clamp(28px, 5vw, 56px); }
.page-hero h1 { color: #fff; margin-bottom: .15em; }
.page-hero .kicker { color: #f2c8a6; }
.page-hero p.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 40ch; margin: 0; }
.page-hero .credit { position: absolute; right: var(--gutter); top: 14px; z-index: 2; font-size: .75rem; background: rgba(0, 0, 0, .45); padding: 3px 9px; border-radius: 99px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 9vw, 104px) 0; }
.section.tight { padding-top: clamp(24px, 4vw, 40px); }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: #e9eef6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: #f2c8a6; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); }

.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 99px; border: 2px solid var(--ink); line-height: 1.2; }
.btn:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.light:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* Big quote, the reference site's "I tell stories for brave souls..." moment */
.quote { font-family: var(--font-display); font-size: clamp(1.6rem, 4.6vw, 2.7rem); line-height: 1.2; color: var(--navy); max-width: 24ch; margin: 0 auto .8em; text-align: center; }
.quote::before { content: "“"; display: block; font-size: 2.2em; line-height: .6; color: var(--ochre); }

/* Three ways in */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; background: var(--navy); }
@media (max-width: 759px) { .tile { aspect-ratio: 16 / 11; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 26, .82), rgba(8, 14, 26, 0) 58%); z-index: 1; }
.tile-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.tile-text h3 { color: #fff; font-size: 1.7rem; margin: 0 0 .2em; }
.tile-text p { margin: 0; font-size: .96rem; opacity: .92; }
.tile-text .more { color: #f2c8a6; display: inline-block; margin-top: 8px; font-size: .9rem; }
.tile:hover { color: #fff; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; padding: 0; margin: 34px 0 0; text-align: center; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ochre-dark); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Split: photo + text */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split-photo { border-radius: var(--radius); overflow: hidden; }
.split-caption { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cards (games, shops, channels) */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .badge-img { position: absolute; width: 30%; max-width: 120px; height: auto; right: 14px; bottom: 14px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { color: var(--muted); }
.card-body .btn-row { margin-top: auto; padding-top: 6px; }
.label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--euc-soft); color: var(--euc); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; align-self: flex-start; }
.label.soon { background: #f3e1d4; color: var(--ochre-dark); }

/* Videos */
.videos { display: grid; gap: 22px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .videos { grid-template-columns: repeat(3, 1fr); } .videos.four { grid-template-columns: repeat(4, 1fr); } }
.video { display: block; text-decoration: none; color: var(--ink); }
.video:hover { color: var(--ochre-dark); }
.thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video:hover .thumb img { transform: scale(1.04); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(181, 83, 42, .92); }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border: 11px solid transparent; border-left: 17px solid #fff; border-right: 0; }
.v-title { display: block; font-weight: 700; margin-top: 10px; line-height: 1.3; }
.v-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.section.dark .video { color: #fff; }
.section.dark .v-meta { color: #b9c4d6; }

/* Photo galleries */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 6px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 10, 18, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e9eef6; text-align: center; margin-top: 10px; font-size: .95rem; }
.lightbox .flickr-link { display: block; text-align: center; color: #f2c8a6; font-size: .85rem; margin-top: 4px; }
.lightbox .close { position: fixed; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Notes, facts and banners */
.note { background: var(--euc-soft); border-left: 4px solid var(--euc); padding: 14px 18px; border-radius: 10px; font-size: .95rem; }
.note.warn { background: #f6e6da; border-color: var(--ochre); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { min-width: 0; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0 0 4px; font-weight: 600; }
.banner { position: relative; overflow: hidden; }
.banner img { width: 100%; height: clamp(160px, 28vw, 340px); object-fit: cover; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.channel-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.channel { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 8px 20px 8px 8px; }
.channel img { width: 54px; height: 54px; border-radius: 50%; }
.channel strong { display: block; line-height: 1.2; }
.channel small { color: var(--muted); }
.section.dark .channel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.section.dark .channel small { color: #b9c4d6; }

/* ---------- Footer ---------- */
.site-footer { background: #121a29; color: #c3cbd8; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #8e9ab0; margin-bottom: 10px; }
.site-footer a:not(.wordmark) { display: block; color: #e9eef6; text-decoration: none; padding: 4px 0; }
.site-footer a:not(.wordmark):hover { color: #f2c8a6; }
.footer-about p { margin-top: 14px; max-width: 36ch; }
.footer-about .wordmark { align-items: flex-start; }
.footer-about .wordmark small { padding-left: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .82rem; color: #8e9ab0; }

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