/* Gratia site. Apple-clean: a sticky glass bar, big centred type, few sections. Mint ground, clay for action, app's own paper and EB Garamond. */
:root {
  --mint: #E4EEE7; --mint-2: #D3E4D9; --paper: #FBF9F4; --beige: #EFE7D8;
  --ink: #1C2A22; --ink70: rgba(28,42,34,.72); --ink50: rgba(28,42,34,.52); --ink30: rgba(28,42,34,.3); --hair: rgba(28,42,34,.10);
  --em: #1F4D3A; --sand: #B89B6E; --clay: #B0532E; --clay-ink: #FBF4EE; --dusk: #6F6A8E;
  --band: #14211A; --band-ink: #EDE9E1;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --dp: "EB Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --mint: #0C1611; --mint-2: #12221A; --paper: #070B09; --beige: #101915;
  --ink: #E9E6DF; --ink70: rgba(233,230,223,.72); --ink50: rgba(233,230,223,.52); --ink30: rgba(233,230,223,.3); --hair: rgba(233,230,223,.10);
  --em: #8FC4A8; --sand: #CBB495; --clay: #D0754E; --clay-ink: #1A0E08; --dusk: #A09AC0;
  --band: #0F1A14; --band-ink: #EDE9E1; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --mint: #0C1611; --mint-2: #12221A; --paper: #070B09; --beige: #101915;
  --ink: #E9E6DF; --ink70: rgba(233,230,223,.72); --ink50: rgba(233,230,223,.52); --ink30: rgba(233,230,223,.3); --hair: rgba(233,230,223,.10);
  --em: #8FC4A8; --sand: #CBB495; --clay: #D0754E; --clay-ink: #1A0E08; --dusk: #A09AC0;
  --band: #0F1A14; --band-ink: #EDE9E1; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--dp); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.k { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink50); font-weight: 600; }

/* glass bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--mint) 78%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.bar .in { max-width: 1080px; margin: 0 auto; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--dp); font-size: 21px; }
.logo svg { width: 26px; height: 26px; }
.ring path { fill: none; stroke: var(--clay); stroke-width: 6; stroke-linecap: round; }
.ring ellipse { fill: var(--clay); }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.bar nav a:not(.pill) { color: var(--ink70); text-decoration: none; }
.bar nav a:not(.pill):hover { color: var(--ink); }
@media (max-width: 640px) { .bar nav a:not(.pill) { display: none; } }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--clay); color: var(--clay-ink); border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform .25s var(--ease), filter .25s; white-space: nowrap; }
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pill:active { transform: scale(.98); }
.pill.sm { padding: 7px 15px; font-size: 13px; }
.more { color: var(--clay); text-decoration: none; font-size: 16px; }
.more:hover { text-decoration: underline; }
.more::after { content: " \203A"; }

footer.site { padding-block: 26px calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); }
footer.site .in { max-width: 1080px; margin: 0 auto; padding-inline: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; font-size: 12px; color: var(--ink50); }
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--ink50); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* page transitions */
main, footer.site { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.leaving main, body.leaving footer.site { opacity: 0; transform: translateY(-10px) scale(.99); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pill.pressed { transform: scale(.94); filter: brightness(.95); }
