:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #f0ebe3;
  --ink: #292621;
  --muted: #79746b;
  --line: #ded8cd;
  --accent: #d87554;
  --accent-soft: #f6e3d9;
  --sent-bg: color-mix(in srgb, var(--accent-soft) 82%, var(--surface));
  --peach: #fbe9dd;
  --sage: #e4ecdf;
  --rose: #f7e2e4;
  --shadow: 0 1px 2px rgb(50 40 32 / 6%), 0 8px 24px rgb(50 40 32 / 8%);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1714;
  --surface: #251f19;
  --surface-2: #2e2720;
  --ink: #f3ece2;
  --muted: #a89d90;
  --line: #3a322a;
  --accent: #e58a68;
  --accent-soft: #3a2a22;
  --sent-bg: color-mix(in srgb, var(--accent-soft) 82%, var(--surface));
  --peach: #3a2b22;
  --sage: #232b22;
  --rose: #382427;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
}

:root[data-accent="rose"] { --accent: #cf5d7a; --accent-soft: #f7dfe5; }
:root[data-accent="sage"] { --accent: #6d8f6a; --accent-soft: #e2ecdf; }
:root[data-accent="ocean"] { --accent: #4f86a8; --accent-soft: #dde9f1; }
:root[data-theme="dark"][data-accent="rose"] { --accent: #e87c98; --accent-soft: #3d2530; }
:root[data-theme="dark"][data-accent="sage"] { --accent: #8fb58b; --accent-soft: #263226; }
:root[data-theme="dark"][data-accent="ocean"] { --accent: #78aecb; --accent-soft: #22303a; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site-header {
  height: 82px;
  padding: 0 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1.1px;
}

.wordmark-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -2px;
  padding-right: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-nav-toggle {
  display: none;
}

.desktop-nav a,
.header-link,
.back-to-top {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.header-link:hover,
.back-to-top:hover {
  color: var(--accent);
}

.header-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}

.header-link span {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 76px 11.2% 90px 13.1%;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 5%;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 18px 0 0;
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 29px 0 19px;
  font-family: var(--serif);
  font-size: clamp(55px, 6.4vw, 83px);
  font-weight: 500;
  letter-spacing: -3.8px;
  line-height: 1.08;
}

.hero h1 em,
.meaning-title h2 em,
.little-things-intro h2 em,
.closing h2 em {
  color: var(--accent);
  font-weight: 500;
}

.hero-description {
  max-width: 385px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-description span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.button {
  min-height: 47px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-dark {
  background: var(--ink);
  color: var(--bg);
}

.button-dark:hover {
  background: var(--ink);
}

.button span {
  color: var(--accent);
  font-size: 14px;
}

.hero-signoff {
  margin-top: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.signoff-line {
  width: 28px;
  height: 1px;
  background: var(--line);
}

.signoff-heart {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 15px;
}

.hero-art {
  position: relative;
  width: min(100%, 450px);
  aspect-ratio: 0.78;
  justify-self: end;
  overflow: hidden;
  border-radius: 48% 48% 3px 3px;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 39%;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-art::before {
  z-index: 1;
  inset: 3% 4% 3%;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 48%, transparent);
  border-radius: 48% 48% 2px 2px;
}

.hero-art::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 23%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--ink) 38%, transparent));
}

.art-sticker {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 14%;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  transform: rotate(9deg);
}

.art-sticker span {
  color: var(--accent);
  font-family: var(--sans);
}

.art-bottom-label {
  position: absolute;
  z-index: 2;
  bottom: 5%;
  left: 50%;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-index {
  position: absolute;
  right: 7.2%;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.hero-index span {
  width: 31px;
  height: 1px;
  background: var(--line);
}

.section-wrap {
  padding-right: 13.1%;
  padding-left: 13.1%;
}

.meaning {
  padding-top: 91px;
  padding-bottom: 107px;
  background: var(--surface-2);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-number {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.35px;
}

.meaning-grid {
  margin-top: 66px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 10%;
}

.meaning-title h2,
.little-things-intro h2,
.closing h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -1.7px;
  line-height: 1.16;
}

.meaning-title > p,
.little-things-intro > p {
  max-width: 330px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.meaning-card {
  position: relative;
  min-height: 310px;
  padding: 33px 30px 22px;
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.meaning-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.idea-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 59px;
  line-height: 1.2;
}

.name-piece {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 33px;
  font-style: italic;
}

.piece-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.3px;
}

.piece-translation {
  margin-top: 8px;
  color: var(--ink);
  font-size: 11px;
}

.piece-translation em {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
}

.meaning-plus {
  align-self: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 23px;
  text-align: center;
}

.meaning-result {
  grid-column: 1 / -1;
  margin-top: 23px;
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--accent-soft);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.3px;
}

.meaning-result strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
  font-weight: 500;
}

.meaning-result strong span {
  color: var(--accent);
  font-family: var(--sans);
}

.card-scribble {
  position: absolute;
  top: 13px;
  right: 17px;
  color: var(--accent);
  font-size: 17px;
}

.little-things {
  padding: 92px 0 108px;
}

.little-things-intro {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.little-things-intro h2 {
  margin-bottom: 0;
}

.little-things-intro > p {
  max-width: 270px;
  margin-bottom: 6px;
}

.moment-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.moment-card {
  position: relative;
  min-height: 241px;
  padding: 24px 23px 25px;
  overflow: hidden;
}

.moment-card-peach {
  background: var(--line);
}

.moment-card-lilac {
  background: var(--surface-2);
}

.moment-card-green {
  background: var(--sage);
}

.moment-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
}

.moment-count {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.moment-card h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.18;
}

.moment-card p {
  max-width: 220px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.moment-doodle {
  position: absolute;
  right: 19px;
  bottom: 4px;
  color: color-mix(in srgb, var(--muted) 20%, transparent);
  font-family: var(--serif);
  font-size: 67px;
  transform: rotate(-13deg);
}

.moment-card-lilac .moment-doodle {
  color: color-mix(in srgb, var(--muted) 22%, transparent);
}

.moment-card-green .moment-doodle {
  color: color-mix(in srgb, var(--muted) 21%, transparent);
  font-size: 54px;
}

.closing {
  position: relative;
  padding-top: 96px;
  padding-bottom: 92px;
  overflow: hidden;
  background: var(--surface-2);
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
}

.closing h2 {
  margin: 24px 0 13px;
  font-size: clamp(39px, 5vw, 61px);
}

.closing-description {
  max-width: 385px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.closing-signoff {
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.closing-signoff span {
  color: var(--accent);
  font-family: var(--sans);
}

.closing-decoration {
  position: absolute;
  top: 23px;
  right: 13%;
  color: color-mix(in srgb, var(--accent) 15%, transparent);
  font-family: var(--serif);
  font-size: 100px;
  transform: rotate(14deg);
}

.site-footer {
  min-height: 93px;
  padding: 18px 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-wordmark {
  font-size: 17px;
}

.footer-wordmark .wordmark-icon {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.site-footer p,
.back-to-top {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.note-dialog {
  position: fixed;
  width: min(440px, calc(100% - 36px));
  padding: 47px 42px 38px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.note-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 48%, transparent);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  top: 11px;
  right: 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
}

.dialog-heart {
  display: block;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 31px;
}

.note-dialog .eyebrow {
  justify-content: center;
  font-size: 8px;
}

.note-dialog h2 {
  margin: 19px 0 13px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.note-message {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.note-signoff {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.note-signoff span {
  color: var(--accent);
  font-family: var(--sans);
}

@media (min-width: 1440px) {
  .hero {
    padding-right: max(11.2%, calc((100% - 1110px) / 2));
    padding-left: max(13.1%, calc((100% - 1035px) / 2));
  }

  .section-wrap {
    padding-right: max(13.1%, calc((100% - 1035px) / 2));
    padding-left: max(13.1%, calc((100% - 1035px) / 2));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }

  .desktop-nav {
    gap: 19px;
  }

  .hero {
    min-height: 590px;
    padding: 60px 7% 80px;
    gap: 3%;
  }

  .hero h1 {
    font-size: clamp(49px, 7vw, 68px);
  }

  .section-wrap {
    padding-right: 7%;
    padding-left: 7%;
  }

  .meaning-grid {
    gap: 5%;
  }

  .meaning-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 20px;
  }

  .site-header {
    position: relative;
    z-index: 2;
    height: 68px;
    padding: 0 22px;
    background: var(--bg);
  }

  .wordmark {
    font-size: 19px;
  }

  .desktop-nav {
    display: none;
  }

  .desktop-nav.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 8px 22px 14px;
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }

  .desktop-nav.is-open a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 7%, transparent);
  }

  .desktop-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-nav-toggle:focus-visible,
  .desktop-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .header-link {
    font-size: 10px;
  }

  .hero {
    padding: 57px 25px 73px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    margin-top: 23px;
    font-size: clamp(53px, 13vw, 72px);
    letter-spacing: -3px;
  }

  .hero-description {
    max-width: 350px;
    font-size: 12px;
  }

  .hero-signoff {
    margin-top: 28px;
  }

  .hero-art {
    width: min(88%, 370px);
    justify-self: center;
  }

  .hero-index {
    right: 25px;
    bottom: 29px;
  }

  .section-wrap {
    padding-right: 25px;
    padding-left: 25px;
  }

  .meaning {
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .section-number {
    padding-top: 2px;
    font-size: 7px;
    text-align: right;
  }

  .meaning-grid {
    margin-top: 44px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .meaning-title h2,
  .little-things-intro h2 {
    font-size: 42px;
  }

  .meaning-card {
    min-height: 280px;
    padding: 29px 15px 19px;
  }

  .idea-number {
    font-size: 52px;
  }

  .name-piece {
    font-size: 27px;
  }

  .piece-label {
    font-size: 8px;
  }

  .little-things {
    padding: 68px 0 76px;
  }

  .little-things-intro {
    margin-top: 41px;
    display: block;
  }

  .little-things-intro > p {
    margin-top: 16px;
  }

  .moment-grid {
    margin-top: 29px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .moment-card {
    min-height: 216px;
    padding: 22px;
  }

  .moment-icon {
    margin-bottom: 14px;
  }

  .closing {
    padding-top: 77px;
    padding-bottom: 76px;
  }

  .closing h2 {
    font-size: 43px;
    letter-spacing: -1.5px;
  }

  .closing-decoration {
    top: 7px;
    right: 5%;
    font-size: 75px;
  }

  .site-footer {
    min-height: 84px;
    padding: 18px 21px;
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    font-size: 8px;
  }

  .note-dialog {
    padding: 42px 27px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
