:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f6f2ea;
  --paper-soft: #fffaf0;
  --line: rgba(17, 17, 17, 0.16);
  --muted: rgba(17, 17, 17, 0.62);
  --accent: #a11e2a;
  --blue: #2d6f8f;
  --green: #4f7552;
  --shadow: 0 20px 70px rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(161, 30, 42, 0.06), transparent 28rem),
    linear-gradient(180deg, #f8f5ef 0%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 242, 234, 0.16), rgba(246, 242, 234, 0.58)),
    url("assets/polaroids-table.png") center / cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.02);
  z-index: -2;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 58%, var(--paper) 100%),
    radial-gradient(circle at 20% 45%, rgba(246, 242, 234, 0.9), rgba(246, 242, 234, 0.24) 32rem, transparent 55rem);
  z-index: -1;
}

.hero__content {
  align-self: center;
  width: min(100%, 45rem);
}

.eyebrow,
.section__label,
.portfolio__kicker,
.note span {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--accent);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 10.5rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: rgba(17, 17, 17, 0.74);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(1.25rem, 4vw, 3.5rem);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  font-size: 1.3rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.section {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.section--intro {
  border-top: 0;
}

.section__label {
  color: var(--muted);
}

.section__body {
  max-width: 48rem;
}

.section__body p {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.section__body p + p {
  margin-top: 1.3rem;
  color: var(--muted);
}

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

.note {
  min-height: 18rem;
  padding: 1rem;
  background: var(--paper-soft);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow);
}

.note::before {
  display: block;
  height: 10.5rem;
  margin-bottom: 1rem;
  content: "";
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.16), transparent),
    linear-gradient(135deg, rgba(45, 111, 143, 0.72), rgba(17, 17, 17, 0.9));
  filter: grayscale(1);
}

.note:nth-child(2)::before {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.06), transparent),
    linear-gradient(135deg, rgba(79, 117, 82, 0.72), rgba(17, 17, 17, 0.86));
}

.note:nth-child(3)::before {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.08), transparent),
    linear-gradient(135deg, rgba(161, 30, 42, 0.72), rgba(17, 17, 17, 0.88));
}

.note--tilt-left {
  transform: rotate(-1.2deg);
}

.note--tilt-right {
  transform: rotate(1.1deg) translateY(0.5rem);
}

.note span {
  display: inline-block;
  color: var(--accent);
}

.note p {
  margin: 0.75rem 0 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.portfolio__item {
  display: grid;
  min-height: 12rem;
  align-content: space-between;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.48);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.portfolio__item:hover {
  transform: translateY(-0.2rem);
  border-color: rgba(17, 17, 17, 0.38);
  background: rgba(255, 250, 240, 0.9);
}

.portfolio__item strong {
  display: block;
  margin: 1.5rem 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.portfolio__item span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .hero {
    min-height: 86vh;
  }

  .hero__image {
    background-position: 58% center;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section__body p {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .cards,
  .portfolio {
    grid-template-columns: 1fr;
  }

  .note,
  .note--tilt-left,
  .note--tilt-right {
    transform: none;
  }

  .note {
    min-height: 0;
  }

  .note::before {
    height: 8.75rem;
  }
}
