@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  /* GAIST reading palette from gaistApp/theme.ts. */
  --brand-parchment: #f3ead8;
  --brand-cream: #fff8ea;
  --brand-raised: #eee3cf;
  --brand-ink: #43362f;
  --brand-muted: #756351;
  --brand-terra: #78513b;
  --brand-terra-dark: #60402f;
  --brand-gold: #b49660;
  --brand-border: #d5c4ad;
  --brand-night: #192c36;
  --brand-night-surface: #223b47;
  --brand-night-raised: #2a4653;
  --brand-night-text: #f2e5cd;
  --brand-night-muted: #c5c8bc;
  --brand-night-accent: #dac399;
  --brand-night-border: #47616b;

  --page: var(--brand-parchment);
  --paper: var(--brand-cream);
  --soft: var(--brand-raised);
  --ink: var(--brand-ink);
  --ink-soft: #5e4b40;
  --muted: var(--brand-muted);
  --accent: var(--brand-terra);
  --accent-hover: var(--brand-terra-dark);
  --highlight: #ead7ab;
  --line: var(--brand-border);
  --shadow: 0 22px 56px rgba(67, 54, 47, .11);
  --radius: 26px;
  --width: 1200px;
  --gutter: clamp(18px, 4vw, 42px);
  --font: 'DM Sans', system-ui, sans-serif;
  --heading: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); line-height: 1.6; }
body.app-page {
  color-scheme: dark;
  --page: var(--brand-night);
  --paper: var(--brand-night-surface);
  --soft: var(--brand-night-raised);
  --ink: var(--brand-night-text);
  --ink-soft: var(--brand-night-muted);
  --muted: var(--brand-night-muted);
  --accent: var(--brand-night-accent);
  --accent-hover: #ead7ae;
  --highlight: var(--brand-night-raised);
  --line: var(--brand-night-border);
  --shadow: 0 22px 56px rgba(0, 0, 0, .24);
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 100; top: -90px; left: 16px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: white; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header { position: relative; z-index: 30; background: rgba(243, 234, 216, .95); border-bottom: 1px solid var(--line); }
body.app-page .site-header { background: rgba(25, 44, 54, .94); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--ink); font: 800 1.18rem var(--heading); letter-spacing: -.055em; }
.brand img { width: 39px; height: 39px; border-radius: 11px; object-fit: cover; }
.brand span:last-child { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font: 600 .72rem var(--heading); letter-spacing: .04em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: clamp(10px, 1.8vw, 24px); }
.desktop-nav a, .header-actions a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .89rem; }
.desktop-nav a:hover, .header-actions a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid a:hover { color: var(--brand-night-accent); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.language { position: relative; }
.language summary { cursor: pointer; list-style: none; min-width: 56px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 800; text-align: center; }
.language summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.language summary::after { content: '⌄'; margin-left: 5px; }
.language-list { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); min-width: 124px; padding: 6px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.language-list a { padding: 8px 10px; border-radius: 9px; }
.language-list a[aria-current='page'] { background: var(--soft); color: var(--accent); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 800; }
.mobile-menu nav { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 36px)); padding: 10px; display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.mobile-menu nav a { min-height: 44px; padding: 10px; display: flex; align-items: center; text-decoration: none; font-weight: 700; border-radius: 9px; }
.mobile-menu nav a:hover { background: var(--soft); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--accent); font: 800 .74rem var(--heading); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -.055em; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.8rem, 5.6vw, 5.8rem); font-weight: 800; }
h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 800; }
h3 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
p { margin-block: 0 1em; }
.lede { max-width: 650px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.7; }
.muted { color: var(--muted); }
.section { padding-block: clamp(66px, 8vw, 112px); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.btn { min-height: 50px; padding: 13px 21px; border-radius: 14px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-weight: 800; line-height: 1.35; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--accent); color: var(--brand-cream); box-shadow: 0 12px 22px rgba(120, 81, 59, .2); }
.btn-main:hover { background: var(--accent-hover); color: var(--brand-cream); }
body.app-page .btn-main,
body.app-page .btn-main:hover { color: #2d2922; box-shadow: 0 12px 22px rgba(0, 0, 0, .24); }
.btn-outline { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.hero { overflow: hidden; background: radial-gradient(circle at 82% 10%, rgba(218, 195, 153, .42) 0, transparent 38%), linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-parchment) 100%); }
.hero-inner { min-height: 660px; padding-block: 74px 94px; display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(34px, 5vw, 78px); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 span { color: var(--accent); }
.hero .lede { margin: 26px 0 0; }
.hero-detail { max-width: 660px; margin: 14px 0 0; color: var(--muted); font-size: .97rem; line-height: 1.72; }
.hero-detail + .cta-row { margin-top: 22px; }
.hero-note { margin: 19px 0 0; color: var(--muted); font-size: .89rem; }
.preview { position: relative; min-width: 0; min-height: 500px; display: grid; align-items: center; }
.preview::before { content: ''; position: absolute; width: min(94%, 500px); aspect-ratio: 1; border: 1px solid var(--brand-border); border-radius: 50%; inset: 0 auto auto 5%; box-shadow: 0 0 0 26px rgba(218, 195, 153, .22), 0 0 0 70px rgba(120, 81, 59, .07); }
.preview-card { position: relative; z-index: 1; width: 100%; max-width: 440px; min-width: 0; margin-inline: auto; padding: 23px; border: 1px solid var(--brand-border); border-radius: 30px; background: rgba(255, 248, 234, .94); box-shadow: 0 32px 80px rgba(67, 54, 47, .16); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.preview-top strong { font: 800 1rem var(--heading); letter-spacing: -.03em; }
.preview-top small { display: block; color: var(--muted); font-size: .75rem; }
.preview-badge { padding: 6px 10px; border-radius: 999px; background: var(--highlight); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.preview-image { aspect-ratio: 16 / 10; margin: 18px 0; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--brand-raised); }
.preview-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 52%; }
.preview-orbit { min-height: 200px; display: grid; place-items: center; padding: 24px; }
.orbit { position: relative; width: 170px; height: 170px; display: grid; place-items: center; border: 1px solid var(--brand-gold); border-radius: 50%; background: radial-gradient(circle, var(--brand-cream) 0 44%, transparent 45%); box-shadow: inset 0 0 0 17px var(--brand-raised), inset 0 0 0 18px var(--brand-border); }
.orbit::before, .orbit::after { content: ''; position: absolute; border-radius: 50%; }
.orbit::before { width: 42px; height: 42px; background: var(--brand-night-accent); box-shadow: inset -12px 0 0 var(--brand-night); }
.orbit::after { width: 11px; height: 11px; background: var(--accent); transform: translate(82px, -24px); }
.orbit-label { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font: 800 .58rem var(--heading); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.preview-rows { display: grid; gap: 10px; }
.preview-row { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 15px; background: var(--brand-raised); }
.preview-row b { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--accent); font-size: 1rem; }
.preview-row strong { display: block; font-size: .86rem; }
.preview-row small { display: block; color: var(--muted); font-size: .74rem; }
.preview-caption { margin-top: 14px; color: var(--muted); font-size: .72rem; text-align: center; }

.tool-grid, .guide-grid, .principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card, .guide-card, .principle-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 230px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; box-shadow: var(--shadow); }
.tool-card:hover, .guide-card:hover { border-color: var(--brand-terra); transform: translateY(-3px); }
.tool-card p, .guide-card p, .principle-card p { color: var(--muted); }
.tool-card .card-link, .guide-card .card-link { margin-top: auto; color: var(--accent); font-weight: 800; }
.card-icon { width: 49px; height: 49px; margin-bottom: 22px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--accent); font: 800 1.45rem var(--heading); }
.tool-card.featured { background: var(--brand-night); color: var(--brand-night-text); border-color: var(--brand-night); }
.tool-card.featured p, .tool-card.featured .card-link { color: var(--brand-night-muted); }
.tool-card.featured .card-icon { background: var(--brand-night-raised); color: var(--brand-night-accent); }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.step { padding-top: 18px; border-top: 2px solid var(--brand-gold); }
.step span { display: block; color: var(--accent); font: 800 .75rem var(--heading); letter-spacing: .12em; }
.step h3 { margin-top: 15px; }
.step p { color: var(--muted); max-width: 32ch; }
.statement { max-width: 980px; margin-inline: auto; padding: clamp(28px, 5vw, 55px); border-radius: 30px; background: var(--brand-night); color: var(--brand-night-text); }
.statement h2 { max-width: 15ch; }
.statement p { max-width: 68ch; margin-top: 20px; color: var(--brand-night-muted); }
.statement .text-link { color: var(--brand-night-accent); }
.guide-card { min-height: 170px; box-shadow: none; }
.guide-card h3 { font-size: 1.07rem; }
.guide-card p { font-size: .92rem; }
.guide-card .card-link { font-size: .86rem; }
.section-tail { margin-top: 26px; }
.personal-tarot-section { background: radial-gradient(circle at 86% 14%, rgba(218, 195, 153, .28), transparent 29%), var(--page); }
.personal-tarot-section .section-head { max-width: 880px; }
.personal-tarot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.personal-tarot-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.personal-tarot-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-night); }
.personal-tarot-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.personal-tarot-copy { padding: 22px 23px 24px; }
.personal-tarot-copy h3 { color: var(--ink); }
.personal-tarot-copy p { margin: 0; color: var(--muted); font-size: .92rem; }
.personal-tarot-tail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.personal-tarot-tail > p { max-width: 70ch; margin: 0; color: var(--muted); font-size: .88rem; }
.personal-tarot-tail .cta-row { margin: 0; }
.studio-section { background: var(--brand-night); color: var(--brand-night-text); }
.studio-section .eyebrow { color: var(--brand-night-accent); }
.studio-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: end; margin-bottom: 38px; }
.studio-head h2 { max-width: 17ch; }
.studio-head p:last-child { max-width: 65ch; margin: 18px 0 0; color: var(--brand-night-muted); }
.social-links, .footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a, .footer-social a { min-height: 48px; padding: 10px 15px; display: grid; align-content: center; border: 1px solid var(--brand-night-border); border-radius: 14px; color: var(--brand-night-text); text-decoration: none; line-height: 1.15; }
.social-links a { min-width: 138px; background: var(--brand-night-surface); }
.social-links a:hover, .footer-social a:hover { border-color: var(--brand-night-accent); background: var(--brand-night-raised); color: var(--brand-night-text); text-decoration: none; transform: translateY(-2px); }
.social-links span, .footer-social span { font-weight: 800; }
.social-links small, .footer-social small { margin-top: 4px; color: var(--brand-night-muted); }
.studio-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; }
.studio-card { position: relative; margin: 0; min-height: 390px; overflow: hidden; border: 1px solid var(--brand-night-border); border-radius: 22px; background: var(--brand-night-surface); }
.studio-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.studio-card:hover img { transform: scale(1.025); }
.studio-card figcaption { position: absolute; inset: auto 12px 12px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 11px; background: rgba(25, 44, 54, .82); color: var(--brand-night-text); font-size: .78rem; font-weight: 700; backdrop-filter: blur(8px); }
.app-strip { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 35px; border-radius: var(--radius); background: var(--brand-raised); border: 1px solid var(--brand-border); }
.app-strip h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.app-strip p { margin: 12px 0 0; color: var(--muted); }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.app-information { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; }
.app-information h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.app-information p { margin-top: 16px; color: var(--ink-soft); }

.article-hero { padding-block: 84px 60px; background: radial-gradient(circle at 80% 20%, rgba(218, 195, 153, .4), transparent 35%); }
body.app-page .article-hero { background: radial-gradient(circle at 80% 20%, rgba(218, 195, 153, .14), transparent 38%); }
.article-hero .container { max-width: 970px; }
.article-hero h1 { max-width: 14ch; }
.article-hero .lede { margin: 24px 0 0; }
.article-hero-visual { display: block; margin-top: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); box-shadow: 0 24px 70px rgba(37, 50, 51, .14); }
.article-hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.article-meta { margin-top: 20px; color: var(--muted); font-size: .88rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(30px, 6vw, 96px); padding-block: 65px 100px; }
.article-body { max-width: 70ch; }
.article-body section { margin-block: 0 45px; }
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 17px; }
.article-body h3 { margin-top: 24px; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.035rem; line-height: 1.8; }
.article-body ul { padding-left: 24px; }
.article-media { margin-top: 30px; }
.article-media-head { margin-bottom: 18px; }
.article-media-head h3 { margin: 0 0 8px; font-size: 1.15rem; }
.article-media-head p { margin: 0; }
.article-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-media-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.article-media-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.article-media-grid figcaption { min-height: 72px; padding: 14px 16px; color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.article-body a { color: var(--accent); font-weight: 800; text-underline-offset: 3px; }
.article-body .btn-main, .article-body .btn-main:hover { color: var(--brand-cream); }
.article-body .btn-outline, .article-body .btn-outline:hover { color: var(--ink); }
.article-aside { align-self: start; position: sticky; top: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.article-aside strong { display: block; font: 800 .84rem var(--heading); margin-bottom: 12px; }
.article-aside a { display: block; min-height: 38px; padding-block: 6px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: .9rem; }
.article-aside a:hover { text-decoration: underline; }
.quote { margin-block: 25px; padding: 21px 24px; border-left: 4px solid var(--brand-terra); border-radius: 0 14px 14px 0; background: var(--soft); color: var(--ink); font: 700 1.14rem/1.6 var(--heading); }
.article-callout { padding: 22px; border-radius: 20px; background: var(--soft); }
.article-callout p:last-child { margin-bottom: 0; }
.faq-list { max-width: 850px; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.faq-list summary { min-height: 50px; padding: 15px 20px; cursor: pointer; color: var(--ink); font-weight: 800; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }

.site-footer { padding-block: 55px 26px; background: var(--brand-night); color: var(--brand-night-text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.footer-grid h2 { font-size: 1.5rem; }
.footer-grid h3 { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-grid p { margin-top: 10px; max-width: 30ch; color: var(--brand-night-muted); }
.footer-grid a { display: block; margin: 9px 0; color: var(--brand-night-text); text-decoration: none; font-size: .88rem; }
.footer-social { margin-top: 20px; }
.footer-social a { display: grid; min-height: 44px; margin: 0; padding: 8px 11px; font-size: .78rem; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--brand-night-border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--brand-night-muted); font-size: .82rem; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 52px 60px; min-height: 0; }
  .preview { min-height: 0; }
  .preview::before { width: min(90%, 440px); left: 50%; transform: translateX(-50%); }
  .tool-grid, .guide-grid, .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .app-information { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .personal-tarot-grid { grid-template-columns: 1fr; }
  .personal-tarot-tail { grid-template-columns: 1fr; }
  .studio-head { grid-template-columns: 1fr; align-items: start; }
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-card { min-height: 430px; }
}
@media (max-width: 550px) {
  .header-inner { min-height: 68px; gap: 10px; }
  .brand span:last-child { display: none; }
  .header-actions { gap: 6px; }
  .hero-inner { gap: 42px; }
  .hero h1 { max-width: 12ch; }
  .cta-row { display: grid; }
  .preview-card { padding: 18px; }
  .tool-grid, .guide-grid, .principles-grid { grid-template-columns: 1fr; }
  .tool-card, .guide-card { min-height: 0; }
  .app-strip { grid-template-columns: 1fr; padding: 25px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card { min-height: 0; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .article-hero { padding-block: 54px 44px; }
  .article-hero-visual img { aspect-ratio: 4 / 5; }
  .article-media-grid { grid-template-columns: 1fr; }
  .article-layout { padding-block: 44px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tool-card, .guide-card { transition: none; }
  .studio-card img { transition: none; }
}

/* Editorial footer shared by the main, app and editorial pages. */
.site-footer {
  padding-block: clamp(68px, 7vw, 92px) 28px;
  border-top: 1px solid var(--brand-night-border);
}
.footer-grid {
  grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(30px, 5vw, 72px);
}
.footer-grid h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.footer-grid h3 {
  margin-bottom: 18px;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.footer-grid p {
  max-width: 34ch;
  line-height: 1.7;
}
.footer-grid > div > a:not(.btn) {
  width: fit-content;
  margin-block: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.footer-grid > div > a:not(.btn):hover {
  border-bottom-color: currentColor;
  text-decoration: none;
}
.footer-social {
  gap: 16px;
  margin-top: 28px;
}
.footer-social a {
  min-height: 0;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--brand-night-border);
  border-radius: 0;
  background: transparent;
}
.footer-social a:hover {
  border-bottom-color: var(--brand-night-accent);
  background: transparent;
  transform: none;
}
.footer-social span {
  font-size: .76rem;
  font-weight: 700;
}
.footer-social small {
  font-size: .64rem;
}
.footer-bottom {
  margin-top: clamp(48px, 6vw, 78px);
  padding-top: 22px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .site-footer {
    padding-top: 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-grid > div:first-child {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brand-night-border);
  }
}
