:root {
  --background: rgb(245 239 231);
  --foreground: rgb(38 30 24);
  --card: rgb(255 251 246);
  --card-foreground: rgb(38 30 24);
  --primary: rgb(102 67 38);
  --primary-foreground: rgb(255 251 246);
  --secondary: rgb(233 221 205);
  --secondary-foreground: rgb(86 57 35);
  --muted: rgb(238 231 221);
  --muted-foreground: rgb(112 95 78);
  --faint: rgb(250 247 242);
  --accent: rgb(230 206 171);
  --accent-foreground: rgb(74 48 29);
  --border: rgb(216 198 176);
  --input: rgb(216 198 176);
  --ring: rgb(128 85 48);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 10%, rgb(230 206 171 / 60%), transparent 34%),
    radial-gradient(circle at 86% 8%, rgb(205 169 127 / 32%), transparent 29%),
    radial-gradient(circle at 78% 84%, rgb(228 202 170 / 45%), transparent 31%),
    var(--background);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
}

.shell {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.hero-wrap {
  padding: 1.2rem 0 1.6rem;
}

.topbar {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.brand {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: rgb(66 49 36);
}

.nav-actions {
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  padding: 0.58rem 0.9rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-foreground);
  background: var(--primary);
}

.button:hover {
  filter: brightness(1.03);
  text-decoration: none;
}

.button.outline,
.button.ghost {
  background: rgb(255 249 240 / 30%);
  border-color: var(--border);
  color: var(--primary);
}

.button.small {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.hero {
  margin-top: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgb(255 251 246 / 93%), rgb(255 246 237 / 82%));
  padding: clamp(1.4rem, 3vw, 2.8rem);
  box-shadow: 0 28px 60px rgb(53 34 15 / 10%);
}

.eyebrow {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  margin: 0 0 0.7rem;
  color: rgb(101 77 59);
}

.hero h1 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(2rem, 6.4vw, 4rem);
  max-width: 18ch;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 65ch;
  color: rgb(90 73 61);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.hero-cta {
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-stats {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-stats li {
  background: rgb(253 247 239 / 92%);
  border: 1px solid rgb(221 201 174 / 75%);
  border-radius: 0.85rem;
  padding: 0.8rem;
}

.hero-stats strong {
  display: block;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.16rem;
}

.hero-stats span {
  color: rgb(95 77 62);
  font-size: 0.9rem;
}

main.shell {
  padding: 1rem 0 2.4rem;
}

.about {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.7rem;
  align-items: start;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: 1rem;
  background: rgb(255 251 246 / 90%);
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: block;
}

.about-media figcaption {
  margin-top: 0.62rem;
  color: rgb(104 83 67);
  font-size: 0.84rem;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-content {
  max-width: 72ch;
}

.about-kicker {
  margin-bottom: 0.5rem;
}

.about h2 {
  margin: 0;
  max-width: 22ch;
  line-height: 1.1;
}

.about-lead {
  margin-top: 1rem;
}

.about p {
  color: rgb(96 80 66);
}

.about-tags {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.about-tags li {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(86 62 42);
  background: rgb(243 231 214 / 92%);
  border: 1px solid rgb(216 194 165 / 90%);
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
}

.about-credentials {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: center;
}

.about-credentials a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.45rem;
  border-radius: 0.8rem;
  border: 1px solid rgb(216 194 165 / 85%);
  background: rgb(255 250 242 / 88%);
}

.about-credentials img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}

.about h2,
.section-head h2,
.contact-card h2 {
  margin-bottom: 0.4rem;
}

.section-head {
  margin: 2.2rem 0 1rem;
}

.section-head p {
  margin: 0;
  color: rgb(102 83 66);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project {
  display: grid;
  gap: 0.7rem;
  border-radius: 0.95rem;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgb(50 31 14 / 12%);
}

.project img {
  border-radius: 0.68rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
}

.project img.project-logo {
  object-fit: contain;
  padding: 1rem;
  background: rgb(255 255 255 / 95%);
}

.project h3 {
  margin: 0;
}

.project p {
  margin: 0;
  color: rgb(96 80 65);
}

.project footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.contact-card {
  margin-top: 2rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgb(255 249 240 / 95%), rgb(246 233 211 / 82%));
  border: 1px solid rgb(214 188 154 / 75%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-main .eyebrow {
  margin-bottom: 0.42rem;
}

.contact-main h2 {
  margin: 0;
  max-width: 28ch;
  line-height: 1.14;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
}

.contact-copy {
  margin-top: 0.8rem;
  max-width: 58ch;
  color: rgb(100 78 58);
}

.contact-actions {
  margin-top: 1.05rem;
}

.contact-side {
  background: rgb(255 252 248 / 70%);
  border: 1px solid rgb(217 194 166 / 80%);
  border-radius: 0.9rem;
  padding: 0.85rem;
}

.contact-pill {
  display: inline-flex;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgb(237 222 201);
  color: rgb(87 63 45);
  border: 1px solid rgb(214 188 154);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-meta {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.62rem;
}

.contact-meta div {
  border-top: 1px dashed rgb(211 188 160 / 80%);
  padding-top: 0.52rem;
}

.contact-meta dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgb(109 86 66);
}

.contact-meta dd {
  margin: 0.22rem 0 0;
  color: rgb(84 64 47);
}

.social-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-list a {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgb(207 184 155 / 90%);
  background: rgb(255 249 239 / 90%);
  color: rgb(94 67 45);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.36rem 0.62rem;
}

.social-list a:hover {
  background: rgb(245 231 212 / 95%);
  border-color: rgb(186 147 106 / 90%);
}

.site-footer {
  border-top: 1px solid rgb(213 196 174);
  padding: 1rem 0 2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: rgb(109 91 74);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1120px, calc(100% - 1.2rem));
  }

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

  .nav-actions {
    justify-content: flex-start;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 220px;
  }

  .about h2 {
    max-width: 100%;
  }

  .about-credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}
