:root {
  --paper: #f8f6f0;
  --paper-2: #eee9df;
  --ink: #202220;
  --muted: #696d66;
  --line: rgba(32, 34, 32, 0.14);
  --coral: #d96b5c;
  --sage: #7f9b8f;
  --blue: #7997aa;
  --charcoal: #2c302e;
  --white: #fffdf8;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.scrolled {
  background: rgba(248, 246, 240, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.language-switcher,
.hero-actions,
.inline-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 10px 0 0 var(--sage), 20px 0 0 var(--blue);
}

.nav {
  gap: 22px;
  color: rgba(32, 34, 32, 0.74);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

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

.language-switcher {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
}

.language-switcher button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.language-switcher button.active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(20px, 6vw, 76px) 74px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 246, 240, 0.82), rgba(248, 246, 240, 0.22) 48%),
    linear-gradient(0deg, rgba(248, 246, 240, 0.64), rgba(248, 246, 240, 0.02) 40%),
    url("assets/kindling-hero.png") center / cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 76px);
  right: clamp(20px, 6vw, 76px);
  bottom: 24px;
  height: 1px;
  background: rgba(32, 34, 32, 0.2);
}

.hero-content {
  position: relative;
  max-width: 740px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 500;
  line-height: 0.88;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(32, 34, 32, 0.78);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.36;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.inline-actions a,
.contact-links a,
.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.button.primary,
.inline-actions a:first-child {
  background: var(--ink);
  color: var(--white);
}

.button.secondary,
.inline-actions a,
.contact-links a,
.project-card a {
  background: rgba(255, 253, 248, 0.62);
}

.strip {
  padding: 26px clamp(20px, 6vw, 76px);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.intro p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.2;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 76px);
}

.section.soft {
  background: var(--paper-2);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.96;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 22vw);
  gap: 12px;
}

.gallery-card,
.project-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 34, 32, 0.12);
  border-radius: var(--radius);
}

.gallery-card {
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 18px;
  color: var(--white);
  isolation: isolate;
}

.gallery-card::before,
.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18));
  z-index: -1;
}

.gallery-card span {
  font-size: 18px;
  font-weight: 800;
}

.gallery-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

.coral {
  background: var(--coral);
}

.sage {
  background: var(--sage);
}

.blue {
  background: var(--blue);
}

.ink {
  background: var(--charcoal);
}

.paper {
  background: #b8a98e;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 0.6fr);
  gap: 18px;
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-list {
  display: grid;
  gap: 10px;
}

.playlist-list article,
.software-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.58);
}

.playlist-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 92px;
  padding: 16px;
}

.playlist-list span,
.software-list article p:first-child,
.project-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.playlist-list h3,
.project-card h3,
.software-list h3 {
  margin: 0;
  font-size: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.86fr) 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-thumb {
  min-height: 210px;
}

.game-a {
  background: linear-gradient(135deg, #28322d, #7f9b8f 56%, #f3c0a8);
}

.game-b {
  background: linear-gradient(135deg, #1f2227, #7997aa 55%, #f2e6cc);
}

.project-card p,
.software-list p {
  margin-bottom: 10px;
}

.project-card a {
  margin-top: 24px;
}

.software-list {
  display: grid;
  gap: 12px;
}

.software-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.software-list article p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.inline-actions,
.contact-links {
  gap: 10px;
  flex-wrap: wrap;
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.about-contact p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.24;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin: 0 clamp(20px, 6vw, 76px) clamp(40px, 6vw, 76px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.contact-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.7);
}

.contact-links a {
  border-color: rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.08);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-heading,
  .video-layout,
  .card-grid,
  .about-contact,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .nav {
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
    padding: 138px 18px 56px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(248, 246, 240, 0.9), rgba(248, 246, 240, 0.34)),
      linear-gradient(0deg, rgba(248, 246, 240, 0.74), rgba(248, 246, 240, 0.05) 44%),
      url("assets/kindling-hero.png") center / cover;
  }

  h1 {
    font-size: clamp(64px, 19vw, 94px);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(160px, 42vw);
  }

  .gallery-card.feature,
  .gallery-card.wide {
    grid-column: span 2;
  }

  .project-card,
  .software-list article {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    min-height: 180px;
  }

  .footer {
    flex-direction: column;
  }
}
