/* Orissaare Rally Park — preview by Saarekiri */
@font-face { font-family: "Chakra Petch"; font-style: italic; font-weight: 700; font-display: swap;
  src: url(fonts/chakra-petch-latin-700-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Chakra Petch"; font-style: italic; font-weight: 700; font-display: swap;
  src: url(fonts/chakra-petch-latin-ext-700-italic.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/saira-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/saira-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0e1014;        /* the hall at night */
  --floor: #1a1d24;      /* marble floor */
  --floor-2: #262a33;
  --line: #343946;
  --text: #eef0f4;
  --muted: #a7adba;
  --yellow: #ffc72c;     /* rally yellow, the Subaru's stripes */
  --blue: #2346c8;       /* Subaru blue */
  --blue-deep: #16308f;
  --red: #e0312a;        /* the red Lada */
  --paper: #f3f1ec;      /* time-card paper */
  --paper-ink: #16181d;
  --wrap: 1240px;
  --head: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --body: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-style: italic; font-weight: 700; line-height: 1.02; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 10; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }

/* chequered flag strip */
.chequer { height: 16px; background: repeating-conic-gradient(var(--text) 0 25%, var(--ink) 0 50%) 0 0 / 16px 16px; opacity: .9; }
.chequer.thin { height: 10px; background-size: 10px 10px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(14,16,20,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 19px; line-height: 1; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark i { display: inline-block; width: 22px; height: 22px; background: linear-gradient(115deg, var(--yellow) 0 45%, transparent 45% 55%, var(--blue) 55%); transform: skewX(-12deg); }
.mark b { color: var(--yellow); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; font-family: var(--head); font-weight: 600; font-size: 14px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang > * { padding: 6px 9px; text-decoration: none; }
.lang [aria-current] { background: var(--text); color: var(--ink); }
.lang a:hover { background: var(--floor-2); }
.head-call { font-family: var(--head); font-weight: 600; text-decoration: none; background: var(--yellow); color: var(--ink); padding: 9px 14px; border-radius: 4px; white-space: nowrap; letter-spacing: .03em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 14px 22px; border-radius: 4px; border: 2px solid transparent; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd65c; }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
  radial-gradient(900px 500px at 85% 20%, rgba(35,70,200,.35), transparent 70%),
  linear-gradient(180deg, var(--ink), var(--floor)); }
.hero::before { content: ""; position: absolute; left: -10%; bottom: 46px; width: 60%; height: 10px; background: var(--yellow); transform: skewX(-30deg); opacity: .9; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--yellow); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 22px; }
.hero h1 span { color: var(--yellow); display: block; }
.lead { font-size: 19px; color: #d6d9e0; max-width: 32em; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.rating-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin: 0; }
.rating-chip b { color: var(--text); font-size: 17px; }
.stars { color: var(--yellow); letter-spacing: 2px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero-photo figcaption { display: inline-block; margin-top: 14px; background: var(--paper); color: var(--paper-ink); font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 14px; border-left: 6px solid var(--red); }

/* time card band */
.timecard { background: var(--paper); color: var(--paper-ink); }
.timecard .wrap { display: grid; grid-template-columns: auto repeat(4, 1fr); align-items: stretch; }
.timecard .tc-title { font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .08em; background: var(--paper-ink); color: var(--yellow); display: flex; align-items: center; padding: 0 22px; }
.timecard dl { display: contents; margin: 0; }
.timecard dl > div { padding: 18px 22px; border-left: 2px dashed #c9c4b8; }
.timecard dt { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6c6a64; }
.timecard dd { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.2; }

/* sections */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4vw, 54px); }
.section-head h2 small { display: block; font-size: 15px; letter-spacing: .16em; color: var(--yellow); margin-bottom: 10px; font-style: normal; font-weight: 600; }
.section-head p { max-width: 34em; color: var(--muted); margin: 0; }

/* stages = what is on display */
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.stage { background: var(--floor); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage-body { padding: 22px 26px 26px; }
.stage-no { display: inline-block; margin: 0 0 14px 4px; font-family: var(--head); font-style: italic; font-weight: 700; font-size: 20px; background: var(--yellow); color: var(--ink); padding: 6px 12px; transform: skewX(-10deg); }
.stage h3 { font-size: 28px; margin-bottom: 10px; }
.stage p { color: #c9cdd6; margin: 0; }

/* gallery */
.gallery { background: var(--floor); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery-grid figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

/* reviews */
.reviews .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.score { background: var(--blue); background-image: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-radius: 6px; padding: 34px 32px; position: relative; overflow: hidden; }
.score::after { content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 90px; background: var(--yellow); transform: skewX(-18deg); opacity: .95; }
.score h2 { font-size: 34px; margin-bottom: 18px; position: relative; z-index: 1; }
.score .big { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 104px; line-height: .9; display: block; position: relative; z-index: 1; }
.score .stars { font-size: 26px; position: relative; z-index: 1; color: var(--yellow); }
.score p { margin: 12px 0 0; position: relative; z-index: 1; max-width: 14em; }
.quotes { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.quote { margin: 0; background: var(--floor); border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: 4px; padding: 22px 26px; }
.quote blockquote { margin: 0 0 6px; font-size: 19px; line-height: 1.5; }
.quote .tr { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.quote figcaption { font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* visit */
.visit { background: linear-gradient(180deg, var(--floor), var(--ink)); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.card { background: var(--floor-2); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.card h3 { font-size: 24px; margin-bottom: 16px; color: var(--yellow); }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 500; color: var(--muted); padding-right: 16px; }
.hours td { font-family: var(--head); font-weight: 600; font-size: 19px; }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.address { font-style: normal; font-size: 19px; line-height: 1.5; margin-bottom: 18px; }
.coords { font-family: var(--head); font-weight: 600; letter-spacing: .06em; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; text-decoration: none; border: 1px solid var(--muted); border-radius: 4px; padding: 8px 12px; }
.links a:hover { border-color: var(--yellow); color: var(--yellow); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.contact-list span { color: var(--muted); }
.contact-list a { font-family: var(--head); font-weight: 600; font-size: 18px; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--yellow); }

/* footer */
.site-foot { background: #08090c; color: var(--muted); font-size: 15px; padding: 40px 0 48px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-foot p { margin: 0 0 6px; }
.site-foot .mark { color: var(--text); margin-bottom: 12px; }
.site-foot a { color: var(--text); }
.preview { font-size: 13px; opacity: .8; }

/* responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .timecard .wrap { grid-template-columns: repeat(2, 1fr); }
  .timecard .tc-title { grid-column: 1 / -1; padding: 10px 22px; }
  .timecard dl > div:nth-child(odd) { border-left: 0; }
  .timecard dl > div { border-top: 2px dashed #c9c4b8; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero .wrap, .reviews .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 36px; }
  .hero::before { bottom: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-head .wrap { gap: 12px; height: 60px; }
  .mark { font-size: 15px; gap: 8px; }
  .mark i { width: 16px; height: 16px; }
  .head-call { display: none; }
  .lead { font-size: 17px; }
  .stages, .visit-grid, .gallery-grid { grid-template-columns: 1fr; }
  .visit-grid .card:last-child { grid-column: auto; }
  .stage h3 { font-size: 24px; }
  .stage-body { padding: 20px 20px 22px; }
  .timecard dd { font-size: 18px; }
  .timecard dl > div { padding: 14px 16px; }
  .score .big { font-size: 84px; }
  .quote blockquote { font-size: 17px; }
  .card { padding: 22px 20px; }
  .btn { padding: 13px 18px; font-size: 15px; }
}
