:root {
  --cream: #f8f5ef;
  --paper: #eee8df;
  --ink: #191817;
  --muted: #77716a;
  --blush: #e7c9c5;
  --red: #9c3f37;
  --butter: #e9d99b;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}


img {
  width: 100%;
  display: block;
}


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


.site-header {
  width: 100%;
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 4vw;

  border-bottom: 1px solid rgba(25, 24, 23, 0.15);

  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(10px);
}


.logo {
  font-family: var(--serif);
  font-size: 1.65rem;
}


.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}


.nav a {
  font-size: 0.82rem;
  text-transform: lowercase;
}


.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


.menu-button {
  display: none;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  cursor: pointer;
}



/* HERO */

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8vw 5vw;

  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 8vw;
  align-items: center;
}


.eyebrow,
.small-label,
.post-category {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.72;
  letter-spacing: -0.04em;
  margin: 1rem 0 2rem;
}


.hero h1 span {
  display: block;
  padding-left: 8vw;
}


.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}


.hero-description {
  margin: 2rem 0;
  max-width: 470px;
  color: var(--muted);
  font-size: 0.95rem;
}


.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}


.hero-photo-wrapper {
  position: relative;
}


.hero-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}


.photo-note {
  position: absolute;
  top: -18px;
  right: -10px;

  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;

  transform: rotate(7deg);

  background: var(--butter);
  padding: 0.3rem 0.65rem;

  z-index: 2;
}


.photo-caption {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}



/* MARQUEE */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.75rem 0;
}


.marquee-track {
  display: flex;
  width: max-content;

  animation: marquee 28s linear infinite;
}


.marquee-track span {
  white-space: nowrap;
  margin-right: 3rem;

  font-size: 0.73rem;
  letter-spacing: 0.12em;
}


@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}



/* GENERAL SECTIONS */

.section,
.currently-section,
.camera-roll,
.internet-things,
.about,
.keep-in-touch {
  padding: 8rem 5vw;
}


.section,
.internet-things {
  max-width: 1400px;
  margin: auto;
}


.section-heading {
  margin-bottom: 4rem;
}


.section-heading h2,
.about h2,
.keep-in-touch h2 {
  font-family: var(--serif);
  font-weight: 400;

  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.9;

  margin: 0.4rem 0 1rem;
}


.section-heading > p:last-child {
  color: var(--muted);
}



/* POSTS */

.post-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 0.75fr)
    minmax(0, 0.75fr);

  gap: 3rem 2rem;

  align-items: start;
}


.post-featured {
  grid-row: span 2;
}


.post img {
  aspect-ratio: 4 / 5;
  object-fit: cover;

  transition: transform 0.5s ease;
}


.post-featured img {
  aspect-ratio: 4 / 5.7;
}


.post a:hover img {
  transform: scale(1.015);
}


.post-category {
  margin-top: 1rem;
  color: var(--muted);
}


.post h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;

  margin: 0.4rem 0;
}


.post-featured h3 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
}


.post h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


.post-date {
  font-size: 0.72rem;
  color: var(--muted);
}



/* CURRENTLY */

.currently-section {
  background: var(--paper);
}


.currently-section .section-heading,
.camera-roll .section-heading {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}


.currently-grid {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


.currently-card {
  background: var(--cream);

  border: 1px solid rgba(25, 24, 23, 0.18);

  padding: 2.7rem 2rem;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.currently-card span {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}


.currently-card strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;

  margin: 1rem 0 0.4rem;
}


.currently-card p {
  color: var(--muted);
  font-size: 0.78rem;
}


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


.rotate-right {
  transform: rotate(1.2deg);
}



/* CAMERA ROLL */

.camera-roll {
  background: #f3ede4;
}


.photo-collage {
  max-width: 1250px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(12, 1fr);

  gap: 1.5rem;
  align-items: start;
}


.collage-item:nth-child(1) {
  grid-column: 1 / 5;
}


.collage-item:nth-child(2) {
  grid-column: 6 / 9;
  margin-top: 6rem;
}


.collage-item:nth-child(3) {
  grid-column: 9 / 13;
}


.collage-item:nth-child(4) {
  grid-column: 2 / 6;
  margin-top: 2rem;
}


.collage-item:nth-child(5) {
  grid-column: 7 / 11;
  margin-top: 5rem;
}


.collage-item img {
  height: 100%;
  object-fit: cover;
}


.collage-item figcaption {
  margin-top: 0.5rem;

  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}


.tall img {
  aspect-ratio: 3 / 4;
}


.wide img {
  aspect-ratio: 4 / 3;
}



/* FEATURED ENTRY */

.featured-entry {
  padding: 10rem 5vw;

  max-width: 1400px;
  margin: auto;

  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6vw;
  align-items: center;
}


.featured-entry h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 400;
  line-height: 0.9;

  margin: 1rem 0;
}


.featured-excerpt {
  color: var(--muted);
  margin: 2rem 0;

  max-width: 520px;
}


.featured-entry img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}



/* INTERNET THINGS */

.link-list {
  border-top: 1px solid var(--ink);
}


.link-list a {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1rem;
  align-items: center;

  padding: 1.5rem 0;

  border-bottom: 1px solid rgba(25, 24, 23, 0.3);

  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
}


.link-list a span {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--muted);
}


.link-list a:hover {
  padding-left: 1rem;
}



/* ABOUT */

.about {
  max-width: 1250px;
  margin: auto;

  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 7vw;
  align-items: center;
}


.about-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}


.about-copy > p {
  margin-bottom: 1rem;
  max-width: 620px;
}


.about-copy .small-label {
  margin-bottom: 0;
}


.handwritten {
  font-family: var(--serif);
  font-style: italic;

  font-size: 1.6rem;

  margin-top: 2rem;
}



/* KEEP IN TOUCH */

.keep-in-touch {
  text-align: center;
  border-top: 1px solid rgba(25, 24, 23, 0.2);
}


.keep-in-touch h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}


.keep-in-touch > p {
  color: var(--muted);
}


.social-row {
  margin-top: 2rem;

  display: flex;
  justify-content: center;
  gap: 2rem;
}


.social-row a {
  text-decoration: underline;
  text-underline-offset: 5px;
}



/* FOOTER */

footer {
  background: var(--ink);
  color: var(--cream);

  padding: 6rem 5vw 3rem;

  text-align: center;
}


footer h2 {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 1;
}


.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;

  margin: 3rem 0;
}


footer p {
  font-size: 0.8rem;
}


footer .tiny {
  margin-top: 2rem;
  opacity: 0.55;

  font-size: 0.65rem;
}



/* MOBILE */

@media (max-width: 850px) {

  .site-header {
    padding: 0 1.3rem;
  }


  .menu-button {
    display: block;
  }


  .nav {
    display: none;

    position: absolute;
    top: 72px;
    left: 0;

    width: 100%;

    background: var(--cream);

    padding: 2rem;

    flex-direction: column;
    align-items: flex-start;

    border-bottom: 1px solid var(--ink);
  }


  .nav.open {
    display: flex;
  }


  .hero {
    grid-template-columns: 1fr;

    padding: 5rem 1.3rem;

    gap: 4rem;
  }


  .hero h1 {
    font-size: clamp(4.5rem, 22vw, 8rem);
  }


  .hero h1 span {
    padding-left: 12vw;
  }


  .hero-photo-wrapper {
    width: 88%;
    margin-left: auto;
  }


  .section,
  .currently-section,
  .camera-roll,
  .internet-things,
  .about,
  .keep-in-touch {
    padding: 5rem 1.3rem;
  }


  .post-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }


  .post-featured {
    grid-row: auto;
  }


  .post-featured h3,
  .post h3 {
    font-size: 2.6rem;
  }


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


  .rotate-left,
  .rotate-right {
    transform: none;
  }


  .photo-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }


  .collage-item:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }


  .collage-item:nth-child(1),
  .collage-item:nth-child(4) {
    grid-column: 1 / -1;
  }


  .featured-entry {
    grid-template-columns: 1fr;

    padding: 6rem 1.3rem;
  }


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


  .link-list a {
    grid-template-columns: 30px 1fr auto;
  }


  .social-row,
  .footer-links {
    flex-wrap: wrap;
  }

}