@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --ink: #242421;
  --rose: #e995aa;
  --lilac: #a8a1df;
  --grey: #e2e2dd;
  --muted: #50504c;
  --spot: #326b51;
  --curve: 26px;
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  font-synthesis: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: white; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a, summary { min-height: 44px; }
a { display: inline-flex; align-items: center; }
p { margin: 0 0 1rem; max-width: 66ch; }
h1, h2, h3, summary { font-family: "EB Garamond", "Palatino Linotype", Palatino, Georgia, serif; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 1.2rem; max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 0.85rem; max-width: 28ch; }
h3 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); line-height: 1.16; margin: 0 0 0.8rem; max-width: 32ch; }
em { font-weight: 400; }
figure { margin: 0; }
main:focus { outline: none; }
[data-smallcaps], [data-utility] > span, details nav > div > p {
  font-family: "EB Garamond", Palatino, Georgia, serif;
  font-variant-caps: small-caps;
  font-feature-settings: "smcp" 1;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
}
[data-smallcaps] { margin-bottom: 0.9rem; }
body > a:first-child { position: absolute; z-index: 20; top: -120px; left: 16px; padding: 12px 20px; background: white; border-radius: 24px; }
body > a:first-child:focus { top: 12px; }
body > header { position: relative; z-index: 5; }
[data-utility] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.2rem max(5vw, calc((100vw - 1280px) / 2)); background: var(--grey); }
[data-utility] nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
[data-utility] a { font-size: 0.9rem; padding: 0.2rem 0.3rem; }
[data-masthead] { max-width: 1280px; margin: auto; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
[data-masthead] > a { text-decoration: none; gap: 0.75rem; line-height: 1.15; font-size: 1.25rem; }
[data-masthead] > a em { font-size: 0.9rem; }
[data-masthead] i { width: 38px; height: 45px; background: var(--ink); border-radius: 22px 22px 18px 6px; position: relative; }
[data-masthead] i::before { content: ""; width: 17px; height: 26px; border-radius: 12px 12px 12px 2px; background: var(--paper); position: absolute; left: 10px; top: 9px; }
[data-masthead] i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spot); position: absolute; left: -5px; top: 2px; }
details { position: relative; }
summary { cursor: pointer; list-style: none; border: 1px solid var(--ink); border-radius: 99px; padding: 0.55rem 1rem; display: flex; gap: 1.5rem; align-items: center; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary span { font-family: Georgia, serif; font-size: 1.4rem; line-height: 1; }
details[open] summary { background: var(--ink); color: var(--paper); }
details nav { position: absolute; top: calc(100% + 14px); right: 0; width: min(1130px, 90vw); padding: 1.5rem; border-radius: var(--curve); box-shadow: 0 14px 40px #24242124; background: var(--paper); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border: 1px solid #babbb2; }
details nav > div { min-width: 0; }
details nav > div > p { color: var(--muted); margin-bottom: 0.55rem; }
details nav a { display: flex; font-size: 0.95rem; line-height: 1.25; padding: 0.45rem 0; }
details nav a[aria-current] { font-weight: 700; }
progress { position: fixed; z-index: 12; top: 0; left: 0; width: 100%; height: 5px; border: 0; appearance: none; background: transparent; pointer-events: none; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
main { max-width: 1280px; margin: 0 auto; }
article > header { display: grid; grid-template-columns: minmax(0, 1fr) 28%; gap: 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--curve); overflow: hidden; }
article > header > div { min-width: 0; }
article > header > div > p:not([data-smallcaps]) { font-size: 1.15rem; line-height: 1.4; max-width: 49ch; }
[data-tone="lilac"] { background: var(--lilac); }
[data-tone="rose"] { background: var(--rose); }
[data-tone="grey"] { background: var(--grey); }
[data-pill] { display: inline-flex; align-items: center; padding: 0.6rem 1.2rem; background: var(--ink); color: white; border-radius: 99px; text-decoration: none; margin: 0.5rem 0.7rem 0.25rem 0; }
[data-pill]:hover { background: #41413c; }
[data-text-link], [data-back] { font-size: 1rem; padding: 0.45rem 0.2rem; }
[data-geometry] { position: relative; width: 100%; aspect-ratio: 0.9; isolation: isolate; }
[data-geometry] span { display: block; position: absolute; }
[data-geometry] span:nth-child(1) { width: 83%; height: 65%; right: 0; top: 8%; background: #f3f3ed; border-radius: 50% 50% 22px 22px; transform: rotate(13deg); }
[data-geometry] span:nth-child(2) { width: 70%; height: 27%; left: 0; top: 35%; background: #686863; border-radius: 99px; transform: rotate(-26deg); }
[data-geometry] span:nth-child(3) { width: 50%; height: 43%; right: 2%; bottom: 1%; background: #242421; border-radius: 50% 50% 22px 22px; transform: rotate(-12deg); }
[data-geometry] span:nth-child(4) { width: 25%; height: 23%; left: 8%; bottom: 3%; background: #bfc0b7; border-radius: 50%; }
[data-geometry] span:nth-child(5) { width: 58%; height: 4px; left: 32%; top: 38%; background: #242421; transform: rotate(13deg); border-radius: 99px; }
[data-leaves] { margin: 3.5rem auto 2.5rem; max-width: 930px; }
[data-leaves] > section, [data-leaves] > div { padding: 1.3rem 2.1rem 1.5rem; margin: 0 0 0.8rem; border-radius: var(--curve); }
[data-leaves] > [data-tone] { padding-top: 1.9rem; padding-bottom: 1.9rem; margin: 1.3rem 0; }
[data-leaves] > div > p { max-width: 62ch; }
[data-leaves] p:last-child { margin-bottom: 0; }
article > aside:not([data-source-notes]) { max-width: 846px; padding: 1.5rem 2.1rem; border-radius: var(--curve); margin: 2rem auto; }
article > aside:not([data-source-notes]) p:last-child { margin-bottom: 0; font-size: 1.2rem; line-height: 1.35; }
[data-source-notes] { max-width: 846px; margin: 2.5rem auto; padding: 0 2.1rem; }
[data-source-notes] > p { color: var(--muted); margin-bottom: 0.5rem; }
[data-source-notes] a { display: flex; width: fit-content; max-width: 100%; gap: 0.5rem; font-size: 0.95rem; line-height: 1.3; padding: 0.35rem 0; }
[data-source-notes] a span { white-space: nowrap; }
[data-next] { padding: 2rem 2.1rem; background: var(--grey); border-radius: var(--curve); max-width: 846px; margin: 2.5rem auto 4rem; }
[data-next] p { margin-bottom: 0.4rem; }
[data-next] a { font-family: "EB Garamond", Palatino, Georgia, serif; font-size: 1.6rem; line-height: 1.15; gap: 1rem; padding: 0.2rem 0; }
[data-site-footer] { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2.1rem 3rem; border-top: 1px solid #bbbbaf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
[data-site-footer] p { font-size: 0.95rem; max-width: 38ch; margin: 0; }
[data-site-footer] nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.5rem; }
[data-site-footer] a { font-size: 0.9rem; padding: 0.45rem 0; }

.page-home article > header { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem; padding-block: 3rem; }
.page-home h1 { max-width: 15ch; }
.page-home [data-geometry] { aspect-ratio: 1; max-width: 430px; }
.page-home-leaves { max-width: none; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem 2rem; margin: 2rem 0; }
.page-home-leaves > section { margin: 0; padding: 2rem 2.5rem; }
.page-home-leaf-2 { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.page-home-leaf-4 { grid-column: 1 / -1; background: var(--lilac); padding-block: 2.5rem !important; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.page-home-leaf-4 h2, .page-home-leaf-4 p { margin: 0; }
.page-price-notes [data-geometry] span:nth-child(2), .page-budget-notes [data-geometry] span:nth-child(2) { transform: rotate(18deg); }
.page-source-notebook [data-source-notes] { background: var(--lilac); border-radius: var(--curve); padding: 1.8rem 2.1rem; }
.page-source-notebook [data-source-notes] > p { color: var(--ink); }
.page-question-notes [data-leaves] > div { margin-left: 3rem; }

@media (min-width: 1600px) {
  [data-utility] { padding-inline: calc((100vw - 1280px) / 2); }
}
@media (max-width: 1400px) {
  [data-masthead], main, [data-site-footer] { margin-inline: 5vw; }
}
@media (max-width: 760px) {
  :root { font-size: 19px; }
  [data-utility] { padding: 0.25rem 5vw; flex-wrap: wrap; gap: 0; }
  [data-utility] > span { width: 100%; padding-top: 0.25rem; }
  [data-utility] nav { gap: 0 0.85rem; justify-content: space-between; width: 100%; }
  [data-utility] a { font-size: 0.9rem; padding-inline: 0; }
  [data-masthead] { gap: 0.7rem; padding-block: 1rem; }
  [data-masthead] > a { gap: 0.5rem; font-size: 1.08rem; }
  [data-masthead] i { width: 27px; height: 36px; flex-shrink: 0; }
  [data-masthead] i::before { width: 13px; height: 21px; top: 7px; left: 7px; }
  [data-masthead] > a em { font-size: 0.85rem; }
  summary { font-size: 0.95rem; gap: 0.65rem; padding: 0.5rem 0.7rem; }
  details nav { width: 90vw; max-height: 72vh; overflow-y: auto; grid-template-columns: 1fr 1fr; padding: 1rem; gap: 1.2rem; }
  details nav a { font-size: 1rem; }
  article > header, .page-home article > header { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 1.2rem; border-radius: 24px; }
  article > header > div > p:not([data-smallcaps]) { font-size: 1.1rem; }
  h1 { max-width: 17ch; font-size: clamp(2.35rem, 10vw, 3.1rem); }
  .page-home h1 { max-width: 15ch; }
  [data-geometry] { display: none; }
  .page-home [data-geometry] { display: block; height: 210px; width: 210px; margin: 0.8rem 0 -0.5rem auto; }
  [data-pill] { margin-right: 0.35rem; }
  [data-leaves], .page-home-leaves { display: block; margin: 1.5rem 0; }
  [data-leaves] > section, [data-leaves] > div, .page-home-leaves > section { padding: 1.5rem 0.7rem; margin: 0; }
  [data-leaves] > [data-tone], .page-home-leaves > [data-tone] { padding: 1.6rem 1.2rem; margin: 0.5rem 0; }
  .page-home-leaf-4 { display: block; }
  .page-home-leaf-4 h2 { margin-bottom: 1rem; }
  article > aside:not([data-source-notes]), [data-next] { padding: 1.5rem 1.2rem; margin-block: 1.4rem; }
  [data-source-notes] { padding: 0 0.7rem; margin-block: 2rem; }
  [data-source-notes] a { font-size: 1rem; }
  .page-source-notebook [data-source-notes] { padding: 1.5rem 1.2rem; }
  .page-question-notes [data-leaves] > div { margin-left: 0.75rem; }
  [data-site-footer] { padding: 2rem 0.7rem; display: block; }
  [data-site-footer] p { font-size: 1rem; margin-bottom: 1rem; }
  [data-site-footer] nav { display: block; }
  [data-site-footer] a { display: flex; width: fit-content; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { font-size: 12pt; background: white; color: black; }
  body > header, body > a:first-child, progress, [data-geometry], [data-next], [data-site-footer], [data-back], [data-pill], [data-text-link] { display: none !important; }
  main, [data-leaves], [data-source-notes], article > aside { max-width: none; margin: 0 !important; }
  article > header { display: block; padding: 0 0 1rem; background: white; }
  h1 { max-width: none; font-size: 28pt; }
  h2, h3 { break-after: avoid; }
  [data-leaves] { display: block; }
  [data-leaves] > section, [data-leaves] > div { padding: 1rem 0 !important; margin: 0 !important; background: white; }
  a { min-height: 0; }
}
