/* Kimusubi Aikido Melbourne — public pages (landing, privacy, not found).
   Look: mockup "B light" (2026-10-11). Provisional: the design will be revised.
   To restyle, change the tokens in :root first. The rules below use only the tokens. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;

  /* colour: white ground, logo navy for text and buttons, one accent */
  --surface: #FFFFFF;
  --line: #D3D9E4;             /* hairlines */
  --text: #0C1833;             /* logo navy. Text and the button */
  --text-2: #3C4862;           /* body text */
  --text-3: #5C6882;           /* footer */
  --accent: #2F7D1B;           /* focus ring */
  --on-light: #FFFFFF;         /* text on the navy button */
  --hero: #08080A;             /* behind the photo */
  --hero-text: #F4F5F7;
  --hero-text-2: #D5D8DF;
  --place: #FFFFFF;            /* place and time line under the big hero words: the text */
  --pin: #FF7700;              /* place and time line: the pin */
  --cal: #66FF00;              /* place and time line: the calendar */
  --hero-wash: rgba(44, 55, 63, 0.5);  /* even blue-grey wash over the whole photo */
  --dot: rgba(0, 0, 0, 0.25);  /* dot pattern over the photo: colour of each dot */
  --dot-gap: 4px;              /* dot pattern: distance between dots */
  --grid: rgba(10, 21, 49, 0.25);  /* grid over the dots: colour of each line (#0A1531) */
  --grid-gap: 124px;           /* grid: distance between lines. A multiple of --dot-gap, so every line runs along a row of dots */
  --grid-at: 1.5px;            /* grid: where the first line starts. The dots sit 2px in, so a 1px line from 1.5px has its middle on theirs */
  --hero-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 0, 0, 0.45);  /* keeps white text readable over the light parts of the photo */
  --hero-focus: 45% 50%;       /* which part of the photo stays in view when it is cropped */
  --hero-copy-down: 40px;      /* hero words sit this far below the middle on narrow screens, clear of the face in the photo */
  --intro-ease: cubic-bezier(0.4, 0, 0.2, 1);  /* opening motion of the photo and the hero words: starts and stops gently */

  /* type */
  --font-display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-body: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-logo: "Outfit", "Avenir Next", system-ui, sans-serif;   /* placeholder logo text. Quicksand is not served (Reserved Font Name) */
  --fs-tagline: 44px;
  --fs-h2: 30px;
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 14px;

  /* shape and space (4px base) */
  --radius: 3px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --gutter: 24px;              /* left and right edge of the page */
  --sec-pad: 56px;             /* above and below each section */
  --hero-min: min(160vw, 75svh);   /* height of the photo area: follows the width on phones (the two people are never cut), at most three quarters of the screen so the page below shows */
  --tap: 56px;                 /* height of the button */
}
@media (max-width: 440px) { :root { --gutter: 20px; } }
@media (max-resolution: 1.5dppx) { :root { --grid-at: 2px; } }   /* screens with one pixel per px cannot draw half a pixel: start on a whole one so the line stays sharp */
@media (min-width: 900px) {
  :root {
    --gutter: max(64px, calc(50vw - 576px));
    --fs-tagline: 76px; --fs-h2: 40px; --fs-lead: 26px; --fs-body: 19px;
    --sec-pad: 104px; --hero-min: max(640px, 56.25vw); --hero-copy-down: 0px;
  }
}
@media (prefers-contrast: more) { :root { --line: #8E99B0; --text-2: #1F2B47; --text-3: #3C4862; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- logo ---------- */
.logo { display: block; line-height: 0; }
.logo img { width: auto; height: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- landing: photo area ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; min-height: var(--hero-min); padding: 20px var(--gutter) var(--s7); overflow: hidden; background: var(--hero); color: var(--hero-text); text-shadow: var(--hero-text-shadow); }
/* The photo is its own layer, so it can fade in and pull back when the page opens. will-change keeps it on that layer before, during and after, so nothing is redrawn (and nudged) when the motion ends. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/hero.jpg") var(--hero-focus) / cover no-repeat; will-change: transform, opacity; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 var(--grid-at) / var(--grid-gap) var(--grid-gap),
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) var(--grid-at) 0 / var(--grid-gap) var(--grid-gap),
  radial-gradient(var(--dot) 0.4px, transparent 0.4px) 0 0 / var(--dot-gap) var(--dot-gap),
  var(--hero-wash); }
.hero-top { display: contents; }
.login { position: absolute; top: 20px; right: var(--gutter); z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--radius); color: var(--hero-text); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.login:hover, .login:focus-visible { background: rgba(255, 255, 255, 0.12); }
.hero-copy { position: relative; top: var(--hero-copy-down); margin: auto; padding-block: var(--s7); max-width: 48rem; text-align: center; }
.tagline { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-tagline); line-height: 1.04; letter-spacing: 0.03em; text-wrap: balance; }
.place { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); margin-top: var(--s4); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-body); line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--place); }
.place span { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.place svg { flex: none; width: 0.9em; height: 0.9em; fill: var(--pin); }
.place .when svg { fill: var(--cal); }
.place a { text-decoration: none; }
.hero-sub { margin-top: var(--s5); font-size: var(--fs-body); font-weight: 400; line-height: 1.55; text-wrap: balance; }

/* City of Melbourne logo, a condition of the club's grant. The Council's sponsor guidelines: the kit's PNG, unaltered, with no effect or motion
   (white Secondary A on the Hero photo, colour Primary on the white footer); the "Supported by" line above it; at the bottom, never in the bottom-right corner.
   Secondary A at least 30px tall: 36px, because the file's own margin leaves the drawn logo about 31px. Primary at least 80px: the file has no margin.
   Clear space on every side at least the width of the M's leg: about 0.37 of the Secondary A image (14px) and 0.34 of the Primary (28px). */
.support { display: grid; justify-items: center; gap: 14px; font-size: var(--fs-small); letter-spacing: 0.04em; }
.support img { display: block; width: auto; height: 36px; }
.hero-support { position: relative; align-self: center; margin-top: var(--s5); color: var(--hero-text-2); }
.foot-support { justify-items: start; gap: 28px; margin-bottom: var(--s4); }
.foot-support img { height: 80px; }

/* ---------- landing: sections ---------- */
.sec { display: grid; gap: var(--s5); align-items: start; padding: var(--sec-pad) var(--gutter); border-top: 1px solid var(--line); }
.sec h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.prose { display: grid; gap: var(--s4); justify-items: start; }
.prose p { max-width: 62ch; font-size: var(--fs-body); line-height: 1.65; color: var(--text-2); }
/* Sections fold on phones (no script: <details>). Wide screens show them open (rule below). */
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--tap); list-style: none; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; flex: none; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--text-3); }
.fold[open] summary::after { content: "\2212"; }
.fold { padding-block: var(--s6); }
.fold:not([open]) { gap: 0; }

/* ---------- landing: videos (links out to YouTube; nothing is loaded from it) ---------- */
.videos { display: grid; gap: var(--s5); padding: var(--sec-pad) 0; border-top: 1px solid var(--line); }
.videos h2 { padding: 0 var(--gutter); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.vid-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); gap: var(--s4); margin: 0; padding: 0 var(--gutter) var(--s2); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.vid-row { scrollbar-width: none; }
.vid-row::-webkit-scrollbar { display: none; }
.vid-row li { scroll-snap-align: start; }
.vid { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s2); height: 100%; padding-bottom: var(--s4); border-radius: var(--radius); overflow: hidden; background: var(--hero); color: var(--hero-text); text-decoration: none; }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: var(--s2); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--hero-text); }
.vid-play::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 14px solid var(--hero); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vid-title { padding: 0 var(--s4); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.vid-src { padding: 0 var(--s4); font-size: var(--fs-small); color: var(--hero-text-2); letter-spacing: 0.04em; }
.vid:hover .vid-title, .vid:focus-visible .vid-title { text-decoration: underline; text-underline-offset: 0.18em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 28px; border: 1px solid var(--text); border-radius: var(--radius); background: var(--text); color: var(--on-light); font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: 0.005em; text-decoration: none; }

/* ---------- footer ---------- */
.foot { display: grid; gap: var(--s3); padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-3); }
.foot p { max-width: 60ch; }
.foot a:not(.btn) { display: inline-block; padding: 10px 0; text-underline-offset: 0.18em; }
.foot-legal { margin-bottom: var(--s4); }
.foot-legal p { line-height: 1.6; }
.foot .foot-legal a { padding: 4px 0; }
.foot-close { display: grid; gap: var(--s5); justify-items: center; text-align: center; padding: 0 var(--gutter) var(--s6); margin: 0 calc(-1 * var(--gutter)) var(--s2); border-bottom: 1px solid var(--line); }
.foot-close .foot-lead { max-width: 62ch; text-wrap: balance; font-size: var(--fs-body); line-height: 1.65; color: var(--text); font-weight: 400; }
.foot-close .foot-lead strong { display: block; margin-bottom: var(--s2); font-size: var(--fs-lead); line-height: 1.45; font-weight: 800; }

/* ---------- landing: wide screens ---------- */
@media (min-width: 900px) {
  .hero { padding: 28px var(--gutter) 0; }
  .login { top: 28px; }
  .sec { grid-template-columns: 4fr 7fr; gap: 64px; }
  main > .sec:first-child { border-top: 0; }
  .vid-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .foot { padding: 40px var(--gutter) 48px; }
  .hero-support { margin-bottom: var(--s6); }
}

/* Wide screens: the folds stay open and cannot be closed. Browsers without ::details-content keep the fold. */
@supports selector(::details-content) {
  @media (min-width: 900px) {
    .fold::details-content { content-visibility: visible; display: contents; }
    .fold summary { pointer-events: none; cursor: default; min-height: 0; }
    .fold summary::after { display: none; }
    .fold, .fold:not([open]) { gap: 64px; padding-block: var(--sec-pad); }
  }
  /* A printout shows every fold's copy: portrait paper is narrower than 900px, so the rule above does not reach it. */
  @media print {
    .fold::details-content { content-visibility: visible; display: contents; }
    .fold summary::after { display: none; }
    .fold:not([open]) { gap: var(--s5); }
  }
}

/* Photo stays still while the page scrolls (wide screens with a mouse only). The photo layer is fixed to the screen and cut to the hero's shape. Not background-attachment: fixed: that stops working while the photo is scaled, which made it jump when the opening motion ended. */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero { clip-path: inset(0); }
  .hero::before { position: fixed; height: 100vh; }
}

/* Opening: the photo fades in while pulling back 5%, then the logo and the words follow a second later, each line half a second after the one above. CSS only; it runs once when the page is drawn. The words' motion is on each line, because .hero-copy itself carries the scroll fade below. */
@keyframes hero-photo-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes hero-fade-in { from { opacity: 0; } }
@keyframes hero-rise-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-photo-in 5s var(--intro-ease) both; }
  .logo, .login { animation: hero-fade-in 2s ease-out 1s both; }
  .tagline, .place, .hero-sub { animation: hero-rise-in 2s var(--intro-ease) calc(1s + var(--i) * 0.5s) both; }
  .tagline { --i: 0; } .place { --i: 1; } .hero-sub { --i: 2; }
}

/* Hero words fade out as the hero scrolls away. CSS only (the site runs no script); browsers without scroll timelines simply keep the words. */
@keyframes hero-fade { to { opacity: 0; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: hero-fade linear both; animation-timeline: scroll(root); animation-range: 0 calc(var(--hero-min) * 0.5); }
  }
}

/* ---------- text pages (privacy, not found) ---------- */
.page, .page-foot { max-width: 720px; margin: 0 auto; }
.page { padding: 56px 24px 48px; }
.page h1 { margin-bottom: var(--s5); font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.page h2 { margin: var(--s7) 0 var(--s3); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.page p { margin-bottom: var(--s4); }
.page ul { margin: 0 0 var(--s4); padding-left: 1.2em; }
.page li { margin-bottom: var(--s2); }
.page .meta { margin-bottom: var(--s1); font-size: 13px; letter-spacing: 0.08em; color: var(--text-3); }
.page a { text-underline-offset: 0.18em; }
.foot.page-foot { padding: 32px 24px 40px; }
