@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url("../fonts/karla-400.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 600; font-display: swap; src: url("../fonts/karla-600.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 700; font-display: swap; src: url("../fonts/karla-700.woff2") format("woff2"); }

:root {
    color-scheme: light;
    --bg: #faf7f0;
    --surface: #ffffff;
    --tint: #f1ece0;
    --ink: #1b1d24;
    --muted: #5a5c66;
    --line: #e2dccd;
    --blue: #1f3f99;
    --blue-deep: #172f73;
    --plate: #f5c400;
    --radius: 14px;
    --shadow: 0 10px 30px rgb(27 29 36 / 0.12);
    /* Rarity classes: identity colours, always paired with a text label. */
    --common: #6b6f7a;
    --uncommon: #2e7d46;
    --rare: #2563b8;
    --epic: #7b3fb0;
    --legendary: #b8640f;
    --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Karla, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 6.4vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 22px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the logo is a Dutch plate, the site's signature element. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: stretch; text-decoration: none; color: var(--ink); background: var(--plate); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; font: 700 20px/1 var(--head); letter-spacing: 1.5px; }
.logo__nl { background: var(--blue); color: #fff; font-size: 11px; padding: 0 6px; display: flex; align-items: flex-end; padding-bottom: 4px; }
.logo__text { padding: 7px 10px; }
.logo__text b { font-weight: 700; color: var(--blue-deep); }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--blue); }

/* Pictogram tiles */
.picto { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue); color: #fff; --picto-bg: var(--blue); flex: none; }
.picto svg { width: 70%; height: 70%; }
.picto--sm { width: 32px; height: 32px; border-radius: 9px; }
.picto--common { background: var(--common); --picto-bg: var(--common); }
.picto--uncommon { background: var(--uncommon); --picto-bg: var(--uncommon); }
.picto--rare { background: var(--rare); --picto-bg: var(--rare); }
.picto--epic { background: var(--epic); --picto-bg: var(--epic); }
.picto--legendary { background: var(--legendary); --picto-bg: var(--legendary); }

/* Hero with photo */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(15 20 40 / .82) 0%, rgb(15 20 40 / .55) 55%, rgb(15 20 40 / .15) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero--home .hero__inner { padding-top: 96px; padding-bottom: 96px; max-width: 1120px; }
.hero--home h1, .hero--home .hero__lead { max-width: 640px; }
.hero__lead { font-size: 20px; margin: 0 0 8px; }
.hero__stat { font-size: 19px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__stat strong { font: 700 44px/1 var(--head); }
.hero--card .hero__inner { padding-top: 40px; padding-bottom: 40px; }
.hero--card::after { background: rgb(15 20 40 / .6); }
.crumbs { margin: 0 0 10px; font-size: 15px; }
.crumbs a { color: #fff; }

/* Plate input */
.plate-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.plate { display: flex; flex: 1 1 260px; max-width: 380px; background: var(--plate); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.plate__nl { background: var(--blue); color: #fff; font: 700 13px/1 var(--head); padding: 0 8px 7px; display: flex; align-items: flex-end; }
.plate__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 700 32px/1 var(--head); letter-spacing: 3px; text-transform: uppercase; padding: 12px 14px; }
.plate__input::placeholder { color: rgb(27 29 36 / .35); }
.plate__input:focus { outline: none; }
.plate:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
.section .plate:focus-within { outline-color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 14px 22px; font: 700 18px/1 var(--head); letter-spacing: .3px; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-deep); }
.button--accent { background: var(--plate); color: var(--ink); border: 3px solid var(--ink); }
.button--accent:hover { background: #ffd83d; }
.notice { display: inline-block; padding: 10px 14px; border-radius: 8px; margin: 8px 0 0; }
.notice--error { background: #fff1ef; color: #9b1c12; }

/* Sections */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section__lead { color: var(--muted); max-width: 640px; margin-top: -4px; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps h3 { margin-top: 16px; }
.steps p { margin: 0; color: var(--muted); }

.classes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.class { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; border-top: 6px solid var(--common); }
.class strong { font: 700 24px/1.1 var(--head); margin-top: 10px; }
.class span { color: var(--muted); }
.class .class__points { color: var(--ink); font-weight: 700; }
.class--uncommon { border-top-color: var(--uncommon); }
.class--rare { border-top-color: var(--rare); }
.class--epic { border-top-color: var(--epic); }
.class--legendary { border-top-color: var(--legendary); }

.photo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.photo-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 16 / 10; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile__text { position: absolute; inset: auto 0 0 0; padding: 48px 22px 20px; background: linear-gradient(transparent, rgb(15 20 40 / .85)); display: grid; gap: 2px; }
.photo-tile__text strong { font: 700 26px/1.1 var(--head); }

.make-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.make-grid a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.make-grid a:hover { border-color: var(--blue); }
.make-grid strong { display: block; font-family: var(--head); font-size: 18px; line-height: 1.1; }
.make-grid small { color: var(--muted); }

.model-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.model-tile a { display: grid; gap: 4px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--common); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); height: 100%; }
.model-tile a:hover { border-color: var(--blue); }
.model-tile strong { font: 700 20px/1.1 var(--head); }
.model-tile__count { color: var(--muted); }
.model-tile--uncommon a { border-left-color: var(--uncommon); }
.model-tile--rare a { border-left-color: var(--rare); }
.model-tile--epic a { border-left-color: var(--epic); }
.model-tile--legendary a { border-left-color: var(--legendary); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; background: var(--common); white-space: nowrap; }
.badge-uncommon { background: var(--uncommon); }
.badge-rare { background: var(--rare); }
.badge-epic { background: var(--epic); }
.badge-legendary { background: var(--legendary); }

/* Model page */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 48px; }
.stat-tiles > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.stat-tiles .picto { grid-row: span 2; }
.stat-tiles dt { color: var(--muted); font-size: 15px; }
.stat-tiles dd { margin: 0; font: 700 28px/1.1 var(--head); }

.year-bars { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 2px; }
.year-bar { position: relative; display: grid; grid-template-columns: 52px 1fr 76px 112px; align-items: center; gap: 12px; padding: 3px 6px; border-radius: 6px; scroll-margin-top: 80px; }
.year-bar:hover, .year-bar:target { background: var(--tint); }
.year-bar__year { font-weight: 700; font-variant-numeric: tabular-nums; }
.year-bar__track { height: 14px; }
.year-bar__fill { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.year-bar__value { text-align: right; font-variant-numeric: tabular-nums; }
.year-bar .badge { justify-self: start; }
.year-bar:hover::after { content: attr(data-tip); position: absolute; right: 8px; top: -30px; z-index: 2; background: var(--ink); color: #fff; font-size: 14px; padding: 4px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.table-view summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.counts { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--surface); }
.counts th, .counts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* Spot count on the card */
.sighting { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-weight: 600; }
.sighting--first { background: #fff4c2; }
.sighting--popular { background: #e6ecfb; }

/* Spot card */
.spot-card { max-width: 520px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 26px; border: 6px solid var(--common); box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
.spot-card--uncommon { border-color: var(--uncommon); }
.spot-card--rare { border-color: var(--rare); }
.spot-card--epic { border-color: var(--epic); }
.spot-card--legendary { border-color: var(--legendary); }
.spot-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.spot-card__class { font: 700 26px/1 var(--head); text-transform: uppercase; letter-spacing: 1px; }
.spot-card__points { margin-left: auto; white-space: nowrap; font-weight: 700; background: var(--plate); border: 2px solid var(--ink); border-radius: 6px; padding: 4px 10px; }
.spot-card h1 { font-size: clamp(32px, 6vw, 46px); margin: 0; }
.spot-card__meta { color: var(--muted); margin: 4px 0 18px; }
.spot-card__count { display: grid; gap: 2px; margin: 0 0 18px; }
.spot-card__count strong { font: 700 64px/1 var(--head); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.facts div { background: var(--tint); border-radius: 12px; padding: 12px; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.facts dd { margin: 6px 0 0; font: 700 24px/1 var(--head); }

.offers { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--muted); margin-bottom: 32px; }

.credits { list-style: none; padding: 0; display: grid; gap: 12px; }
.credits li { display: flex; gap: 14px; align-items: center; }
.credits img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }

.site-footer { background: var(--ink); color: #d7d8de; padding: 28px 0; font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-footer p { margin: 0; }
.site-footer__privacy { display: flex; align-items: center; gap: 10px; }
.site-footer a { color: #fff; }
.site-footer__links { display: flex; gap: 18px; }
.site-footer__company { flex-basis: 100%; color: #a9abb5; font-size: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose h2 { margin-top: 1.4em; }

@media (max-width: 640px) {
    .site-header nav { display: none; }
    .hero__inner, .hero--home .hero__inner { padding-top: 48px; padding-bottom: 48px; }
    .hero::after { background: rgb(15 20 40 / .66); }
    .section { padding: 44px 0; }
    .year-bar { grid-template-columns: 44px 1fr 60px; }
    .year-bar .badge { display: none; }
    .plate { max-width: none; }
    .plate-form .button { flex: 1 1 100%; }
    .spot-card { padding: 20px; }
}
