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

:root {
  --paper: #fffefa;
  --ink: #4d4034;
  --soft-ink: #5f5145;
  --muted: #8a8176;
  --sage: #b8bea2;
  --sage-deep: #626b4b;
  --sand: #d6d3bf;
  --smoke: #888d94;
  --line: rgba(77, 64, 52, 0.32);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--soft {
  transform: translateY(18px);
  transition-duration: 1150ms;
}

.reveal--image {
  transform: translateY(46px) scale(0.985);
  filter: saturate(0.88) contrast(0.96);
  transition:
    opacity 950ms ease,
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1100ms ease;
}

.reveal--image.is-visible {
  transform: translateY(0) scale(1);
  filter: saturate(1) contrast(1);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(120px, 180px) 1fr;
  align-items: start;
  padding: 54px 9vw 0;
  color: #fff;
}

.journal .site-header,
.article .site-header {
  position: absolute;
}

.brand {
  grid-column: 2;
  justify-self: center;
  width: clamp(118px, 15vw, 178px);
}

.brand img {
  width: 100%;
}

.nav {
  justify-self: end;
  display: flex;
  gap: 28px;
  padding-top: 10px;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  line-height: 1.25;
}

.nav a:hover { border-color: currentColor; }

.brand,
.nav {
  animation: header-fade 1000ms ease 220ms both;
}

.home-hero {
  min-height: clamp(540px, 53vw, 760px);
  background:
    linear-gradient(rgba(53, 47, 38, 0.05), rgba(53, 47, 38, 0.05)),
    url("https://images.squarespace-cdn.com/content/v1/64ede832944a8c46a46c7f9a/e4975c58-7362-4c54-8bb2-0ac5dbdb9d01/cathrin-dance-3.jpg?format=original") center 35% / cover;
  animation: hero-drift 1600ms ease-out both;
}

.gallery-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 36px 88px;
}

.gallery-section h1,
.about-section h2,
.testimonials h2,
.contact-section h2,
.recent-posts h2 {
  margin: 0 0 42px;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.gallery-grid {
  columns: 3 300px;
  column-gap: 30px;
}

.gallery-grid img {
  width: 100%;
  margin: 0 0 30px;
  break-inside: avoid;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 420px);
  gap: clamp(48px, 9vw, 118px);
  justify-content: center;
  align-items: center;
  padding: 92px 10vw;
  background: var(--sand);
}

.about-section h2,
.contact-section h2 {
  text-align: left;
}

.about-copy {
  font-size: 0.98rem;
}

.about-copy p {
  margin: 0 0 1.05rem;
}

.about-portrait {
  width: 100%;
}

.quote-section {
  min-height: 475px;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  background:
    linear-gradient(rgba(28, 27, 24, 0.18), rgba(28, 27, 24, 0.18)),
    url("https://images.squarespace-cdn.com/content/v1/64ede832944a8c46a46c7f9a/b1502d3f-0829-4c76-a203-6bb83eba34d6/bq_2000px.jpg?format=original") center / cover;
}

.quote-section img {
  width: min(520px, 80vw);
}

.testimonials {
  background: var(--smoke);
  color: #fff;
  padding: 90px 10vw 104px;
}

.testimonials > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 460px));
  justify-content: center;
  gap: clamp(50px, 10vw, 150px);
}

.testimonials blockquote {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(320px, 450px);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
  justify-content: center;
  padding: 78px 8vw 88px;
  background: var(--sand);
}

.contact-copy p {
  margin: 0 0 1.05rem;
}

.contact-section form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-top: 20px;
  font-size: 0.82rem;
}

.contact-section label {
  display: grid;
  gap: 5px;
}

.contact-section label:nth-child(n + 3) {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid #9f9b8e;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
  color: var(--ink);
  font: 0.95rem var(--serif);
}

button,
.button {
  display: inline-block;
  min-width: 180px;
  border: 1px solid currentColor;
  background: transparent;
  padding: 13px 28px;
  color: inherit;
  font: 0.9rem var(--serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

button:hover,
.button:hover,
.read-more:hover {
  transform: translateY(-2px);
}

button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 92px;
  border-width: 2px;
}

.journal-band {
  position: relative;
  overflow: hidden;
  background: var(--sage-deep);
  color: #fff;
  text-align: center;
  padding: 82px 24px 86px;
}

.journal-band img {
  width: 280px;
  margin: 0 auto -78px;
  opacity: 0.6;
}

.journal-band h2,
.journal-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(3.35rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.journal-band p {
  margin: 20px 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-style: italic;
}

.journal-band__small {
  font-size: 1rem !important;
  font-style: normal !important;
}

.journal-band .button {
  margin: 34px 28px 0;
}

.instagram-section {
  padding: 72px 0 88px;
  background: #fff;
  text-align: center;
}

.instagram-section h2 {
  margin: 0 24px 38px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 400;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.instagram-grid a {
  display: block;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 1 / 1;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.instagram-grid a:hover img {
  transform: scale(1.045);
}

.recent-posts {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 36px 106px;
}

.journal-hero {
  display: grid;
  align-items: end;
  min-height: 540px;
  padding: 180px 14vw 86px;
  background: var(--sage);
  color: #fff;
}

.journal-hero > div {
  max-width: 800px;
}

.journal-hero p {
  margin: 26px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
}

.post-list {
  max-width: 1160px;
  margin: 0 auto;
  padding: 62px 24px 104px;
}

.post-list--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 0;
}

.post-card {
  margin: 0 0 116px;
  text-align: center;
}

.post-card--compact {
  margin: 0;
}

.post-card img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  margin-bottom: 30px;
}

.post-card time,
.post__meta {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.post-card h2 {
  max-width: 1030px;
  margin: 0 auto 24px;
  color: var(--soft-ink);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.14;
}

.post-card--compact h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.15rem);
  line-height: 1.18;
}

.post-card h2 a {
  text-decoration: none;
  transition: color 220ms ease;
}

.post-card h2 a:hover {
  color: #756657;
}

.post-card p {
  max-width: 920px;
  margin: 0 auto 18px;
  color: var(--ink);
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.post {
  max-width: 640px;
  margin: 0 auto;
  padding: 170px 24px 98px;
}

.article .site-header {
  color: rgba(255, 255, 255, 0.86);
}

.article {
  background: #fff;
}

.post__header h1 {
  margin: 0 0 42px;
  color: var(--soft-ink);
  font-size: clamp(2.35rem, 4.3vw, 4.05rem);
  font-weight: 400;
  line-height: 1.12;
}

.post__cover,
.post__body img,
.article-gallery img {
  width: 100%;
  margin: 34px 0;
}

.post__body {
  font-size: 0.98rem;
}

.post__body p {
  margin: 0 0 1.05rem;
}

.post__body strong {
  display: block;
  margin: 2.05rem 0 0.9rem;
  font-weight: 400;
  font-size: 1.15rem;
}

.post__body h2 {
  margin: 52px 0 18px;
  color: var(--soft-ink);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.16;
}

.post__body blockquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
}

.post__body ol {
  margin: 0 0 1.4rem 1.3rem;
  padding: 0;
}

.post__body li {
  margin-bottom: 0.42rem;
}

.article-gallery {
  margin-top: 54px;
}

.article-gallery figure {
  margin: 0;
}

.article-gallery figure:nth-child(4n) {
  width: 50%;
  margin-left: auto;
}

.article-gallery figure:nth-child(4n + 1) {
  width: 82%;
}

.post__footer {
  margin-top: 78px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.post__footer a {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.post__footer img {
  width: 44%;
  margin-left: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 62px 8vw 46px;
  background: var(--sand);
  text-align: center;
  font-size: 0.95rem;
}

.footer-dragonfly {
  width: 150px;
  justify-self: start;
}

.site-footer p {
  margin: 0.25rem 0;
}

@keyframes header-fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    opacity: 0.82;
    background-position: center 42%;
  }
  to {
    opacity: 1;
    background-position: center 35%;
  }
}

.footer-credit {
  grid-column: 1 / -1;
  margin-top: 28px !important;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
    padding: 28px 24px 0;
  }

  .journal .site-header,
  .article .site-header {
    position: static;
    padding-bottom: 24px;
    background: var(--sage);
  }

  .brand,
  .nav {
    grid-column: auto;
    justify-self: center;
  }

  .home-hero {
    min-height: 68vh;
  }

  .about-section,
  .contact-section,
  .testimonials > div,
  .post-list--compact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-section form {
    grid-template-columns: 1fr;
  }

  .post-card {
    margin-bottom: 76px;
  }

  .post-card h2 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .post {
    padding-top: 72px;
  }

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

  .article-gallery figure,
  .article-gallery figure:nth-child(4n),
  .article-gallery figure:nth-child(4n + 1),
  .post__footer img {
    width: 100%;
  }

  .footer-dragonfly {
    justify-self: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .reveal--soft,
  .reveal--image {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
