/* Refally website. Referee black, card yellow; Barlow Condensed for display type (SIL OFL, in /fonts), system font for text. */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 900; font-display: swap;
  src: url("fonts/BarlowCondensed-BlackItalic.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("fonts/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype"); }

:root {
  --bg: #0a0a0c;
  --surface: #161618;
  --surface-2: #1e1e22;
  --line: #2b2b30;
  --text: #ececee;
  --muted: #a0a0a8;
  --yellow: #ffce00;
  --red: #e2302c;
  --green: #28c750;
  --radius: 16px;
  --wrap: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: #fff; }

/* Display type */
.display, h1, h2 { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-style: italic; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.01em; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 0 0 16px; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.yellow { color: var(--yellow); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #d6d6da; max-width: 34em; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .logo { width: min(420px, 100%); margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--yellow); color: #111; }
.btn-primary:hover { background: #fff; color: #111; }
.btn-ghost { border: 2px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--yellow); color: #fff; }
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px dashed #4a4a52; color: var(--muted); font-weight: 600; }

/* Watch screenshots in a simple bezel */
.watches { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.watch { width: 188px; flex: none; background: #000; border: 6px solid #2a2a2e; border-radius: 46px; padding: 12px 10px 10px; box-shadow: 0 18px 40px rgba(0,0,0,.6), inset 0 0 0 2px #111; }
.watch.small { width: 168px; margin-bottom: 26px; }
.watch img { display: block; width: 100%; height: auto; border-radius: 30px; }
.caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery .watch { width: min(188px, 100%); margin: 0 auto; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 52px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-box h3 { color: var(--yellow); font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; }
.card-box p { margin: 0; color: #d0d0d4; font-size: 16px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) translateY(-3px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
pre.report { margin: 0; background: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: #e4e4e8; overflow-x: auto; white-space: pre; }

/* Text pages (help, privacy) */
.page { padding: 44px 0 60px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page h2 { margin-top: 44px; scroll-margin-top: 20px; }
.page h3 { margin-top: 26px; color: #fff; font-size: 1.12rem; scroll-margin-top: 20px; }
.page p, .page li { color: #d6d6da; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 4px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.callout { background: var(--surface); border-left: 4px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.callout p { margin: 0; }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; color: #fff; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--yellow); font-weight: 800; font-size: 1.3em; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details p { margin: 0 0 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .watches { margin-top: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grid.four, .checks, .toc ul { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .watch { width: 164px; } .watch.small { width: 148px; }
  .watches { gap: 12px; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
