:root {
  color-scheme: light;
  --bg-top: #f0e0cc;
  --bg-bottom: #9cb0b8;
  --card: rgba(251, 247, 240, 0.82);
  --card-strong: rgba(255, 251, 245, 0.92);
  --text: #17232a;
  --muted: #54666f;
  --accent: #b5553c;
  --accent-dark: #7f3524;
  --outline: rgba(23, 35, 42, 0.14);
  --shadow: 0 24px 80px rgba(22, 30, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 245, 229, 0.9), transparent 34%),
    linear-gradient(180deg, var(--bg-top) 0%, #e5d4bd 40%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.page-shell {
  width: min(1040px, calc(100vw - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  padding: 4rem 0 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-content: center;
}

.hero-card,
.project-card {
  position: relative;
  backdrop-filter: blur(18px);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--card-strong), rgba(244, 234, 221, 0.78));
  border-radius: 2rem 2rem 1rem 1rem;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 85, 60, 0.18), transparent 70%);
  transform: translate(30%, 35%);
}

.eyebrow,
.section-label {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.mission,
.project-card p {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  line-height: 1.72;
  color: rgba(23, 35, 42, 0.92);
}

a {
  color: inherit;
}

.mission a,
.text-link {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.mission a:hover,
.mission a:focus-visible {
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #9c442f;
}

.button-secondary {
  background: rgba(255, 251, 245, 0.64);
  border-color: rgba(23, 35, 42, 0.12);
  color: var(--text);
}

.project-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem 1rem 1.6rem 1.6rem;
  background: var(--card);
}

.project-card p {
  margin-top: 0;
  max-width: 34rem;
  font-size: 1rem;
  color: var(--muted);
}

.text-link {
  font-weight: 700;
}

.skyline {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.skyline svg {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  fill: rgba(23, 35, 42, 0.58);
  filter: drop-shadow(0 -18px 30px rgba(255, 255, 255, 0.16));
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 1rem, 1040px);
    padding-top: 1rem;
  }

  .hero-card,
  .project-card {
    border-radius: 1.4rem;
  }

  .mission,
  .project-card p {
    line-height: 1.58;
  }

  .skyline {
    height: 7rem;
  }
}
