/* Lindgrens Cykelverkstad. Direction "Skylten": the hand-painted blue sign on white planks outside the shop.
   Phone first: base styles are for phones, wider screens are added in media queries. Change the look in :root. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  /* Plank white, sign blue, dark navy ink. The blue is the only accent. */
  --bg: #f2efe7;
  --bg-2: #e7e2d6;
  --surface: #fbfaf6;
  --ink: #141c30;
  --ink-2: #4a5163;
  --line: #d4cdbf;
  --accent: #1d3f9a;
  --on-accent: #ffffff;
  --accent-soft: #dfe5f3;
  --dark: #1d3f9a;
  --on-dark: #f2efe7;
  --err: #b3261e;

  /* One font (Archivo) in two widths: extra wide for sign lettering, normal for text. */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --wide: 125%;

  --wrap: 1240px;
  --r: 4px;           /* painted wood: almost square corners */
  --r-s: 4px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Type scale. Headings are wide uppercase like the sign; body text stays quiet and normal width. */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2rem, 6.4vw, 4.6rem); line-height: .95; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.2; letter-spacing: .01em; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); max-width: 36ch; }
.muted { color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(88px, 13vw, 170px); }
.sec-head { display: grid; gap: 22px; max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--surface); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 12px; }

/* Split headings (site.js wraps each word). The padding stops descenders from being clipped. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.w > span { display: inline-block; will-change: transform; }
.reveal { will-change: transform, opacity; }

/* Buttons: pill for actions, plain link with arrow for the second choice. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 17px/1 var(--font); padding: 17px 26px; min-height: 48px; border-radius: var(--r); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: background .25s, color .25s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-link { background: none; color: var(--accent); padding: 16px 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-link .arr { display: inline-block; transition: transform .25s; }
.btn-link:hover .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { font: 800 15px/1 var(--font-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img { height: 32px; width: auto; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-tel { display: none; font-weight: 650; font-size: 15px; text-decoration: none; padding: 12px 8px; color: var(--ink); white-space: nowrap; }
.nav-tel:hover { color: var(--accent); }
@media (min-width: 560px) { .nav-tel { display: inline-block; } }
.hero-hours .tel { font-weight: 650; color: var(--accent); display: inline-block; padding-block: 10px; margin-block: -10px; }
.nav .btn { padding: 12px 18px; min-height: 44px; font-size: 15px; }
.lang { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.lang[hidden] { display: none; }
.lang button { border: 0; background: transparent; color: var(--ink-2); font: 600 12px var(--font); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Phone menu: a full-width sheet under the header. */
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 860px) { .menu-btn { display: none; } }
/* Small phones: the booking button lives in the menu sheet, so the header never crowds. */
@media (max-width: 559px) { .nav-right > .btn { display: none; } }
.sheet { position: fixed; inset: var(--header-h) 0 auto; z-index: 29; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0 24px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.sheet[hidden] { display: none; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a { display: block; padding: 14px 0; font-size: 1.4rem; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 20px; width: 100%; }

/* Hero: the name lettered like the sign, between two painted rules, then the sign photo full width. */
.hero { padding-block: clamp(40px, 7vw, 96px) 0; }
.sign { border-block: 3px solid var(--ink); padding: .14em 0 .1em; color: var(--accent); font-size: min(11.2vw, 152px); line-height: .9; letter-spacing: -0.005em; }
.sign .w { display: block; padding-bottom: .04em; }
.sign .l2 { color: var(--ink); font-size: .5em; letter-spacing: .03em; margin-top: .06em; }
.hero-under { display: grid; gap: 28px; padding-block: 30px clamp(40px, 6vw, 72px); }
.hero-under .lead { max-width: 40ch; }
.hero-hours { display: grid; gap: 4px; font-size: 16px; color: var(--ink-2); }
.hero-hours .open-now { margin: 0; padding: 0; background: none; font-size: 15px; color: var(--ink); }
.hero .actions { gap: 18px 28px; }
.hero-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.hero-media img { width: 100%; height: 112%; object-fit: cover; }
@media (min-width: 760px) {
  .hero-under { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .hero .actions { justify-content: flex-end; flex-wrap: nowrap; }
  .hero-hours { text-align: right; justify-items: end; }
  .hero-media { aspect-ratio: 21 / 9; }
}

/* Facts: only true dates from the owner. */
.facts { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 96px); }
.fact { display: grid; gap: 8px; border-top: 3px solid var(--ink); padding-top: 20px; }
.fact .num { font-size: clamp(3.6rem, 11vw, 8rem); font-weight: 800; font-stretch: var(--wide); line-height: .9; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact b { font-size: 1.15rem; font-weight: 700; }
.fact span { color: var(--ink-2); }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Prices: sticky title on the left, a sign-board list on the right. */
.split { display: grid; gap: 40px; align-items: start; }
.split .stick { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 6vw, 96px); } .split .stick { position: sticky; top: calc(var(--header-h) + 48px); } }
.board { margin: 0; border-top: 3px solid var(--ink); }

/* Photos: big, square corners, never stretched. */
.duo { display: grid; gap: 16px; margin-top: clamp(48px, 7vw, 96px); }
.duo img, .used img, .ph-full img { width: 100%; height: 100%; object-fit: cover; }
.ph-wide { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.ph-tall { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); position: relative; }
.ph-tall figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 10px 16px 0 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 760px) { .duo { grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: end; } .duo .ph-wide { aspect-ratio: auto; height: 100%; } }

/* Used bikes */
.ph-full { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.ph-full img { height: 112%; }
@media (min-width: 760px) { .ph-full { aspect-ratio: 2 / 1; } }
.used { display: grid; gap: 40px; margin-top: clamp(48px, 7vw, 96px); }
.used-text { display: grid; gap: 22px; align-content: start; }
.used-text p:not(.lead) { color: var(--ink-2); max-width: 42ch; }
.used-text .actions { margin-top: 6px; gap: 12px 18px; }
.handle { font-size: 15px; color: var(--ink-2); }
@media (min-width: 760px) { .used { grid-template-columns: 1.2fr 1fr; gap: clamp(48px, 7vw, 110px); } .used .ph-tall { margin-top: -18%; } }

/* Prices: a clean list, numbers aligned. */
.price-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.price-row dd { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row .desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; }
.note { margin-top: 24px; color: var(--ink-2); font-size: 15px; }

/* Visit: hours with "open now", address and a map link. No embedded map (it is slow and sets cookies). */
.visit { background: var(--bg-2); }
.visit-grid { display: grid; gap: 48px; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); } }
.open-now { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); width: fit-content; }
.open-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); }
.open-now.is-open::before { background: #2e7d4f; box-shadow: 0 0 0 4px color-mix(in srgb, #2e7d4f 22%, transparent); }
.open-now[hidden] { display: none; }
.hours { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 3px solid var(--ink); }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 650; }
.find { display: grid; gap: 26px; align-content: start; }
.address { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.15; font-style: normal; }

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 6vw, 96px); } }
.mail { display: grid; gap: 8px; margin-top: 8px; }
.mail span { font-size: 14px; color: var(--ink-2); }
.mail div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-text { display: grid; gap: 22px; }
.mail a { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--accent); letter-spacing: -0.01em; text-decoration: none; word-break: break-word; }
.copy { border: 0; background: var(--bg-2); color: var(--ink); font: 600 15px var(--font); padding: 12px 18px; min-height: 44px; border-radius: var(--r); cursor: pointer; }
form.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 550; }
.field input, .field textarea, .field select { font: 17px var(--font); min-height: 48px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 15px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.two { display: grid; gap: 16px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.err { font-size: 14px; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.done { padding: 14px 16px; border-radius: var(--r-s); background: var(--accent-soft); font-size: 15px; }
.done[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer: the legal details every Swedish business site needs. */
footer { padding-block: 48px 56px; font-size: 15px; color: var(--ink-2); }
.foot-sign { font-size: min(6.5vw, 90px); font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; color: var(--accent); line-height: .9; padding-bottom: .12em; border-bottom: 3px solid var(--ink); white-space: nowrap; overflow: hidden; }
.foot { display: grid; gap: 28px; padding-top: 32px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.foot a { color: var(--ink-2); }
.foot-bottom { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

/* Simple inner pages (e.g. 404 and extra pages) */
.page-head { padding-block: clamp(56px, 9vw, 120px) clamp(32px, 5vw, 64px); }
.prose { max-width: 62ch; display: grid; gap: 1em; font-size: 1.08rem; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 5rem); line-height: .95; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-top: 1em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.flush-top { padding-top: 0; }
