:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --ink: #19221d;
  --muted: #59645e;
  --line: rgba(25, 34, 29, 0.17);
  --accent: #5b377b;
  --accent-deep: #39214f;
  --accent-soft: #e7dcef;
  --signal: #7aa455;
  --shadow: 0 24px 70px rgba(31, 39, 34, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
}

.page::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  opacity: 0.2;
  pointer-events: none;
}

.card {
  position: relative;
  display: grid;
  width: min(1040px, 100%);
  min-height: 590px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(38px, 6vw, 78px);
}

.project-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-label::before {
  width: 28px;
  height: 2px;
  background: var(--signal);
  content: "";
}

h1 {
  max-width: 680px;
  margin: 48px 0 22px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.summary {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 52px;
}

.primary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: white;
  padding: 14px 20px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.primary-action::after {
  content: "↗";
  font-size: 1.25em;
}

.primary-action:hover {
  background: transparent;
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.primary-action:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.status {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.art {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--accent-soft);
}

.chive .art {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.86) 0 8%, transparent 8.5%),
    linear-gradient(145deg, #ece4f2, #d7e5cf);
}

.chive h1 {
  font-size: clamp(3rem, 5.4vw, 4.7rem);
}

.stem {
  position: absolute;
  bottom: -80px;
  left: 52%;
  width: 5px;
  height: 590px;
  border-radius: 50%;
  background: var(--accent-deep);
  transform: rotate(15deg);
  transform-origin: bottom;
}

.leaf {
  position: absolute;
  width: 118px;
  height: 54px;
  border: 3px solid var(--accent-deep);
  border-radius: 100% 0 100% 0;
  background: rgba(255, 255, 255, 0.25);
  transform-origin: 0 100%;
}

.leaf.one {
  bottom: 152px;
  left: 47%;
  transform: rotate(-24deg);
}

.leaf.two {
  bottom: 265px;
  left: 55%;
  transform: scaleX(-1) rotate(-27deg);
}

.leaf.three {
  bottom: 382px;
  left: 51%;
  transform: rotate(-42deg) scale(0.82);
}

.bloom {
  position: absolute;
  top: 82px;
  left: calc(52% + 44px);
  width: 160px;
  height: 160px;
}

.bloom::before,
.bloom::after {
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.bloom::after {
  transform: rotate(22.5deg) scale(0.72);
}

.layers {
  --paper: #f4f8fa;
  --ink: #12222b;
  --muted: #526570;
  --line: rgba(18, 34, 43, 0.17);
  --accent: #176e82;
  --accent-deep: #0d4858;
  --accent-soft: #d9edf1;
  --signal: #d8873b;
}

.layers h1 {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.layers .art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 54px 0;
  background: linear-gradient(160deg, #dceff3, #eef4eb);
}

.stratum {
  height: clamp(34px, 6vw, 70px);
  border-block: 1px solid rgba(255, 255, 255, 0.46);
  background: var(--layer-color);
  transform: translateX(var(--offset));
}

.stratum:nth-child(1) {
  --layer-color: #0d4858;
  --offset: 18%;
}

.stratum:nth-child(2) {
  --layer-color: #176e82;
  --offset: 5%;
}

.stratum:nth-child(3) {
  --layer-color: #75a9ad;
  --offset: 27%;
}

.stratum:nth-child(4) {
  --layer-color: #d8873b;
  --offset: 10%;
}

.stratum:nth-child(5) {
  --layer-color: #e9c989;
  --offset: 22%;
}

.stratum:nth-child(6) {
  --layer-color: #b7c8a7;
  --offset: 0%;
}

@media (max-width: 780px) {
  .page {
    padding: 16px;
  }

  .card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .content {
    min-height: 560px;
  }

  .art {
    min-height: 260px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .chive .art {
    display: none;
  }

  .layers .art {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
