:root {
  --bg: #efe7de;
  --bg-alt: #fbf7f2;
  --surface: rgba(255, 249, 242, 0.76);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --ink: #251d16;
  --muted: #66584b;
  --line: rgba(54, 39, 27, 0.11);
  --accent: #91613d;
  --accent-soft: rgba(179, 139, 95, 0.26);
  --shadow: 0 24px 60px rgba(33, 24, 17, 0.12);
  --art-backdrop:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(150deg, rgba(235, 221, 203, 0.92), rgba(212, 185, 156, 0.72));
  --hero-art: url("scene.svg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(145, 97, 61, 0.12), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(145, 97, 61, 0.1), transparent 26rem),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
  font: 16px/1.75 "Segoe UI", Arial, sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-header,
.site-footer,
.hero,
.story,
.intro-card,
.grid article {
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

.site-header {
  margin: 1.15rem 0 1rem;
  background: rgba(255, 251, 246, 0.84);
}

.brand {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
}

nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

nav a:hover {
  background: var(--surface-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

main {
  display: block;
}

.hero,
.story,
.intro-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.15rem;
  margin-bottom: 1rem;
}

.hero > div,
.panel,
.grid article,
.story > div,
.intro-card {
  position: relative;
  z-index: 1;
}

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

h1,
h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 8.5ch;
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  max-width: 13ch;
}

.lede,
.grid p,
.story p,
.panel p,
.intro-card p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.lede,
.intro-card > p:last-of-type {
  max-width: 58ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 40%);
}

.panel span,
.site-footer span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.08;
  max-width: 12ch;
}

.panel::after,
.intro-card::after {
  content: "";
  display: block;
  min-height: 16rem;
  margin-top: 0.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06)),
    var(--art-backdrop),
    var(--hero-art) center/cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

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

.grid article {
  min-height: 13.5rem;
  padding: 1.28rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.grid article::before {
  content: "";
  width: 3rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.grid article h2 {
  margin-bottom: 0.25rem;
  font-size: 1.9rem;
  max-width: 11ch;
}

.grid article p {
  max-width: 28ch;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.story::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.9;
}

.story p + p {
  margin-top: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.intro-card::after {
  min-height: 13rem;
  margin-top: 1.2rem;
}

.site-footer {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  align-items: start;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .story,
  .site-footer {
    grid-template-columns: 1fr;
  }

  h1,
  h2,
  .panel strong {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .page {
    width: min(100% - 1rem, 100%);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero,
  .story,
  .intro-card {
    padding: 1.2rem;
  }

  .panel::after,
  .intro-card::after {
    min-height: 13rem;
  }
}
