:root {
  font-family: var(--holla-ui-font);
  --floating-glass: #1c2426aa;
  --reading-glass: #22282aec;
  --interactive-fill: #ffffff16;
  --photo-veil: #151a1e63;
  --reflected-light: #ffffff21;
  --display-accent: #e4f5a3;
}
:root[data-color="light"] {
  --floating-glass: #f4f1e5bd;
  --reading-glass: #fbf8efe8;
  --interactive-fill: #302c2313;
  --photo-veil: #f6f2e880;
  --reflected-light: #ffffff70;
  --display-accent: #354d27;
}

h1, .quote-text {
  font-family: var(--holla-reading-font);
  font-weight: 500;
  letter-spacing: -.043em;
  line-height: 1.13;
}
h1 em, [data-color="light"] h1 em { color: var(--display-accent); }
.intro h1 { font-size: clamp(2.1rem, 5.6vw, 4.75rem); }
.home-hero h1 { font-size: clamp(2.05rem, 5.45vw, 4.9rem); max-width: 25ch; }
h2, h3, .feature strong, .topic strong { letter-spacing: -.035em; font-weight: 550; }
.eyebrow, .hero .eyebrow, .intro .eyebrow { font-size: .77rem; font-weight: 550; letter-spacing: .115em; }
.sub { line-height: 1.6; }
.quote-text { font-size: clamp(1.35rem, 3vw, 2.6rem); letter-spacing: -.026em; line-height: 1.36; }
.quote .quote-text { max-width: 54ch; }
.story-disclaimer { opacity: 1; color: var(--muted); }
.footer { border: 0; }

.top nav, [data-color="light"] .top nav, .holla-editor-bar {
  background: var(--floating-glass);
  border: 0;
  box-shadow: inset 0 1px var(--reflected-light), 0 10px 34px #10161524;
  -webkit-backdrop-filter: blur(26px) saturate(130%);
  backdrop-filter: blur(26px) saturate(130%);
}
.top nav a { min-height: 2.75rem; font-weight: 470; }
.top nav a[aria-current] { background: var(--interactive-fill); }
.holla-editor-bar { color: var(--fg); }
.holla-editor-bar .editor-tool, .holla-editor-bar summary { color: var(--fg); font-weight: 550; }
.holla-editor-bar[data-holla-editor] > a:first-child { color: var(--display-accent); }
.holla-editor-bar .editor-more a { background: var(--surface); }
.holla-copy-dialog {
  background: var(--reading-glass);
  color: var(--fg);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 90px #0006;
}
.holla-copy-dialog ::placeholder { color: var(--muted); }
.panel, .filters, .feature, .topic, .quote {
  border: 0;
  box-shadow: inset 0 1px var(--reflected-light), 0 14px 32px #0c111523;
}
.panel, .filters {
  background: var(--reading-glass);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}
.feature, .topic, .quote {
  background: color-mix(in srgb, var(--reading-glass) 92%, var(--card-tint, var(--surface)) 8%);
}
.feature:hover, .topic:hover { box-shadow: inset 0 1px var(--reflected-light), 0 18px 40px #0c11153f; }
.button { border-color: transparent; background: var(--interactive-fill); font-weight: 520; }
.button:hover { border-color: transparent; background: color-mix(in srgb, var(--interactive-fill) 90%, var(--fg) 10%); }
.button.primary, .button[aria-pressed="true"] {
  background: var(--accent);
  border-color: transparent;
  color: var(--ink);
}
.button.primary:hover { background: #ecffb4; }
.top nav a:focus-visible, .button:focus-visible, .theme:focus-visible, .holla-editor-bar a:focus-visible, .holla-editor-bar button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.field, .choice { font-weight: 480; }
.section-art::after {
  background: linear-gradient(180deg, var(--photo-veil) 0%, #151a1e89 48%, #171b1fa6 100%),
              linear-gradient(90deg, #14171a9c 0%, transparent 82%);
}
[data-color="light"] .section-art::after, [data-color="light"] .section-art[data-background="letter"]::after {
  background: linear-gradient(180deg, #f6f2e862, #f6f2e876 55%, #f6f2e898);
}

[data-color="light"] .section-art { opacity: .56; }

@media (max-width: 42rem) {
  .top nav a { font-size: clamp(.77rem, 3.25vw, .88rem); }
  .home-hero h1 { max-width: 19ch; }
  .quote .quote-text { max-width: 36ch; }
  .section-art::after { background: linear-gradient(180deg, #14171c63, #14171c9e 44%, #14171ca6); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .top nav, [data-color="light"] .top nav, .holla-editor-bar, .holla-copy-dialog,
  .panel, .filters, .feature, .topic, .quote {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .button:not(.primary):not([aria-pressed="true"]) { border-color: var(--line); }
}

.section-art[data-background="letter"]::after {
  background: linear-gradient(180deg, #17212670, #151b20b9 30%, #131a20be 56%, #13191bb0);
}
:root:not([data-color="light"]) .letter-intro .sub,
:root:not([data-color="light"]) .letter-intro .eyebrow { color: #e4e3dc; }
@media (min-width: 42.01rem) {
  .letter-intro .orbit { height: clamp(5rem, 11vw, 9rem); }
}

.writing-panel[data-length-editor],
.panel[data-question],
body[data-holla-page="questions"] .topic,
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) {
  --form-glass: #222827b3;
  --form-field-glass: #202423c7;
  background: var(--form-glass);
  -webkit-backdrop-filter: blur(21px) saturate(112%);
  backdrop-filter: blur(21px) saturate(112%);
}
:root[data-color="light"] :is(.writing-panel[data-length-editor], .panel[data-question], body[data-holla-page="questions"] .topic, body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card)) {
  --form-glass: #f9f6edb8;
  --form-field-glass: #fffdf6cb;
}
.writing-panel[data-length-editor] .field :is(textarea, .selection-trigger, .select-shell select),
.panel[data-question] :is(.answer:not([aria-pressed="true"]), .selection-trigger, .select-shell select) {
  background: var(--form-field-glass);
}
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) .button:not(.primary):not([aria-pressed="true"]),
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) .reading-card .quote-meta .story-read {
  background: var(--form-field-glass);
  color: var(--app-text);
}
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) .button:not(.primary):not([aria-pressed="true"]):hover,
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) .reading-card .quote-meta .story-read:hover {
  background: color-mix(in srgb, var(--form-field-glass) 90%, var(--app-text));
}
body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) :is(.quote-meta, .eyebrow, .story-disclaimer, .muted) {
  color: var(--app-text);
}
[data-letter][data-category="universe"] .length-counter,
[data-letter][data-category="universe"] .length-counter output {
  font-size: .8rem;
  font-weight: 400;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .writing-panel[data-length-editor],
  .panel[data-question],
  body[data-holla-page="questions"] .topic,
  body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .writing-panel[data-length-editor] .field :is(textarea, .selection-trigger, .select-shell select),
  .panel[data-question] :is(.answer:not([aria-pressed="true"]), .selection-trigger, .select-shell select),
  body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) :is(.reading-card.quote, .reading-reactions, .discovery-card) .button:not(.primary):not([aria-pressed="true"]),
  body:is([data-holla-page="hear"], [data-holla-page="story"], [data-holla-page="random"]) .reading-card .quote-meta .story-read { background: var(--control); }
}

.letter-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: -.65rem;
  font-size: .875rem;
  font-weight: 480;
}
.letter-copy-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.letter-copy-icon svg { width: 1.2rem; height: 1.2rem; }
.letter-copy-icon:hover, .letter-copy-icon:focus-visible {
  color: var(--fg);
  background: var(--interactive-fill);
}
.letter-nav .letter-glass-link {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border-color: var(--edge);
  border-radius: 2rem;
  background: var(--interactive-fill);
  box-shadow: inset 0 1px var(--reflected-light);
  font-size: .9rem;
  font-weight: 450;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.letter-nav .letter-glass-link:hover, .letter-nav .letter-glass-link:focus-visible {
  border-color: color-mix(in srgb, var(--edge) 80%, var(--fg));
  background: color-mix(in srgb, var(--interactive-fill) 92%, var(--fg) 8%);
}
.letter-copy-icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.letter-settings-body { margin-top: .8rem; }
.letter-email { gap: .35rem; }
.letter-email .muted { font-size: .875rem; }
.letter-safety { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .letter-copy-icon, .letter-nav .letter-glass-link { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .letter-nav .letter-glass-link, .letter-copy-icon { border-color: var(--line); }
}
