:root {
  --bg: #e9e8e6;
  --text: #182810;
  --muted: #49603f;
  --accent: #346e17;
  --accent-soft: rgba(52, 110, 23, 0.12);
  --border: rgba(24, 40, 16, 0.16);
  --surface-strong: #ffffff;
  --font-sans: "Karla";
  --font-display: "Climate Crisis";
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(52, 110, 23, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(24, 40, 16, 0.06), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

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

h1,
p {
  margin: 0;
}

.site-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px;
}

.home-main {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.hero {
  display: grid;
  gap: 24px;
}

.hero-portfolio {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 62px 0 42px;
}

.hero-portfolio__inner {
  width: min(100%, 760px);
  display: grid;
  gap: 16px;
}

.hero-logo {
  position: relative;
  width: 218px;
  height: 257px;
}

.hero-logo__mark {
  position: absolute;
  left: 0;
  top: 66px;
  width: 218px;
  height: 158px;
  display: block;
}

.hero-logo__portrait {
  position: absolute;
  left: 0;
  top: 0;
  width: 218px;
  height: 224px;
  overflow: hidden;
}

.hero-logo__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-portfolio__copy {
  display: grid;
  gap: 16px;
}

.hero-portfolio__title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  font-variation-settings: "YEAR" 1979;
}

.hero-portfolio__title span {
  display: inline;
}

.hero-portfolio__lede {
  max-width: 760px;
  color: var(--text);
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-portfolio__actions {
  gap: 16px;
  margin-top: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.95;
}

.hero-action {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
}

.hero-action svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 900px) {
  .hero-portfolio {
    justify-items: start;
    padding: 36px 0 34px;
  }

  .hero-portfolio__inner {
    width: 100%;
    max-width: 520px;
  }

  .hero-logo {
    width: 150px;
    height: 177px;
  }

  .hero-logo__mark {
    top: 45px;
    width: 150px;
    height: 109px;
  }

  .hero-logo__portrait {
    width: 150px;
    height: 154.128px;
  }

  .hero-portfolio__title {
    font-size: 48px;
  }

  .hero-portfolio__title span {
    display: block;
  }

  .hero-portfolio__lede {
    font-size: 28px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px;
  }

  .hero-portfolio__actions {
    gap: 12px;
  }

  .button-link {
    min-height: 42px;
    font-size: 24px;
  }
}
