:root {
  color-scheme: dark;
  --bg: #0e1424;
  --band: #141c30;
  --surface: #1b2540;
  --line: #3a4769;
  --text: #f0f3fa;
  --muted: #b1bbd0;
  --ink: #0e1424;
  --blue: #4da3ff;
  --pink: #ff4d97;
  --lime: #c7f000;
  --display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--body);
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.paw { width: 1.2em; height: 1.2em; fill: var(--blue); flex: none; }

.kicker {
  display: inline-block;
  padding: 0.5em 0.85em;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  font: 800 0.9rem/1 var(--display);
  transform: rotate(-2deg);
}

.button {
  display: inline-block;
  padding: 0.8em 1.3em;
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--pink);
  font: 800 1.1rem/1 var(--display);
  text-decoration: none;
}

.sticker {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--accent, var(--pink));
  padding: 10px;
}
.sticker img { border-radius: 10px; }

/* Navigation */
.nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 20px clamp(20px, 4vw, 48px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font: 800 1.3rem/1 var(--display);
  text-decoration: none;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0; list-style: none; }
.nav li a { font-weight: 600; font-size: 1rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav li a:hover { border-bottom-color: var(--pink); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 820px);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 74%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0, var(--bg) 8px, rgba(14, 20, 36, 0) 22%),
    linear-gradient(180deg, rgba(14, 20, 36, 0.65) 0, rgba(14, 20, 36, 0) 20%),
    linear-gradient(90deg, var(--bg) 26%, rgba(14, 20, 36, 0.7) 40%, rgba(14, 20, 36, 0) 60%);
}
.hero-text {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 96px 72px;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lead { max-width: 22em; margin: 20px 0 30px; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 112px);
}
.portrait { transform: rotate(-3deg); --accent: var(--lime); }
.about-text > p { margin-top: 16px; color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.facts div { padding: 14px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.facts dt { font: 800 0.85rem/1.2 var(--display); color: var(--pink); }
.facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.35; }

/* Where you might spot me */
.spots { padding-block: clamp(64px, 9vw, 112px); background: var(--band); }
.spots h2 { margin-top: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card div { padding: 20px 22px 24px; }
.card p { margin-top: 8px; font-size: 1.02rem; line-height: 1.55; color: var(--muted); }

/* A few sightings */
.snapshots { padding-block: clamp(64px, 9vw, 112px); }
.snaps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 38px 32px;
  margin-top: 44px;
}
.snaps figure { grid-column: span 2; }
.snaps figure:nth-child(n + 4) { grid-column: span 3; }
.snaps figure:nth-child(1) { transform: rotate(-1.6deg); --accent: var(--pink); }
.snaps figure:nth-child(2) { transform: rotate(1.2deg); --accent: var(--blue); }
.snaps figure:nth-child(3) { transform: rotate(-0.8deg); --accent: var(--lime); }
.snaps figure:nth-child(4) { transform: rotate(1deg); --accent: var(--blue); }
.snaps figure:nth-child(5) { transform: rotate(-1.2deg); --accent: var(--pink); }
.snaps img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.snaps figcaption { padding: 10px 6px 2px; font: 700 1rem/1.3 var(--display); }

/* Closing band */
.hello {
  padding-block: clamp(72px, 10vw, 128px);
  background:
    linear-gradient(rgba(14, 20, 36, 0.66), rgba(14, 20, 36, 0.66)),
    url("img/fur.jpg") center / cover no-repeat;
  text-align: center;
}
.paw-big { width: 56px; height: 56px; margin-inline: auto; transform: rotate(-12deg); }
.hello h2 { margin-top: 18px; }
.hello p { margin-top: 12px; font-size: clamp(1.15rem, 2vw, 1.35rem); }
.hello .mail { margin-top: 26px; font-size: 1.05rem; }
.mail a { color: var(--lime); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Footer */
.footer {
  padding-block: 30px;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

/* Motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button, .sticker, .card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
  .card:hover { transform: translateY(-4px); }
  .snaps .sticker:hover, .portrait:hover { transform: rotate(0deg) scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-photo { width: 82%; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .snaps figure, .snaps figure:nth-child(n + 4) { grid-column: span 3; }
  .snaps figure:last-child { grid-column: 2 / span 4; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .nav { position: static; padding: 16px 20px 0; }
  .nav ul { gap: 2px 16px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; overflow: visible; }
  .hero::after { display: none; }
  .hero-text { order: -1; padding-block: 26px 28px; }
  .hero-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-position: 50% 25%;
  }
  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: min(320px, 82%); margin-inline: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cards { max-width: none; }
  .snaps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .snaps figure, .snaps figure:nth-child(n + 4), .snaps figure:last-child { grid-column: auto; }
}
