:root {
  --cream: #fdf6ed;
  --ink: #605b51;
  --coral: #de786c;
  --rose: #f6c1ba;
  --paper: rgba(222, 120, 108, 0.16);
  --white: #fffaf3;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Gelasio", Georgia, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.dreams-page {
  min-height: 100svh;
  background: var(--cream);
}

a {
  color: inherit;
}

.page-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(20rem, 47vw, 42rem);
  pointer-events: none;
  background-image: url("assets/blog-background.png");
  background-position: top center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  opacity: 0.58;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  padding: 1.5rem var(--gutter);
}

.wordmark,
.site-nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.wordmark {
  font-size: clamp(1.02rem, 1.5vw, 1.35rem);
  text-decoration: none;
}

.wordmark.is-active,
.site-nav a.is-active {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.wordmark:hover {
  color: var(--coral);
}

.hero {
  display: grid;
  align-content: start;
  min-height: clamp(26rem, 45vw, 41rem);
  padding: clamp(0.5rem, 2vw, 2rem) var(--gutter) 2rem;
}

.dreams-page .site-header {
  min-height: clamp(5.5rem, 8vw, 7.5rem);
  padding: 1.5rem clamp(2rem, 5vw, 5rem);
}

.dreams-page .hero {
  place-items: center;
  min-height: 0;
  padding: clamp(0.6rem, 1.6vw, 1.6rem) clamp(2rem, 5vw, 5rem) clamp(0.35rem, 1vw, 0.9rem);
  text-align: center;
}

.dreams-page h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  color: var(--coral);
  font-weight: 400;
  line-height: 0.68;
  letter-spacing: -0.055em;
}

.title-number {
  color: var(--rose);
  font-size: clamp(6.8rem, 16vw, 14.5rem);
  letter-spacing: -0.1em;
  opacity: 0.5;
}

.title-word {
  margin-left: clamp(3.8rem, 9vw, 8rem);
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  letter-spacing: -0.045em;
}

.intro {
  max-width: 32rem;
  margin: clamp(0.55rem, 1vw, 1rem) auto 0;
  color: var(--coral);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-style: italic;
  line-height: 1.45;
}

.dreams-section {
  min-height: 0;
  padding: clamp(1.6rem, 2.3vw, 2.4rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 3vw, 3.5rem);
  color: var(--coral);
}

.dream-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 4vw, 4.5rem);
  row-gap: clamp(1.4rem, 2.1vw, 2.45rem);
  max-width: 92rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: dreams;
}

.dream {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.22rem;
  min-width: 0;
  counter-increment: dreams;
  font-size: clamp(0.9rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: none;
  text-wrap: pretty;
  transition: transform 180ms ease, color 180ms ease;
}

.dream::before {
  content: counter(dreams) ".";
  opacity: 1;
  font-size: 1em;
  font-variant-numeric: tabular-nums;
}

.dream:hover {
  color: #c76156;
  transform: translateX(0.22rem);
}

.dream a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.dream a:hover {
  text-decoration: underline;
}

.dream--featured {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  margin-top: clamp(1rem, 2vw, 2rem);
}

.dream--complete {
  color: #fdab02;
}

.dream--complete:hover {
  color: #fdab02;
}

.dream--complete a span {
  text-decoration: line-through;
  text-decoration-color: #fdab02;
  text-decoration-thickness: 1.5px;
}

@media (min-width: 900px) {
  .dream-grid {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
  }

  .dream {
    white-space: nowrap;
    text-wrap: normal;
  }
}

.unfinished {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  color: rgba(255, 250, 243, 0.85);
  text-align: center;
}

.unfinished p {
  margin: 0;
  font-style: italic;
}

.unfinished span {
  color: #f4d892;
  font-size: 0.75rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  min-height: 5rem;
  padding: 1.25rem var(--gutter);
  color: rgba(96, 91, 81, 0.82);
  background: #f7aaa2;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
}

.dreams-page .site-footer {
  background: transparent;
  padding: 1.25rem clamp(2rem, 5vw, 5rem);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  text-underline-offset: 0.25em;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Introduction page */

.home-page {
  min-height: 100svh;
  background-color: var(--cream);
  background-image: url("assets/home-stars-background.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-page .site-header {
  min-height: clamp(5.35rem, 7.2vw, 6rem);
  padding: 1.15rem clamp(3rem, 5.75vw, 4.75rem) 0.85rem;
}

.home-main {
  display: block;
  min-height: calc(100svh - 11rem);
  padding: clamp(4rem, 7vw, 5.2rem) var(--gutter) 2rem;
}

.home-intro {
  position: relative;
  z-index: 1;
  width: min(100%, 62.5rem);
  margin: 0 auto;
}

.home-intro p {
  max-width: none;
  margin: 0 0 clamp(1.15rem, 2vw, 1.65rem);
  color: #12100d;
  font-size: clamp(0.96rem, 1.24vw, 1.08rem);
  line-height: 2.05;
  text-align: justify;
  text-align-last: left;
}

.home-lede-title {
  font-weight: 400;
}

.home-highlight {
  color: #fdab02;
}

.home-page .site-footer {
  background: transparent;
  padding-top: 0.75rem;
}

/* Projects page */

.projects-page {
  min-height: 100svh;
}

.projects-main {
  display: grid;
  align-items: start;
  min-height: calc(100svh - 11.5rem);
  padding: clamp(1.5rem, 4vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 4.5rem);
  width: min(100%, 82rem);
  margin: 0 auto;
}

.project-card {
  min-width: 0;
  text-align: center;
}

.project-illustration {
  width: 100%;
  height: clamp(15rem, 27vw, 23rem);
  background-image: url("assets/projects-illustrations.png");
  background-size: 300% auto;
  background-repeat: no-repeat;
}

.project-illustration--left {
  background-position: left center;
}

.project-illustration--centre {
  background-position: center center;
}

.project-illustration--right {
  background-position: right center;
}

.project-card h2 {
  margin: -0.3rem 0 0.75rem;
  color: #2f2c27;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  color: #2f2c27;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.projects-page .site-footer {
  background: transparent;
}

/* About page */

.about-page {
  min-height: 100svh;
}

.about-main {
  position: relative;
  min-height: calc(100svh - 11.5rem);
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) 2.25rem;
}

.about-copy {
  position: relative;
  z-index: 1;
  width: min(78%, 63rem);
}

.about-copy section {
  margin-bottom: clamp(1rem, 1.8vw, 1.6rem);
}

.about-copy section:not(:first-child) {
  max-width: 36rem;
}

.about-title,
.about-copy h2 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
}

.about-title {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.about-copy h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.about-copy p,
.about-copy li {
  color: #2f2c27;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.34;
}

.about-copy p {
  margin: 0;
}

.about-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-copy ul li::before {
  content: "– ";
}

.about-copy ol {
  margin: 0;
  padding-left: 1.45rem;
}

.about-copy ol li {
  padding-left: 0.15rem;
}

.about-illustration {
  position: absolute;
  z-index: 0;
  right: clamp(0.5rem, 3vw, 3rem);
  bottom: 0;
  width: min(43vw, 36rem);
  height: auto;
}

.about-page .site-footer {
  background: transparent;
}

/* Individual dream page */

.dream-entry-page {
  min-height: 100svh;
  background: var(--cream);
}

.dream-story-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 100%;
  pointer-events: none;
  background-image: url("assets/explanatory-background.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.46;
}

.dream-paris-loop-page .dream-story-art {
  background-image: url("assets/paris-loop-background.png");
  opacity: 0.72;
}

.dream-paris-photo-space {
  display: none;
}

.dream-entry-main {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 11.5rem);
  padding: clamp(3rem, 8vw, 8rem) var(--gutter);
}

.dream-entry {
  width: min(100%, 48rem);
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  color: var(--ink);
  text-underline-offset: 0.25em;
}

.dream-entry-label {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dream-entry-title {
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ink);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-decoration: line-through;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.dream-entry-copy {
  max-width: 35rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(96, 91, 81, 0.32);
}

.dream-entry-copy p {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}

.dream-entry-page .site-footer {
  background: transparent;
}

.dream-explainer-main {
  min-height: calc(100svh - 11.5rem);
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(4rem, 8vw, 8rem);
}

.dream-explainer {
  width: min(100%, 76rem);
  margin: 0 auto;
}

.dream-ocean-page .dream-explainer-main {
  min-height: 0;
  padding-bottom: clamp(0.5rem, 1.2vw, 1rem);
}

.dream-ocean-page .site-footer {
  min-height: 0;
  padding-top: 0.5rem;
}

.dream-explainer--visual {
  width: min(100%, 84rem);
}

.dream-explainer--palme {
  width: min(100%, 82rem);
}

.dream-explainer--capitals {
  width: min(100%, 74rem);
}

.dream-explainer-title {
  width: fit-content;
  margin: 0 auto clamp(4rem, 7vw, 6.5rem);
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-decoration: line-through;
  text-decoration-color: #fdab02;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.dream-explainer-title--open {
  text-decoration: none;
}

.dream-ocean-page .dream-explainer-title {
  margin-bottom: clamp(-1.45rem, -1.8vw, -0.75rem);
}

.dream-palme-page .dream-explainer-main {
  padding-top: clamp(0.25rem, 1vw, 1rem);
}

.dream-palme-page .dream-explainer-title {
  margin-bottom: clamp(3rem, 5.5vw, 5rem);
}

.dream-capitals-page .dream-explainer-title {
  margin-bottom: clamp(3.25rem, 5.25vw, 4.75rem);
}

.dream-explainer-copy {
  max-width: 70rem;
  color: var(--ink);
}

.dream-explainer-copy p {
  margin: 0 0 1.55rem;
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.dream-explainer-copy a {
  color: #fdab02;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ocean-progress {
  margin: clamp(0.35rem, 0.8vw, 0.7rem) 0 0;
  color: #fdab02;
  font-size: clamp(0.95rem, 1.45vw, 1.45rem);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
}

.ocean-map {
  display: block;
  width: min(100%, 53.8rem);
  height: auto;
  margin: 0 auto;
}

.palme-copy {
  max-width: 72rem;
  margin: 0 auto clamp(4rem, 7vw, 6.25rem);
  color: var(--ink);
}

.palme-copy p {
  margin: 0 0 clamp(1rem, 1.6vw, 1.45rem);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.palme-count span {
  color: #fdab02;
}

.capitals-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: clamp(2.5rem, 7vw, 7rem);
  width: min(100%, 65rem);
  margin: 0 auto;
}

.capitals-column {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capitals-column li {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.capitals-column li.is-visited {
  color: #fdab02;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: space-between;
  gap: clamp(2.25rem, 4.8vw, 4.75rem) clamp(2rem, 5vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.poster-card a {
  display: block;
  width: clamp(6.5rem, 10vw, 9rem);
  line-height: 0;
}

.poster-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.poster-card a:hover img {
  transform: translateY(-0.25rem);
}

.story-highlight {
  color: #fdab02;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.dream-explainer-copy a.story-link--quiet,
.dream-explainer-copy a.story-link--quiet:hover {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 820px) {
  .dream-paris-loop-page .dream-explainer-copy {
    max-width: 72rem;
  }

  .dream-paris-photo-space {
    display: block;
    float: right;
    width: clamp(13.5rem, 24vw, 22rem);
    height: clamp(18rem, 35vw, 31rem);
    margin: clamp(0.75rem, 2vw, 1.8rem) 0 1.5rem clamp(2rem, 5vw, 5rem);
    shape-outside: polygon(
      42% 0,
      78% 5%,
      100% 25%,
      100% 100%,
      20% 100%,
      0 55%,
      18% 26%
    );
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page-art {
    right: 0;
    left: 0;
    height: 24rem;
    background-position: top center;
    background-image: url("assets/blog-background.png");
    background-size: 150% auto;
  }

  .site-header {
    min-height: 5.25rem;
    gap: 1rem;
  }

  .site-nav {
    gap: clamp(0.8rem, 3vw, 1.25rem);
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .hero {
    min-height: clamp(30rem, 110vw, 38rem);
    padding-top: 1.4rem;
  }

  .dreams-page .hero {
    min-height: 0;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-bottom: 0.45rem;
  }

  .title-number {
    font-size: clamp(6.8rem, 36vw, 10rem);
  }

  .title-word {
    margin-left: clamp(3.4rem, 18vw, 5.2rem);
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .intro {
    max-width: 15rem;
    margin-top: 2.5rem;
  }

  .dreams-page .intro {
    max-width: 22rem;
    margin-top: 0.65rem;
  }

  .dreams-section {
    padding-top: 3.25rem;
  }

  .dreams-page .dreams-section {
    padding: 1.85rem 1.5rem 2.25rem;
  }

  .dream-grid {
    grid-template-columns: 1fr;
    row-gap: 1.55rem;
  }

  .dream {
    grid-template-columns: 3.2rem 1fr;
    font-size: clamp(1.2rem, 5.2vw, 1.42rem);
    line-height: 1.2;
  }

  .poster-grid {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 2rem 2.5rem;
  }

  .poster-card a {
    width: min(36vw, 8.5rem);
  }

  .capitals-grid {
    grid-template-columns: 1fr;
    justify-content: start;
    width: min(100%, 26rem);
    gap: 0.18rem;
  }

  .capitals-column li {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    white-space: normal;
  }

  .dream-entry-main {
    min-height: calc(100svh - 10.25rem);
  }

  .home-main {
    min-height: calc(100svh - 10.25rem);
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .home-intro {
    width: 100%;
  }

  .home-intro p {
    max-width: 32rem;
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.62;
  }

  .projects-main {
    min-height: calc(100svh - 10.25rem);
    padding-top: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    width: min(100%, 27rem);
  }

  .project-illustration {
    height: min(78vw, 21rem);
    background-size: 300% auto;
  }

  .project-card h2 {
    margin-top: -0.75rem;
  }

  .about-main {
    min-height: calc(100svh - 10.25rem);
  }

  .about-copy {
    width: 100%;
  }

  .about-copy section:not(:first-child) {
    max-width: 58%;
  }

  .about-illustration {
    right: -6vw;
    width: min(55vw, 27rem);
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 7.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .about-main {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .about-copy section:not(:first-child) {
    max-width: 100%;
  }

  .about-illustration {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: center;
    width: min(100%, 27rem);
    margin-top: 0.75rem;
  }

  .footer-links {
    gap: 0.65rem;
  }
}

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

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