:root {
  --paper: #fffdf8;
  --ink: #4b4945;
  --muted: #96918a;
  --line: rgba(84, 78, 70, 0.14);
  --pink: #f7c1ca;
  --mint: #a9eadb;
  --cream: #fff5d9;
  --green: #dcecc3;
  --font-round: "Avenir Next", "Nunito", "Trebuchet MS", Arial, sans-serif;
  --font-title: "Comic Sans MS", "Marker Felt", "Avenir Next", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 15%, rgba(169, 234, 219, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 80%, rgba(247, 193, 202, 0.16), transparent 28rem),
    var(--paper);
  font-family: var(--font-round);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 34px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 46px);
  color: var(--muted);
  font-size: 13px;
}

.main-nav a { transition: color 180ms ease, transform 180ms var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); transform: translateY(-1px); }

.tools {
  position: relative;
  display: flex;
  gap: 8px;
}

.tool-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.tool-btn.is-on { background: var(--mint); border-color: transparent; }

.lang-menu {
  position: absolute;
  top: 42px;
  right: 42px;
  display: none;
  min-width: 120px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(69, 57, 42, 0.08);
}

.lang-menu.open { display: grid; }

.lang-menu button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover, .lang-menu button.active { background: #fff5d9; }

#app { min-height: 100vh; }

.page {
  min-height: 100vh;
  padding: 118px clamp(28px, 5vw, 70px) 70px;
}

.narrow {
  width: min(920px, 100%);
  margin: 0 auto;
}

.home {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.home-hero {
  margin: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.home-hero img {
  width: min(760px, 100%);
  filter: drop-shadow(0 28px 45px rgba(112, 94, 74, 0.08));
  transform: rotate(-1deg);
}

.home-copy {
  align-self: center;
  max-width: 430px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(38px, 5.8vw, 82px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: 24px;
}

p {
  color: #746f68;
  font-size: 16px;
  line-height: 1.85;
}

.lead {
  max-width: 760px;
  font-size: 18px;
}

.pill-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms var(--ease), background 180ms ease;
}

.pill-link:hover { transform: translateY(-2px); background: var(--cream); }

.soft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 48px;
}

.soft-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
}

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

li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: #67615b;
}

.section-head {
  max-width: 960px;
  margin: 0 auto 42px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
}

.work-card {
  display: block;
  transition: transform 220ms var(--ease);
}

.work-card:hover { transform: translateY(-6px) rotate(-0.5deg); }

.work-card figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.work-card h2 {
  margin: 14px 0 4px;
  font-size: 22px;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.work-hero {
  max-width: 840px;
  margin: 0 auto 50px;
  text-align: center;
}

.back {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.work-hero h1 { font-size: clamp(36px, 4.6vw, 68px); }
.work-hero p { margin: 18px auto 0; max-width: 680px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-lines a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: #5d5852;
  font-size: 18px;
}

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

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .home {
    display: block;
  }

  .home-hero {
    min-height: 0;
    margin: 40px 0 20px;
  }

  .home-copy {
    max-width: none;
  }

  .soft-grid,
  .works-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
}
