/* Kellamäe — Orissaare ehitusmaterjalide kauplus. Preview by Saarekiri. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brick: #efe6d6;     /* the pale brick wall */
  --paper: #f9f5ee;
  --ink: #1f1c19;
  --muted: #5d554c;
  --red: #b3261e;       /* painted wall letters, the red doors */
  --red-deep: #8f1d17;
  --blue: #1f3d8f;      /* pegboard blue of the shelves */
  --blue-deep: #172d69;
  --line: #d8cab2;
  --wrap: 1200px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wide { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 21px; color: var(--red); letter-spacing: .04em; line-height: 1; }
.logo small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav ul a:hover { color: var(--red); }
.lang { display: flex; border: 1.5px solid var(--ink); }
.lang a { padding: 4px 9px; font-size: 13px; font-weight: 700; text-decoration: none; }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-light:hover { background: #fff; color: var(--blue-deep); }

/* ---------- hero ---------- */
.hero { background: var(--brick); position: relative; overflow: hidden; }
.hero::before { /* faint brick coursing */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to bottom, transparent 30px, rgba(150,120,80,.18) 30px, rgba(150,120,80,.18) 32px, transparent 32px),
    linear-gradient(to right, transparent 74px, rgba(150,120,80,.14) 74px, rgba(150,120,80,.14) 76px, transparent 76px);
  background-size: 152px 32px, 152px 64px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "head head" "photo copy"; column-gap: 64px; row-gap: 34px; align-items: center; padding: 48px 0 72px; }
.hero-head { grid-area: head; }
.hero-copy { grid-area: copy; }
.hero-photo { grid-area: photo; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.hero h1.word { margin: 0; font-size: clamp(40px, 11vw, 160px); color: var(--red); letter-spacing: .02em; line-height: .88; white-space: nowrap; }
.hero .sub { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; color: var(--ink); }
.hero .lead { margin: 20px 0 0; font-size: 19px; color: var(--muted); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-hours { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; }
.hero-hours span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 8px; vertical-align: 2px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1600 / 1463; object-fit: cover; box-shadow: 14px 14px 0 var(--blue); }
.hero-photo figcaption { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- pegboard fact band ---------- */
.board {
  background-color: var(--blue); color: #fff;
  background-image: radial-gradient(circle, rgba(0,0,0,.28) 2.2px, transparent 2.6px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts > div { padding: 28px 28px 30px; border-left: 1px solid rgba(255,255,255,.22); background: rgba(23,45,105,.72); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 25px; line-height: 1.2; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
.facts small { display: block; margin-top: 4px; font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: 14px; opacity: .85; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.h2 { margin: 0; font-size: clamp(34px, 4.6vw, 58px); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

/* products */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.item { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.item .ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--brick); }
.item .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item.span2 { grid-column: span 2; }
.item.span2 .ph { aspect-ratio: auto; flex: 1; min-height: 0; }
.item.span2 .ph img { object-position: 50% 25%; } /* keep the Sadolin sign at the top */
.item figcaption { padding: 14px 16px 16px; border-top: 4px solid var(--red); }
.item figcaption b { display: block; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.item figcaption span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.shelf-note { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.shelf-note a { font-weight: 600; color: var(--ink); }

/* the store */
.store { background: var(--brick); }
.store-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.store-text p { color: var(--muted); font-size: 18px; }
.addr { margin: 26px 0 0; font-style: normal; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 26px; line-height: 1.25; }
.addr small { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 6px; }
.store-photos { display: grid; grid-template-columns: 16fr 9fr; gap: 14px; }
.store-photos figure { margin: 0; }
.store-photos img { width: 100%; height: auto; }
.store-photos figure:first-child img { aspect-ratio: 4 / 3; }
.store-photos figure:last-child img { aspect-ratio: 3 / 4; }

/* reviews */
.reviews { background: var(--red); color: #fff; }
.reviews .eyebrow { color: #ffd9cf; }
.score { display: flex; align-items: center; gap: 18px; justify-self: end; }
.score strong { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 84px; line-height: 1; }
.score .stars { display: block; font-size: 22px; letter-spacing: 3px; }
.score small { display: block; font-size: 15px; opacity: .9; }
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.quotes li { background: var(--paper); color: var(--ink); padding: 26px 24px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-top: 6px solid var(--blue); }
.quotes blockquote { margin: 0; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 19px; line-height: 1.35; }
.quotes cite { font-style: normal; font-size: 14px; color: var(--muted); }
.reviews .all { margin: 26px 0 0; font-size: 15px; }

/* hours + contact */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.sign { background: #fff; border: 2px solid var(--ink); }
.sign h3 { margin: 0; padding: 16px 26px; background: var(--blue); color: #fff; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.sign table { width: 100%; border-collapse: collapse; }
.sign th, .sign td { padding: 13px 26px; border-bottom: 1px solid var(--line); text-align: left; font-size: 17px; }
.sign th { font-weight: 600; }
.sign td { text-align: right; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 20px; }
.sign td.closed { color: var(--muted); font-weight: 600; font-size: 17px; }
.sign p { margin: 0; padding: 14px 26px 18px; font-size: 14px; color: var(--muted); }
.contact-card { background: var(--ink); color: var(--paper); padding: 34px 34px 30px; display: flex; flex-direction: column; }
.contact-card h3 { margin: 0 0 18px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-list small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.contact-list a, .contact-list span { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 23px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-card .actions { margin-top: auto; padding-top: 22px; }
.contact-card .btn-line { border-color: var(--paper); color: var(--paper); }
.contact-card .btn-line:hover { background: var(--paper); color: var(--ink); }

/* footer */
.foot { background: var(--blue-deep); color: #dfe5f5; font-size: 14px; padding: 26px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.foot p { margin: 0; }
.foot .preview { opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { display: none; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "copy" "photo"; row-gap: 26px; padding: 32px 0 56px; }
  .hero-photo { max-width: 640px; margin-top: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); padding: 20px 20px 22px; }
  .facts > div:first-child { border-top: 0; }
  .section { padding: 68px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .score { justify-self: start; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .item.span2 .ph { flex: none; aspect-ratio: 4 / 3; }
  .store-grid, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 60px; }
  .logo small { display: none; }
  .hero .lead { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .hero-photo img { box-shadow: 8px 8px 0 var(--blue); }
  .item figcaption { padding: 10px 12px 12px; }
  .item figcaption b { font-size: 15px; }
  .item figcaption span { font-size: 13.5px; }
  .quotes { grid-template-columns: 1fr; }
  .score strong { font-size: 64px; }
  .sign th, .sign td { padding: 12px 18px; }
  .sign h3, .sign p { padding-left: 18px; padding-right: 18px; }
  .contact-card { padding: 26px 20px; }
  .contact-list a, .contact-list span { font-size: 20px; }
}
