:root {
  --paper: #fff5e0;
  --ink: #141e46;
  --blue: #4f709c;
  --red: #c70039;
  --pink: #f5dfe9;
  --pale-blue: #95ccdd;
  --rule: rgba(20, 30, 70, 0.1);
  --soft-ink: #4f709c;
}

@font-face {
  font-family: "Kremlin Grand Duke";
  src: url("everything-i-carried-in-july/fonts/kremlin-grand-duke.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(199, 0, 57, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(20, 30, 70, 0.08), transparent 30%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

main,
footer {
  width: min(100% - 96px, 1450px);
  margin-inline: auto;
}

main {
  padding-top: 104px;
}

footer a {
  transition: color 180ms ease;
}

footer a:hover {
  color: var(--red);
}

.intro {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1.15fr) minmax(200px, 0.35fr);
  gap: 38px;
  align-items: end;
  padding: 88px 0 78px;
  border-bottom: 1px solid var(--rule);
}

.intro-label {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(199, 0, 57, 0.1);
}

.intro-copy h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.intro-copy > p {
  max-width: 760px;
  margin-top: 62px;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.intro-note {
  max-width: 250px;
  color: var(--soft-ink);
  font-size: 0.78rem;
  line-height: 1.65;
}

.collection {
  padding: 90px 0 130px;
}

.collection-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.collection-header h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.collection-header p {
  color: var(--soft-ink);
  font-size: 0.82rem;
}

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

.experiment-card {
  width:100%;
  background: #e8e0cf;
}

.experiment-card > img{
  object-fit:contain;
  padding:24px;
  filter:drop-shadow(0 18px 24px rgba(20,30,70,0.18));
}

.experiment-card:hover > img{
  transform:scale(1.05);
}

.experiment-card .layer h3 {
  font-family: "Kremlin Grand Duke", Georgia, serif;
  font-size:clamp(2rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
}

.experiment-card .experiment-date{
  margin:0 0 14px;
  color:#f5dfe9;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.experiment-card .project-icon{
  margin-top:25px;
  width:60px;
  height:60px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#c70039;
  font-size:1.1rem;
}

.experiment-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}

@media (min-width: 901px) {
  .experiment-grid{
    display:block;
  }

  .experiment-card{
    min-height:350px;
    aspect-ratio:auto;
    display:grid;
    grid-template-columns:minmax(0, 1.35fr) minmax(330px, 0.65fr);
    border:1px solid var(--rule);
    background:rgba(255,255,255,0.48);
  }

  .experiment-card::after{
    display:none;
  }

  .experiment-card > img{
    min-width:0;
    height:350px;
    padding:22px;
    background:#e8e0cf;
    object-fit:contain;
  }

  .experiment-card .layer{
    position:static;
    opacity:1;
    transform:none;
    justify-content:space-between;
    padding:34px 38px;
    color:var(--ink);
  }

  .experiment-card .experiment-date{
    color:var(--red);
  }

  .experiment-card .project-icon{
    align-self:flex-start;
    background:var(--red);
    color:#fff;
  }
}

footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 60px 0;
  }

  .intro-label {
    flex-direction: row;
    justify-content: space-between;
  }

  .intro-copy h1 {
    font-size: clamp(4.6rem, 18vw, 8rem);
  }

  .intro-copy > p {
    margin-top: 45px;
  }

  .intro-note {
    margin-top: 20px;
  }

  .experiment-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  main,
  footer {
    width: min(100% - 28px, 1450px);
  }

  main {
    padding-top: 84px;
  }

  .intro {
    padding: 44px 0 52px;
  }

  .intro-label {
    font-size: 0.62rem;
  }

  .intro-copy h1 {
    font-size: clamp(4rem, 21.5vw, 6.4rem);
  }

  .intro-copy > p {
    font-size: 1.35rem;
  }

  .collection {
    padding: 64px 0 90px;
  }

  .collection-header {
    align-items: flex-end;
  }

  .collection-header p {
    max-width: 130px;
    text-align: right;
  }

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

  footer {
    min-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
