/* MarVikIT — one stylesheet for the whole site. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* One theme: dark. */
:root {
  --paper: #0e1622;
  --surface: #152133;
  --ink: #e7ecf3;
  --ink-2: #a2b0c3;
  --line: #27364b;
  --accent: #93a6ff;
  --accent-ink: #0e1622;
  --marko: #f48b7e;    /* the M in MV: Marko's colour */
  --viktor: #93a6ff;   /* the V in MV: Viktor's colour, the same as the accent */
  --live-bg: #173826;
  --live-ink: #8fdcaa;
  --soon-bg: #3a2c0c;
  --soon-ink: #f3cf7a;
  --foot-bg: #0a111b;
  --foot-ink: #e7ecf3;
  --foot-ink-2: #a2b0c3;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}

.brand {
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -.01em;
}

.site-nav ul { display: flex; gap: clamp(14px, 3vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; color: var(--ink); }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.12; font-weight: 750; font-stretch: 112%; letter-spacing: -.012em;
  margin-bottom: .45em;
}

h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; font-stretch: 108%; }

.intro { color: var(--ink-2); max-width: 62ch; margin-bottom: 32px; }

.page-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1; font-weight: 800; font-stretch: 125%;
  letter-spacing: -.03em; margin: clamp(24px, 6vw, 64px) 0 .35em;
}

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose .lede { max-width: 40ch; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }

/* ---------- Hero ---------- */

.hero { padding: clamp(28px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; pointer-events: none; }
.hero > .wrap { position: relative; }

.hero-grid > * { min-width: 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 12.5vw, 5.3rem); line-height: .9;
  font-weight: 800; font-stretch: 125%; letter-spacing: -.025em; margin: 0 0 .32em -.03em;
}
.hero-note { color: var(--ink-2); margin: 20px 0 22px; }

/* The map: every project runs into the studio. js/hero.js draws the ribbons
   from each icon, between the name and the status, into the hub. Add a project = add an <li>. */
.hero-map { margin: 0; display: grid; grid-template-columns: max-content minmax(60px, 1fr) 236px; align-items: center; }
.map-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.map-stop a { display: grid; grid-template-columns: 48px max-content; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.map-stop a:hover strong, .map-stop a:focus-visible strong { text-decoration: underline; }
.map-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; overflow: hidden;
  background: var(--brand); color: var(--brand-ink, #fff); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800; font-stretch: 125%; font-size: 1.3rem;
}
.map-icon img { width: 100%; height: 100%; object-fit: cover; }
.map-text { display: grid; row-gap: 20px; padding-right: 24px; }   /* the ribbon runs through the gap */
.map-text strong { font-weight: 600; font-size: 1.02rem; line-height: 1.1; }
.map-text span { color: var(--ink-2); font-size: .8rem; line-height: 1.1; }
.map-hub { grid-column: 3; aspect-ratio: 2100 / 900; display: grid; place-items: center; }
.map-hub span { font-weight: 800; font-stretch: 125%; font-size: 3.6rem; line-height: 1; letter-spacing: .02em; }   /* shown only without JavaScript */
.hero.is-live .map-hub span { visibility: hidden; }
.map-hub b { font-weight: inherit; } .map-hub .m { color: var(--marko); } .map-hub .v { color: var(--viktor); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lede { font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.45; max-width: 36ch; margin: 0; }


.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */

.band { padding: clamp(52px, 7vw, 88px) 0; border-top: 1px solid var(--line); }

/* ---------- Projects ---------- */

.group + .group { margin-top: clamp(48px, 6vw, 72px); }

.project {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.project + .project { margin-top: 16px; }

.project-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: var(--brand); color: var(--brand-ink, #fff);
  display: grid; place-items: center;
  font-weight: 800; font-stretch: 125%; font-size: 2rem; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.project-icon img { width: 76px; height: 76px; border-radius: 20px; }

.project-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.project-head a { color: var(--ink); text-decoration: none; }
.project-head a:hover { color: var(--accent); }

.tagline { font-weight: 600; margin-bottom: .4em; }
.project p:last-child { margin-bottom: 0; }
.project .detail { color: var(--ink-2); max-width: 60ch; }
.project .site-link { font-weight: 600; }

.status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.status-live { background: var(--live-bg); color: var(--live-ink); }
.status-soon { background: var(--soon-bg); color: var(--soon-ink); }

.get { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 160px; }
.store { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.store img { height: 44px; width: auto; }
.store.is-soon img { opacity: .45; }
.store-note { font-size: .8rem; color: var(--ink-2); }

/* ---------- Work ---------- */

.work-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

.offer { list-style: none; margin: 0; padding: 0; }
.offer li { padding: 16px 0; border-top: 1px solid var(--line); }
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer strong { display: block; font-weight: 700; font-stretch: 108%; }
.offer span { color: var(--ink-2); }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.contact-card h3 { margin-bottom: .5em; }
.contact-card .actions { flex-direction: column; align-items: stretch; margin: 18px 0 14px; }
.contact-card .btn { justify-content: center; }
.contact-card .small { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }

address { font-style: normal; }
.prose address { margin-top: 1em; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--ink-2); font-size: .92rem; }

/* ---------- Blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; max-width: 72ch; }
.post-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--accent); }
.post-list time { display: block; font-size: .9rem; color: var(--ink-2); margin: 2px 0 6px; }
.post-list p { margin: 0; color: var(--ink-2); }

.post-meta { color: var(--ink-2); margin-bottom: 2em; }
.more { margin-top: 20px; }

.breadcrumb { font-size: .92rem; margin-top: clamp(16px, 4vw, 40px); }

main.page { padding-bottom: clamp(56px, 8vw, 96px); }

/* ---------- Footer ---------- */

.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 56px 0 72px; }
.site-footer a { color: var(--foot-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { font-weight: 800; font-stretch: 125%; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; }
.foot-brand + p { color: var(--foot-ink-2); max-width: 30ch; }
.site-footer h2 { font-size: .95rem; font-weight: 600; font-stretch: 100%; color: var(--foot-ink-2); letter-spacing: 0; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { color: var(--foot-ink-2); }
.copyright { margin-top: 40px; color: var(--foot-ink-2); font-size: .9rem; }

/* ---------- WhatsApp ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(19, 35, 58, .28);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { filter: brightness(1.05); }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .hero-grid, .work-grid, .about-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .project { grid-template-columns: 56px minmax(0, 1fr); gap: 16px 16px; padding: 20px; }
  .project-icon, .project-icon img { width: 56px; height: 56px; border-radius: 15px; font-size: 1.5rem; }
  .get { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 14px 18px; min-width: 0; }
  /* phones: icon and title side by side, the text below them at full width */
  .project > div:not(.project-icon):not(.get) { display: contents; }
  .project { row-gap: 10px; }
  .project-head { grid-column: 2; align-self: center; }
  .project > div > p { grid-column: 1 / -1; margin-top: 0; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: .92rem; }
  .hero-map { grid-template-columns: max-content minmax(18px, 1fr) clamp(76px, 24vw, 112px); }
  .map-stops { gap: 26px; }
  .map-stop a { grid-template-columns: 40px auto; gap: 12px; }
  .map-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 1.1rem; }
  .map-text { row-gap: 16px; padding-right: 8px; }
  .map-text strong { font-size: .92rem; }
  .map-text span { font-size: .7rem; max-width: 9.5em; }
  .map-hub span { font-size: 2.2rem; }
}

@media (max-width: 380px) {
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 1rem; }
  .site-nav ul { gap: 10px; }
  .site-nav a { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
