@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/catamaran-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/catamaran-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/catamaran-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/catamaran-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/catamaran-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/catamaran-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/catamaran-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/catamaran-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/catamaran-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sumana'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sumana-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sumana'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sumana-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #fcfaff;
  --fg-light-base-body: #2b2137;
  --fg-light-base-heading: #2b2137;
  --fg-light-base-muted: #5d5070;
  --fg-light-base-link: #7840ad;
  --fg-light-base-inverse: #2b2137;
  --bg-light-card: #f4eefb;
  --fg-light-card-body: #2b2137;
  --fg-light-card-heading: #2b2137;
  --fg-light-card-muted: #5d5070;
  --fg-light-card-link: #7840ad;
  --fg-light-card-inverse: #2b2137;
  --bg-light-elevated: #ffffff;
  --fg-light-elevated-body: #2b2137;
  --fg-light-elevated-heading: #2b2137;
  --fg-light-elevated-muted: #5d5070;
  --fg-light-elevated-link: #7840ad;
  --fg-light-elevated-inverse: #2b2137;
  --brand-light-accent: #7840ad;
  --brand-light-accent-hover: #5c2d88;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #7840ad;
  --border-light-default: #8c70b2;
  --border-light-subtle: #e2d6f1;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --amethyst: var(--brand-light-accent);
  --amethyst-deep: var(--brand-light-accent-hover);
  --on-amethyst: var(--brand-light-on-accent);
  --ring: var(--border-light-default);
  --ring-soft: var(--border-light-subtle);
  --milk: var(--bg-light-base);
  --lilac-wash: var(--bg-light-card);
  --paper: var(--bg-light-elevated);
  --dew: #ebe0f8;
  --heading-face: 'Catamaran', 'Trebuchet MS', system-ui, sans-serif;
  --text-face: 'Sumana', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text-face);
  font-size: 1.0625rem;
  line-height: 1.8;
  background-image: radial-gradient(60rem 30rem at 85% -10%, var(--dew), transparent 70%);
  background-repeat: no-repeat;
}
a.text-role-link:hover { color: var(--amethyst-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amethyst);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 1rem; background: var(--paper); z-index: 30; }
.skip-link:focus { top: 1rem; }

/* Header: static, wordmark beside the inline bar on wide screens */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ring-soft);
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
}
.brand .site-logo { display: block; flex: 0 0 auto; width: 34px; height: 34px; }
.brand-name {
  font-family: var(--heading-face);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  max-width: 8.5rem;
}
.site-nav { display: none; }
.menu-host { flex: 0 0 auto; }
.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ring);
  border-radius: 999px;
  font-family: var(--heading-face);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-icon {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--milk), inset 0 0 0 5px currentColor;
}
.site-menu[open] > summary .menu-icon { box-shadow: none; }
.site-menu[open] > ul {
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 20;
  margin: 0;
  padding: 0.5rem 1.25rem 1.5rem;
  list-style: none;
  background: var(--paper);
  border-bottom: 1px solid var(--ring);
  box-shadow: 0 18px 30px -24px var(--amethyst-deep);
}
.site-menu ul li a {
  display: block;
  padding: 0.8rem 0;
  border-top: 1px solid var(--ring-soft);
  font-family: var(--heading-face);
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
  }
  .brand { flex-basis: 100%; justify-content: center; }
  .brand .site-logo { width: 40px; height: 40px; }
  .brand-name { max-width: none; font-size: 1.2rem; white-space: nowrap; }
  .menu-host { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
  .site-nav a {
    display: block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-family: var(--heading-face);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
  }
  .site-nav a:hover { background: var(--lilac-wash); }
}
@media (min-width: 1280px) {
  .site-header { flex-wrap: nowrap; justify-content: space-between; }
  .brand { flex-basis: auto; }
}

/* Page frame */
.page { min-height: 60vh; }
.breadcrumbs { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 0; font-family: var(--heading-face); font-size: 0.92rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "\25CB"; margin-right: 0.6rem; color: var(--ring); font-size: 0.7em; }
main { display: block; max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 4.5rem; }
@media (min-width: 1024px) {
  .breadcrumbs { padding: 1.75rem clamp(1.5rem, 4vw, 3.5rem) 0; }
  main { padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem) 6rem; }
}

/* Shared reading type */
h1 { margin: 0; font-family: var(--heading-face); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h2, h3 { font-family: var(--heading-face); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 2.2em 0 0.55em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 0.4em; }
main p, main li { max-width: 64ch; }
main p { margin: 0 0 1.2em; }
main ul, main ol { padding-left: 1.3rem; margin: 0 0 1.5em; }
main li { margin-bottom: 0.45em; }
main li::marker { color: var(--amethyst); }
main a.text-role-link { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.table-scroll { overflow-x: auto; margin: 2rem 0; border-radius: 14px; border: 1px solid var(--ring-soft); }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--ring-soft); }
.table-scroll th { font-family: var(--heading-face); }
.accent-block {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.4rem 1.5rem 1.4rem 4.75rem;
  border-radius: 22px;
  background: var(--lilac-wash);
  font-family: var(--heading-face);
  font-size: 1.2rem;
  line-height: 1.55;
}
.accent-block::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper) 0 18%, var(--ring) 19% 46%, var(--amethyst) 47%);
  box-shadow: 0 0 0 4px var(--lilac-wash), 0 0 0 5px var(--ring);
}
.accent-block p:last-child { margin-bottom: 0; }
.photo-inline { margin: 2.25rem 0; }
.photo-hero { margin: 0 0 2.25rem; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 26px; }
section[data-section][style] { margin: 2.5rem 0; padding: clamp(3rem, 9vw, 6rem) clamp(1rem, 4vw, 3rem); border-radius: 28px; background-size: cover; background-position: center; }
section[data-section][style] > .bg-surface-card { max-width: 38rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px; }

/* Home: diary cover with halo rings */
.diary-cover { display: grid; gap: 2.5rem; }
.halo {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2.25rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 32px;
  border: 1px solid var(--ring-soft);
  background-image:
    repeating-radial-gradient(circle at 18% 48%, transparent 0 46px, var(--ring-soft) 47px 48px, transparent 49px 78px),
    radial-gradient(28rem 20rem at 85% 20%, var(--dew), transparent 70%);
}
.halo-title h1 { font-size: clamp(2.2rem, 7.5vw, 3.9rem); line-height: 1.04; max-width: 17ch; }
.halo-lines { display: grid; gap: 1rem; align-content: center; }
.halo-lines .display-line {
  margin: 0;
  padding: 1rem 1.25rem 1rem 3.4rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--ring-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  background-image: radial-gradient(circle at 1.6rem 50%, var(--amethyst) 0 0.42rem, transparent 0.46rem 0.65rem, var(--ring) 0.66rem 0.72rem, transparent 0.76rem);
}
.entries { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 32px; }
.entries-copy > :first-child { margin-top: 0; }
.entries-copy .photo-hero img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.entries-copy .photo-hero { max-width: 26rem; margin-left: auto; margin-right: auto; padding: 10px; border-radius: 50%; border: 1px solid var(--ring); box-shadow: 0 0 0 10px var(--lilac-wash), 0 0 0 11px var(--ring-soft); }
@media (min-width: 1024px) {
  .halo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
  .entries-copy { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); }
  .entries-copy > * { grid-column: 2; }
  .entries-copy > .photo-hero { grid-column: 1; grid-row: 1 / span 99; align-self: start; margin: 1rem 0 0; }
}

/* Topic hub: treatment shelf of swatch tiles */
.shelf { display: grid; gap: 2rem; }
.shelf-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 20ch; }
.shelf-copy > :first-child { margin-top: 0; }
.shelf-tiles { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 30px; align-self: start; }
.shelf-list ul { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.shelf-list li { margin: 0; max-width: none; }
.shelf-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--ring-soft);
  font-family: var(--heading-face);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  text-decoration: none;
}
.shelf-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper) 0 16%, var(--dew) 17% 45%, var(--amethyst) 46%);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ring);
}
.shelf-list li:nth-child(3n+2) a::before { background: radial-gradient(circle at 35% 30%, var(--paper) 0 16%, var(--ring-soft) 17% 52%, var(--ring) 53%); }
.shelf-list li:nth-child(3n+3) a::before { background: radial-gradient(circle at 35% 30%, var(--paper) 0 16%, var(--dew) 17% 60%, var(--amethyst-deep) 61%); }
.shelf-list a:hover { border-color: var(--ring); }
@media (min-width: 640px) {
  .shelf-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .shelf { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 3.5rem; row-gap: 2.25rem; }
  .shelf-head { grid-column: 1 / -1; }
  .shelf-list ul { grid-template-columns: minmax(0, 1fr); }
}

/* Article: diary entry */
.entry { max-width: 46rem; }
.entry-strip {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 999px 28px 28px 999px;
}
.strip-swatch {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper) 0 15%, var(--dew) 16% 44%, var(--amethyst) 45%);
  box-shadow: 0 0 0 5px var(--lilac-wash), 0 0 0 6px var(--ring);
}
.entry-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.1; }
.entry-copy > :first-child { margin-top: 0; }
.entry-copy h2 {
  padding-top: 1.4em;
  background: radial-gradient(circle, var(--ring) 0 3px, transparent 4px) left top / 1.1rem 0.6rem no-repeat,
    linear-gradient(var(--ring-soft), var(--ring-soft)) 1.4rem 0.28rem / calc(100% - 1.4rem) 1px no-repeat;
}

/* About: diary first page */
.first-page { max-width: 44rem; }
.first-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.swatch-row { display: flex; gap: 1.1rem; margin: 1.75rem 0 2.25rem; }
.swatch { display: block; width: 3.5rem; height: 3.5rem; border-radius: 50%; box-shadow: 0 0 0 4px var(--milk), 0 0 0 5px var(--ring-soft); }
.swatch-one { background: radial-gradient(circle at 35% 30%, var(--paper) 0 14%, var(--dew) 15% 50%, var(--amethyst) 51%); }
.swatch-two { background: radial-gradient(circle at 35% 30%, var(--paper) 0 14%, var(--lilac-wash) 15% 50%, var(--ring) 51%); }
.swatch-three { background: radial-gradient(circle at 35% 30%, var(--paper) 0 14%, var(--dew) 15% 50%, var(--amethyst-deep) 51%); }
.first-copy > p:first-of-type { font-size: 1.22rem; line-height: 1.7; }
.first-copy > :first-child { margin-top: 0; }

/* Contact: letter in a lilac frame */
.letter-frame {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 32px;
  border: 1px solid var(--ring);
  box-shadow: 0 0 0 10px var(--lilac-wash), 0 0 0 11px var(--ring-soft);
}
.letter-head h1 { font-size: clamp(2rem, 6vw, 3rem); text-align: center; margin-bottom: 1.5rem; }
.letter-copy > :first-child { margin-top: 0; }
.letter-copy h2 { font-size: 1.3rem; }
.letter-form { display: grid; gap: 1.1rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--ring-soft); }
.field label { display: block; margin-bottom: 0.3rem; font-family: var(--heading-face); font-weight: 600; font-size: 0.98rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  color: inherit;
  background: var(--milk);
  border: 1px solid var(--ring);
  border-radius: 14px;
}
.field textarea { resize: vertical; min-height: 9rem; }
.letter-button {
  justify-self: center;
  min-height: 48px;
  padding: 0.75rem 2.25rem;
  font-family: var(--heading-face);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--on-amethyst);
  background: var(--amethyst);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.letter-button:hover { background: var(--amethyst-deep); }

/* Thank you: sealed envelope note */
.envelope-note {
  max-width: 32rem;
  margin: 1.5rem auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--ring-soft);
}
.glow-dot {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--paper) 0 18%, var(--amethyst) 60%);
  box-shadow: 0 0 0 6px var(--lilac-wash), 0 0 28px 8px var(--dew);
}
.envelope-head h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin-bottom: 1rem; }
.envelope-copy h2 { font-size: 1.2rem; margin-top: 1.6em; }
.envelope-copy p { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.25rem 1rem 2.75rem;
  border-top: 1px solid var(--ring-soft);
}
.footer-mark { display: block; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: radial-gradient(circle, var(--lilac-wash) 0 28%, var(--amethyst) 30% 62%, var(--lilac-wash) 64% 72%, var(--ring) 74%); }
.site-footer p { margin: 0; }
.footer-name { font-family: var(--heading-face); font-weight: 600; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
