:root {
  color-scheme: light;
  --milk: #fff8fb;
  --petal: #fde4ef;
  --blush: #f5a8c5;
  --rose: #df5d91;
  --cherry: #b62254;
  --sage: #7f9d82;
  --ink: #3b2730;
  --muted: #7d626d;
  --line: rgba(181, 69, 111, 0.18);
  --shadow: 0 22px 80px rgba(157, 68, 103, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 251, 0.94), rgba(253, 228, 239, 0.75)),
    var(--milk);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 248, 251, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.mood-strip,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.nav {
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cherry);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 82vh, 760px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 248, 251, 0.96) 0%, rgba(255, 248, 251, 0.74) 36%, rgba(255, 248, 251, 0.08) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 74%, var(--milk) 100%);
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding: clamp(22px, 5vw, 52px) 0;
}

.journal-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  margin-left: auto;
}

.hero-copy-block {
  max-width: 680px;
}

.daily-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.daily-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.mini-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 248, 251, 0.82);
}

.eyebrow,
.note-kicker {
  margin: 0 0 12px;
  color: var(--cherry);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 9.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: #674953;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.mood-chip {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.button.primary {
  color: #fff;
  background: var(--cherry);
  box-shadow: 0 16px 36px rgba(182, 34, 84, 0.28);
}

.button.ghost {
  color: var(--cherry);
  background: rgba(255, 255, 255, 0.72);
}

.button:hover,
.button:focus-visible,
.mood-chip:hover,
.mood-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(157, 68, 103, 0.2);
}

.section,
.diary-grid,
.palette-section,
.mood-strip,
.content-grid,
.shelf-section,
.feed-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(56px, 9vw, 108px) 0 24px;
}

.intro-section > p,
.palette-copy p,
.note-card p {
  color: var(--muted);
}

.intro-section > p {
  align-self: end;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.mood-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 42px;
}

.mood-chip {
  min-width: 92px;
  padding: 0 18px;
  color: var(--cherry);
  background: rgba(255, 255, 255, 0.68);
}

.mood-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cherry), var(--blush));
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  padding-bottom: clamp(54px, 8vw, 92px);
}

.routine-board,
.quote-board,
.planner-board,
.feed-card,
.shelf-section {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.routine-board,
.quote-board,
.planner-board {
  padding: 18px;
}

.routine-board {
  grid-row: span 2;
}

.planner-board {
  align-self: stretch;
}

.section-heading h2,
.planner-board h2 {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
}

.board-image,
.feed-card img,
.shelf-media img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.board-image {
  height: clamp(210px, 28vw, 340px);
  margin-bottom: 20px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--cherry);
}

.quote-board blockquote {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.quote-board p:not(.eyebrow),
.planner-line span,
.feed-card p,
.shelf-copy p,
.shelf-item p {
  color: var(--muted);
}

.planner-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.planner-line strong {
  color: var(--ink);
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(54px, 8vw, 92px);
}

.note-card {
  min-height: 260px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.note-card.accent {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(182, 34, 84, 0.92), rgba(245, 168, 197, 0.9)),
    var(--rose);
}

.note-card.accent .note-kicker,
.note-card.accent p {
  color: rgba(255, 255, 255, 0.82);
}

.shelf-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: clamp(54px, 8vw, 92px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(253, 228, 239, 0.82)),
    var(--petal);
}

.shelf-copy h2 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.shelf-copy .button {
  margin-top: 10px;
}

.shelf-media {
  display: grid;
  gap: 14px;
}

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

.shelf-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shelf-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.shelf-item span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cherry);
  font-weight: 900;
}

.shelf-item strong {
  display: block;
  margin-bottom: 4px;
}

.shelf-item p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.feed-section {
  padding-bottom: clamp(54px, 8vw, 92px);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feed-card {
  overflow: hidden;
}

.feed-card img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.feed-card span,
.feed-card h3,
.feed-card p {
  display: block;
  margin-inline: 18px;
}

.feed-card span {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--cherry);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feed-card h3 {
  font-size: 1.2rem;
  line-height: 1.12;
}

.feed-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.palette-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(44px, 7vw, 74px);
  margin-bottom: clamp(42px, 8vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(253, 228, 239, 0.72)),
    var(--petal);
  box-shadow: var(--shadow);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 12px;
  min-height: 170px;
}

.swatch {
  border: 7px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(88, 39, 58, 0.14);
}

.swatch.blush {
  background: var(--blush);
}

.swatch.milk {
  background: var(--milk);
}

.swatch.cherry {
  background: var(--cherry);
}

.swatch.sage {
  background: var(--sage);
}

.swatch.ink {
  background: var(--ink);
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px) 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.secret-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 248, 251, 0.98), rgba(253, 228, 239, 0.84)),
    var(--milk);
}

.viewer-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1220px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 42px rgba(157, 68, 103, 0.12);
}

.viewer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.viewer-title strong {
  font-size: 1rem;
}

.viewer-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.viewer-tabs {
  display: flex;
  gap: 8px;
}

.viewer-tab,
.viewer-link {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cherry);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
}

.viewer-tab {
  min-width: 86px;
  padding: 0 16px;
  cursor: pointer;
}

.viewer-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--cherry);
}

.viewer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.viewer-frame-wrap {
  display: grid;
  min-height: calc(100vh - 104px);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.viewer-frame {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 104px);
  border: 0;
}

.quiet-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.quiet-page p {
  max-width: 440px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 660px;
  }

  .hero-image {
    object-position: 61% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 248, 251, 0.9), rgba(255, 248, 251, 0.62) 44%, rgba(255, 248, 251, 0.94) 100%),
      linear-gradient(90deg, rgba(255, 248, 251, 0.88), rgba(255, 248, 251, 0.24));
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding-bottom: 42px;
  }

  .journal-hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .daily-panel {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .intro-section,
  .palette-section,
  .diary-grid,
  .content-grid,
  .shelf-section {
    grid-template-columns: 1fr;
  }

  .routine-board {
    grid-row: auto;
  }

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

  .palette-section {
    padding: 28px;
  }

  .swatches {
    min-height: 120px;
  }

  .viewer-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .viewer-tabs {
    width: 100%;
  }

  .viewer-tab,
  .viewer-link {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .content-grid,
  .diary-grid,
  .feed-grid,
  .shelf-stack {
    grid-template-columns: 1fr;
  }

  .shelf-section {
    padding: 22px;
  }

  .board-image {
    height: 220px;
  }

  .planner-line {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
    gap: 8px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-shell {
    width: min(100% - 16px, 1220px);
    padding: 8px 0;
  }

  .viewer-frame-wrap,
  .viewer-frame {
    min-height: calc(100vh - 168px);
  }
}
