/* Jodie tries not to fall - styles */
:root {
  --ink: #14110F;
  --surface: #231C17;
  --line: #3A2E26;
  --bone: #F2EAE0;
  --muted: #D8CDBF;
  --muted-2: #B8AC9E;
  --rust: #E5533A;
  --tan: #C69A64;

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-btn: 4px;
  --pad: 64px;
  --max: 1440px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; line-height: 1; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
.on-tan :focus-visible, .section--tan :focus-visible { outline-color: var(--ink); }
.rust-bg :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--rust); color: var(--ink); padding: 12px 18px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--surface { background: var(--surface); }
.section--tan { background: var(--tan); color: var(--ink); }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: 16px; color: var(--rust); margin: 0 0 16px;
}
.section--tan .eyebrow { color: var(--ink); }
.h2 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: .02em; margin-bottom: 24px; }
.lead { color: var(--muted); max-width: 60ch; }
.section--tan .lead { color: var(--ink); }
.accent { color: var(--rust); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  border-radius: var(--radius-btn); border: 2px solid var(--rust);
  background: var(--rust); color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--bone); border-color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 15, .96); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); min-height: 44px; }
.brand svg { width: 34px; height: 34px; color: var(--rust); flex: none; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--bone); }
.nav a.is-active { color: var(--bone); border-bottom-color: var(--rust); }
.lang { display: flex; align-items: center; font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; font-size: 16px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--bone); }
.lang [aria-current] { color: var(--rust); }
.lang i { font-style: normal; color: var(--line); }
.menu-btn {
  display: none; margin-left: auto; min-width: 48px; min-height: 48px;
  background: transparent; color: var(--bone); border: 2px solid var(--line); border-radius: var(--radius-btn); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* Photo placeholders */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--muted-2); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #2B221C 14px 28px);
  color: var(--muted); padding: 16px; width: 100%;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 15px;
}
.ph--45 { aspect-ratio: 4 / 5; }
.ph--sq { aspect-ratio: 1; }
.ph--land { aspect-ratio: 4 / 3; }
.section--tan .ph { border-color: var(--ink); background: repeating-linear-gradient(135deg, #D0A972 0 14px, #C69A64 14px 28px); color: var(--ink); }
.photo img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.4vw, 124px); letter-spacing: .01em; margin-bottom: 28px; }
.hero h1 span { display: block; color: var(--rust); }
.hero .bio { font-size: 22px; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Rust strip */
.strip { background: var(--rust); color: var(--ink); padding-block: 18px; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; }
.strip li { display: flex; align-items: center; gap: 36px; font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .14em; }
.strip li + li::before { content: ""; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); margin-left: -36px; margin-right: 28px; display: none; }
.strip li:not(:last-child)::after { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px;
  border: 2px solid var(--rust); color: var(--bone);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 16px;
}
.placeholder-note { color: var(--muted-2); font-style: italic; }

/* Kaprun cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card { background: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--rust); border-radius: var(--radius); padding: 32px; }
.card svg { width: 32px; height: 32px; color: var(--rust); margin-bottom: 20px; }
.card h3 { font-size: 32px; letter-spacing: .04em; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card .big { font-family: var(--font-head); font-weight: 800; font-size: 44px; color: var(--rust); text-transform: uppercase; line-height: 1; margin-bottom: 12px; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 28px;
  text-decoration: none; color: var(--bone); overflow: hidden;
  background: linear-gradient(to top, rgba(20,17,15,.85), rgba(20,17,15,.35)),
              repeating-linear-gradient(135deg, var(--surface) 0 14px, #2B221C 14px 28px);
  border: 2px dashed var(--muted-2); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--rust); border-style: solid; }
.tile .num { font-family: var(--font-head); font-weight: 700; letter-spacing: .18em; color: var(--rust); font-size: 16px; margin-bottom: 6px; }
.tile h3 { font-size: 44px; letter-spacing: .03em; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.tile[style*="background-image"] { background-size: cover; background-position: center; }

/* Riding */
.riding-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.section--tan .h2 { color: var(--ink); }
.section--tan .btn { margin-top: 12px; }

/* Quotes */
.quote { text-align: center; max-width: 1000px; margin: 0 auto; }
.quote svg { width: 40px; height: 40px; color: var(--rust); margin: 0 auto 28px; }
.quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: .01em; }
.quote figcaption { margin-top: 28px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }

/* Feed */
.feed { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.feed a { display: block; text-decoration: none; }
.feed .ph { transition: border-color .15s; }
.feed a:hover .ph { border-color: var(--rust); border-style: solid; }

/* Footer */
.cta-final { background: var(--rust); color: var(--ink); text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta-final h2 { font-size: clamp(52px, 9vw, 130px); letter-spacing: .01em; margin-bottom: 32px; }
.cta-final .btn { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.cta-final .btn:hover { background: transparent; color: var(--ink); }
.cta-final :focus-visible { outline-color: var(--ink); }
.site-footer { padding-block: 32px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Phone / tablet */
@media (max-width: 900px) {
  :root { --pad: 24px; --header-h: 68px; }
  body { font-size: 17px; }
  .hero .wrap, .about-grid, .riding-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .photo-col, .about-grid .photo-col { order: -1; }
  .riding-grid .photo-col { order: -1; }
  .hero .photo-col { max-width: 420px; }
  .about-grid .photo-col { max-width: 420px; }
  .hero h1 { font-size: clamp(52px, 14vw, 64px); }
  .cards { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 200px; padding: 20px; }
  .tile h3 { font-size: 34px; }
  .feed { grid-template-columns: repeat(3, 1fr); }
  .strip li { font-size: 18px; gap: 20px; }
  .strip ul { gap: 6px 20px; }

  .menu-btn { display: inline-flex; }
  .site-header .btn--sm { display: none; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; z-index: 40;
    background: var(--ink); padding: 32px var(--pad); overflow-y: auto;
    display: none; flex-direction: column;
  }
  .js .nav.is-open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { width: 100%; min-height: 60px; font-size: 32px; border-bottom: 1px solid var(--line); }
  .js .nav a.is-active { border-bottom-color: var(--rust); }
  .nav .nav-cta { display: flex; margin-top: 28px; }
  .nav .nav-cta .btn { width: 100%; }
  .no-js-wrap { flex-wrap: wrap; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .nav { width: 100%; margin: 0; order: 5; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  .nav .nav-cta { display: none; }
  .js .nav .nav-cta { display: flex; }
  .lang { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .brand span { font-size: 18px; }
  .brand svg { width: 28px; height: 28px; }
  .cta-row .btn { width: 100%; }
  .topics { gap: 12px; }
  .tile h3 { font-size: 28px; }
  .tile p { display: none; }
  .feed { gap: 8px; }
}
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

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

/* Photos set from the Control Plane */
img[data-image] { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.feed img[data-image] { transition: opacity .15s; }
.feed a:hover img[data-image] { opacity: .85; }

.photo--45 img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 40%; }

/* Header fits between 901px and 1240px */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header .wrap { gap: 16px; }
  .site-header .btn--sm { display: none; }
  .nav a { padding: 0 8px; font-size: 16px; letter-spacing: .08em; }
  .brand span { font-size: 20px; }
}

/* Phone header: keep brand, language and menu button on one row */
@media (max-width: 900px) {
  .site-header .wrap { gap: 10px; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .lang { margin-left: auto; flex: none; }
  .lang a, .lang span { min-width: 40px; }
  .menu-btn { flex: none; }
}
@media (max-width: 480px) {
  .brand span { font-size: 16px; letter-spacing: .04em; }
  .brand svg { width: 26px; height: 26px; }
  .brand { gap: 8px; }
}

/* Phones: show only the butterfly mark (the link keeps its aria-label) */
@media (max-width: 600px) {
  .brand span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .brand svg { width: 34px; height: 34px; }
}

.feed img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.feed a:hover img { border-color: var(--rust); }
