@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-400-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d1713;
  --surface: #14231b;
  --text: #f5efdf;
  --muted: #c3ccc0;
  --gold: #ebca83;
  --rule: #4e5d4e;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 76% 0%, #1c2d23 0, var(--background) 38rem);
  color: var(--text);
  font: 400 1rem / 1.65 var(--body);
}

a {
  color: var(--gold);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  inset: .5rem auto auto 1rem;
  z-index: 1;
  padding: .6rem .9rem;
  background: var(--gold);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.skip-link:hover {
  color: var(--background);
}

.container {
  width: min(100% - 2.5rem, 69rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  gap: .55rem;
  font-weight: 600;
}

main {
  padding-block: clamp(2rem, 6vw, 4.75rem) 2.5rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr);
  grid-template-areas:
    "intro wallpaper"
    "cover wallpaper"
    "milestones wallpaper";
  align-items: start;
  gap: clamp(1.75rem, 5vw, 3.75rem);
}

.project-intro {
  grid-area: intro;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin-block: .2rem .65rem;
  font-size: clamp(3.35rem, 8.8vw, 6.5rem);
  line-height: .97;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.description {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.deadline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .55rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.deadline time {
  color: var(--text);
  font-weight: 700;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--surface);
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 .75rem;
  color: var(--muted);
  font-size: .875rem;
}

figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.wallpaper {
  grid-area: wallpaper;
  width: min(100%, 22rem);
  justify-self: center;
}

.cover {
  grid-area: cover;
}

.milestones {
  grid-area: milestones;
}

.next-action {
  margin: .65rem 0 1.2rem;
  color: var(--text);
  font-size: 1.05rem;
}

.next-action span {
  margin-right: .45rem;
  color: var(--gold);
  font-weight: 700;
}

.milestones ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.milestones li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .75rem;
  padding-block: .65rem;
  border-top: 1px solid var(--rule);
}

.milestones li:last-child {
  border-bottom: 1px solid var(--rule);
}

.milestones time {
  color: var(--gold);
  font-weight: 600;
}

.credits {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

.credits p {
  margin: 0;
}

@media (max-width: 45rem) {
  .project {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "milestones"
      "wallpaper"
      "cover";
  }
}

@media (max-width: 22rem) {
  .container {
    width: calc(100% - 1.5rem);
  }
}
