@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --ink: #26344d;
  --ink-deep: #17233a;
  --muted: #617087;
  --accent: #d4125c;
  --accent-deep: #aa0b49;
  --accent-soft: #f9e8ef;
  --green: #7fbf36;
  --paper: #ffffff;
  --paper-soft: #f5f7fa;
  --line: #dfe4eb;
  --shadow: 0 20px 60px rgba(31, 46, 71, 0.12);
  --radius: 20px;
  --shell: min(1180px, calc(100% - 48px));
  --header-height: 86px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  overflow-x: clip;
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--ink-deep);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-deep);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink-deep);
  border-radius: 999px;
  background: linear-gradient(var(--accent), #ff4f90);
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 100% -8%, rgba(212, 18, 92, .08), transparent 58%),
    var(--paper-soft);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink-deep);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  overflow: visible;
  border-bottom: 1px solid transparent;
  background:
    radial-gradient(520px 140px at 94% -30%, rgba(212, 18, 92, .16), transparent 58%),
    radial-gradient(280px 90px at 6% 130%, rgba(127, 191, 54, .1), transparent 55%),
    rgba(255, 252, 253, .9);
  backdrop-filter: blur(16px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, var(--accent) 38%, var(--green) 72%, transparent);
  content: "";
  opacity: .7;
}

.header-berry {
  position: absolute;
  z-index: 0;
  top: -78px;
  right: 0;
  width: 200px;
  height: 250px;
  opacity: .2;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  pointer-events: none;
  transform: rotate(-16deg);
}

.site-header .nav-shell {
  position: relative;
  z-index: 1;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 220px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.site-nav a {
  position: relative;
  color: var(--ink-deep);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform .25s var(--ease);
  transform-origin: right;
}

.site-nav a:is(:hover, :focus-visible, .is-active)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  position: relative;
  color: var(--ink-deep);
  font-size: .76rem;
  font-weight: 800;
}

.language-switcher summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
  cursor: pointer;
  list-style: none;
  letter-spacing: .05em;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  margin-left: 2px;
  content: "▾";
  font-size: .6rem;
  transition: transform .2s;
}

.language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.language-switcher > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav .language-switcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.site-nav .language-switcher a::after {
  display: none;
}

.site-nav .language-switcher a:is(:hover, .is-current) {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink-deep);
}

.site-main {
  position: relative;
  padding: 48px 0 96px;
  min-height: 60vh;
  overflow: hidden;
}

.raspberry-watermark {
  position: absolute;
  z-index: 0;
  top: 4%;
  right: -120px;
  width: 460px;
  height: 640px;
  opacity: .09;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  pointer-events: none;
  transform: rotate(-10deg);
}

.site-main > .shell,
.site-main > .single-post {
  position: relative;
  z-index: 1;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 28px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.post-card__media {
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .86rem;
}

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.post-card h2 {
  margin-bottom: 8px;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.excerpt {
  margin: 0 0 16px;
  color: var(--muted);
}

.read-more {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.read-more:hover {
  color: var(--accent-deep);
}

.empty {
  color: var(--muted);
}

.pagination .nav-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  text-decoration: none;
  font-weight: 700;
}

.single-card {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.single-header {
  max-width: none;
  margin-bottom: 28px;
}

.featured {
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: var(--radius);
}

.featured img {
  width: 100%;
}

.prose {
  max-width: none;
  font-size: 1.05rem;
}

.prose a {
  color: var(--accent);
}

.prose pre,
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.prose pre {
  padding: 18px 20px;
  overflow: auto;
  border-radius: 14px;
  background: var(--ink-deep);
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: .92em;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.post-nav a {
  text-decoration: none;
}

.post-nav a:hover {
  color: var(--accent);
}

.site-footer {
  position: relative;
  padding: 110px 0 28px;
  overflow: hidden;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .64);
}

.footer-berry {
  position: absolute;
  z-index: 0;
  right: 12px;
  bottom: -8px;
  width: 300px;
  height: 390px;
  opacity: .4;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  pointer-events: none;
  transform: rotate(-10deg);
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-areas:
    "brand company expertise"
    "brand tech tech";
  gap: 28px 48px;
}

.footer-brand {
  grid-area: brand;
}

.footer-brand img {
  width: 240px;
  height: auto;
  margin-bottom: 27px;
}

.footer-brand p {
  max-width: 360px;
}

.footer-brand a,
.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 4px;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.principles span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.footer-company {
  grid-area: company;
}

.footer-expertise {
  grid-area: expertise;
}

.footer-tech {
  grid-area: tech;
  padding-top: 6px;
}

.footer-tech ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.footer-tech li {
  position: relative;
  margin-bottom: 0;
}

.footer-tech__mark {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.footer-tech img {
  width: 26px;
  height: 26px;
  opacity: .42;
  filter: grayscale(1);
  transition: opacity .22s var(--ease), filter .22s var(--ease), transform .22s var(--ease);
}

.footer-tech__mark:is(:hover, :focus-visible) img {
  opacity: 1;
  filter: none;
  transform: translateY(-2px) scale(1.08);
}

.footer-tech__mark::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-deep);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
  content: attr(data-label);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  box-shadow: 0 10px 24px rgba(11, 18, 32, .22);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.footer-tech__mark:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-grid h2 {
  margin-bottom: 22px;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 9px;
  font-size: .84rem;
}

.footer-tech li {
  margin-bottom: 0;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: #ff5c98;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 75px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .74rem;
}

.footer-bottom p {
  margin: 0;
}

.site-footer .language-switcher {
  color: #fff;
}

.site-footer .language-switcher summary {
  background: rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.site-footer .language-switcher > div {
  background: var(--ink-deep);
  border-color: rgba(255, 255, 255, .2);
}

.site-footer .language-switcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #fff;
  font-size: .76rem;
  text-decoration: none;
}

.site-footer .language-switcher a:is(:hover, .is-current) {
  background: rgba(212, 18, 92, .28);
  color: #fff;
}

.rv-embed-bar {
  background: linear-gradient(180deg, #fff 0%, #fbf4f7 100%);
}

.rv-embed-bar iframe {
  display: block;
  width: 100%;
  height: 56px;
  border: 0;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background:
      radial-gradient(420px 180px at 100% 0%, rgba(212, 18, 92, .1), transparent 60%),
      var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav .language-switcher {
    margin-top: 18px;
  }

  .site-nav .language-switcher summary {
    justify-content: center;
  }

  .site-nav .language-switcher > div {
    position: static;
    margin-top: 7px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "company"
      "expertise"
      "tech";
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
