/* PrivSay Foundation (Astra child) — ported from the Figma Sites design.
 * Main colours follow Astra's Global Colors (Customize → Global → Colors):
 * 0 accent, 1 accent hover, 2 headings, 3 text, 4 background, 8 highlight.
 */

:root {
	--ps-blue: var(--ast-global-color-0, #64a9c1);
	--ps-blue-light: var(--ast-global-color-1, #8cc7d9);
	--ps-ink: var(--ast-global-color-2, #edf1ed);
	--ps-bg: var(--ast-global-color-4, #09131c);
	--ps-lime: var(--ast-global-color-8, #d8ff4f);
	--ps-line: #edf1ed29;
	--font-serif: "Times New Roman", Georgia, Garamond, serif;
}

/* Site-wide base (applies to Astra-rendered pages too) */
html { scroll-behavior: smooth; }
body.privsay, body.privsay #page, body.privsay .site-content { background: var(--ps-bg); color: var(--ps-ink); }
body.privsay, body.privsay button, body.privsay input, body.privsay select, body.privsay textarea,
body.privsay h1, body.privsay h2, body.privsay h3, body.privsay h4, body.privsay h5, body.privsay h6,
body.privsay .ast-custom-button, body.privsay .site-title { font-family: var(--font-serif); }
:focus-visible { outline: 2px solid var(--ps-blue); outline-offset: 3px; }
[id] { scroll-margin-top: 1rem; }

/* PrivSay templates: reset Astra's content spacing and typography */
.privsay-template .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
.privsay-content { width: 100%; min-width: 0; overflow-x: clip; font-family: var(--font-serif); color: var(--ps-ink); line-height: 1.5; }
.privsay-content *, .privsay-content ::before, .privsay-content ::after { box-sizing: border-box; }
.privsay-content :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; padding: 0; color: inherit; font-weight: inherit; line-height: inherit; }
.privsay-content :where(svg) { display: block; max-width: 100%; }
.privsay-content svg path { vector-effect: non-scaling-stroke; }
:where(.privsay-content) a { color: inherit; text-decoration: none; }

.page-shell { width: min(100% - 2rem, 1320px); margin-inline: auto; }
.eyebrow { color: var(--ps-blue); font-family: var(--font-serif); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; font-weight: 500; }
.brand { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; color: var(--ps-ink); }
.brand:hover, .brand:focus { color: var(--ps-ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; display: block; }

/* Hero */
.hero { border-bottom: 1px solid #edf1ed24; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 10; display: flex; min-height: 660px; flex-direction: column; justify-content: space-between; padding-bottom: 2.5rem; padding-top: 4rem; }
.hero-heading { max-width: 1050px; }
.hero-title { max-width: 1050px; margin-top: 2rem; font-family: var(--font-serif); letter-spacing: -.055em; font-size: clamp(3.45rem, 7.2vw, 7.2rem); font-weight: 400; line-height: .93; }
.hero-title__accent { color: var(--ps-blue); font-style: italic; display: block; }
.hero-bottom { display: grid; gap: 2.5rem; border-top: 1px solid #edf1ed33; padding-top: 2rem; }
.hero-cta { border-bottom: 1px solid #edf1ed6b; width: fit-content; padding-bottom: .35rem; font-size: .8rem; font-weight: 500; transition: color .18s, border-color .18s; display: inline-flex; }
.hero-cta:hover { color: var(--ps-blue-light); border-color: var(--ps-blue); }
.hero-intro { max-width: 36rem; font-size: 1.05rem; line-height: 1.75rem; color: #edf1edbf; }

.hero-visual { opacity: .42; pointer-events: none; align-items: center; width: min(24vw, 310px); height: 58%; display: grid; position: absolute; top: 11%; right: 6%; }
.hero-privacy-illustration { width: 100%; height: auto; overflow: visible; }
.shield-surface { fill: #64a9c112; }
.shield-inner { stroke: #64a9c16b; stroke-dasharray: 7 10; stroke-width: 1.25px; }
.data-path { stroke: #64a9c185; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px; }
.data-node { fill: var(--ps-bg); stroke: #64a9c1d1; stroke-width: 1.5px; }
.privacy-ring { fill: #0f1d28; stroke: #edf1ed75; stroke-width: 1.5px; }
.privacy-core { fill: #64a9c1b8; }
.privacy-monogram { fill: var(--ps-lime); }

/* Mandate */
.mandate-section { background: #0f202b; padding-block: 8rem; }
.mandate-content { text-align: center; max-width: 900px; margin-inline: auto; }
.mandate-copy { font-family: var(--font-serif); letter-spacing: -.04em; margin-top: 2rem; font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.08; }
.mandate-support { color: #edf1edad; max-width: 670px; margin: 2.5rem auto 0; font-size: 1rem; line-height: 1.85; }

/* Section headings */
.section-heading { border-bottom: 1px solid var(--ps-line); align-items: end; gap: 2rem; padding-bottom: 3rem; display: grid; }
.section-heading h2 { font-family: var(--font-serif); letter-spacing: -.05em; margin-top: 1rem; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; line-height: 1; }
.section-heading > p { color: #edf1eda8; max-width: 30rem; font-size: .95rem; line-height: 1.75; }

/* Ecosystem */
.ecosystem-section { padding-block: 7rem; }
.project-grid { gap: 1rem; margin-top: 2rem; display: grid; }
.project-card { background: #10212d; border: 1px solid #edf1ed26; flex-direction: column; justify-content: space-between; min-height: 430px; padding: 1.5rem; transition: border-color .22s, box-shadow .22s, transform .22s; display: flex; position: relative; }
.project-card:hover { border-color: var(--ps-blue); transform: translateY(-4px); box-shadow: 0 18px 45px #00000052; }
.project-meta { color: #edf1ed8a; font-family: var(--font-serif); letter-spacing: .1em; text-transform: uppercase; justify-content: space-between; align-items: center; font-size: .63rem; display: flex; }
.status { color: #edf1edb8; letter-spacing: .06em; border: 1px solid #edf1ed2e; border-radius: 999px; align-items: center; gap: .45rem; padding: .45rem .65rem; display: inline-flex; }
.status i { background: #5fc98b; border-radius: 50%; width: .35rem; height: .35rem; }
.status--beta i, .status--in-development i { background: var(--ps-lime); }
.status--coming-soon i { background: var(--ps-blue); }
.status--archived i { background: #edf1ed6b; }

.project-symbol { width: 7rem; height: 7rem; position: absolute; top: 27%; right: 12%; transform: rotate(45deg); }
.project-symbol span { border: 1px solid #64a9c185; position: absolute; }
.project-symbol span:first-child { inset: 0; }
.project-symbol span:nth-child(2) { inset: 22%; }
.project-symbol i { background: var(--ps-blue); border-radius: 50%; position: absolute; inset: 44%; }
.project-card:nth-child(4n+2) .project-symbol { border: 1px solid #64a9c185; border-radius: 50%; }
.project-card:nth-child(4n+3) .project-symbol { transform: none; }
.project-card:nth-child(4n+3) .project-symbol span { border-radius: 50%; }
.project-card:nth-child(4n+4) .project-symbol { transform: rotate(22.5deg); }

.project-card h3 { max-width: 70%; font-family: var(--font-serif); letter-spacing: -.035em; font-size: 2.25rem; font-weight: 400; }
.project-card p { color: #edf1eda8; max-width: 23rem; margin-top: .75rem; font-size: .88rem; line-height: 1.65; }
.project-link { color: #edf1ed94; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #edf1ed2e; border-radius: 999px; align-items: center; width: fit-content; margin-top: 1.5rem; padding: .48rem .7rem; font-size: .62rem; font-weight: 500; transition: color .18s, border-color .18s; display: inline-flex; }
.project-card:hover .project-link { color: var(--ps-blue-light); border-color: #64a9c18c; }

.project-invitation { background: #173746; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 1.5rem; display: flex; }
.project-invitation > p:last-child { max-width: 31rem; font-family: var(--font-serif); letter-spacing: -.035em; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.08; }

/* Principles */
.principles-section { background: #0d1c25; padding-block: 7rem; }
.principles-grid { margin-top: 1rem; display: grid; }
.principles-grid article { border-bottom: 1px solid var(--ps-line); min-height: 400px; padding: 2rem 0; position: relative; }
.principle-icon { border: 1px solid #edf1ed3d; border-radius: 50%; place-items: center; width: 3.5rem; height: 3.5rem; display: grid; }
.principle-icon svg { stroke: var(--ps-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.25px; width: 1.8rem; height: 1.8rem; }
.principle-number { color: #edf1ed7a; font-family: var(--font-serif); font-size: .64rem; position: absolute; top: 2rem; right: 0; }
.principles-grid h3 { font-family: var(--font-serif); letter-spacing: -.03em; margin-top: 8rem; font-size: 2rem; font-weight: 400; }
.principles-grid article > p { color: #edf1eda8; max-width: 21rem; margin-top: 1rem; font-size: .88rem; line-height: 1.7; }

/* Support */
.support-section { color: var(--ps-ink); background: #071019; padding-block: 6rem; }
.support-section .eyebrow { color: var(--ps-blue-light); }
.support-grid { gap: 3rem; margin-top: 4rem; display: grid; }
.support-grid h2 { max-width: 43rem; font-family: var(--font-serif); letter-spacing: -.055em; font-size: clamp(3.2rem, 6.5vw, 6.5rem); font-weight: 400; line-height: .92; }
.support-grid > div > p { color: #edf1edb3; max-width: 32rem; font-size: 1rem; line-height: 1.8; }
.support-actions { flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; display: flex; }

.privsay-content .button { border-radius: 999px; justify-content: center; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .8rem 1.3rem; font-size: .78rem; font-weight: 500; transition: color .18s, background .18s, transform .18s; display: inline-flex; }
.privsay-content .button:hover { transform: translateY(-2px); }
.button-light { color: var(--ps-bg); background: var(--ps-lime); }
.button-light:hover { background: var(--ps-blue); }
.text-link { border-bottom: 1px solid #edf1ed7a; align-items: center; gap: .5rem; padding-bottom: .3rem; font-size: .78rem; display: inline-flex; transition: color .18s, border-color .18s; }
.text-link:hover { color: var(--ps-blue-light); border-color: var(--ps-blue); }

/* Information pages */
.information-page { min-height: 72vh; padding-block: 7rem 8rem; }
.information-header { max-width: 900px; }
.information-breadcrumb { color: #edf1ed6b; letter-spacing: .04em; align-items: center; gap: .65rem; margin-bottom: 3rem; font-size: .72rem; display: flex; }
.information-breadcrumb a { color: #edf1edad; transition: color .18s; }
.information-breadcrumb a:hover { color: var(--ps-blue-light); }
.information-breadcrumb span[aria-current="page"] { color: var(--ps-blue); }
.information-header h1 { letter-spacing: -.055em; max-width: 820px; margin-top: 1.5rem; font-size: clamp(3.2rem, 6.5vw, 6.5rem); font-weight: 400; line-height: .95; }
.information-header > p:last-child:not(.eyebrow) { color: #edf1edb3; max-width: 680px; margin-top: 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.7; }
.information-header > p.eyebrow:empty { display: none; }
.information-grid { border-top: 1px solid var(--ps-line); margin-top: 6rem; display: grid; }
.information-grid article { border-bottom: 1px solid var(--ps-line); padding-block: 2.25rem; position: relative; }
.information-grid article > span { color: var(--ps-blue); letter-spacing: .1em; font-size: .65rem; }
.information-grid h2 { letter-spacing: -.03em; margin-top: 1rem; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 400; }
.information-grid h2 a:hover { color: var(--ps-blue-light); }
.information-grid article > p { color: #edf1eda8; max-width: 680px; margin-top: 1rem; font-size: .95rem; line-height: 1.8; }
.information-action { color: var(--ps-bg); background: var(--ps-lime); border-radius: 999px; margin-top: 3rem; padding: .85rem 1.2rem; font-size: .8rem; font-weight: 600; transition: background .18s, transform .18s; display: inline-flex; }
.information-action:hover { background: var(--ps-blue); transform: translateY(-2px); }

.donation-methods { gap: .75rem; max-width: 680px; margin-top: 3rem; display: grid; }
.donation-methods > div { background: #10212d; border: 1px solid var(--ps-line); align-items: center; gap: 1rem; padding: 1rem; display: flex; }
.donation-methods span { color: var(--ps-blue-light); letter-spacing: .06em; border: 1px solid #64a9c17a; border-radius: 50%; flex: none; place-items: center; width: 3rem; height: 3rem; font-size: .68rem; font-weight: 600; display: grid; }
.donation-methods p { font-size: 1.1rem; }


/* Link colours: keep Astra's global a/a:hover colours out of the design's links */
.hero-cta, .text-link, .project-card, .project-card:hover, .project-card:focus { color: var(--ps-ink); }
.button-light, .button-light:hover, .button-light:focus,
.information-action, .information-action:hover, .information-action:focus { color: var(--ps-bg); }
.hero-cta:hover, .text-link:hover, .information-grid h2 a:hover, .information-breadcrumb a:hover { color: var(--ps-blue-light); }

/* Astra header (Header Builder) */
.privsay .site-header .ast-container,
.privsay .site-footer .ast-container { max-width: 1352px; padding-inline: 1rem; }
.privsay .ast-primary-header-bar,
.privsay .main-header-bar,
.privsay .ast-mobile-header-wrap .ast-primary-header-bar { background: var(--ps-bg); border-bottom: 1px solid #edf1ed26; }
.privsay .site-branding .ast-site-identity,
.privsay .ast-site-identity { display: flex; align-items: center; gap: .75rem; padding: 0; }
.privsay-logo-mark { display: block; line-height: 0; }
.privsay .site-title { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.privsay .site-title a, .privsay .site-title a:hover, .privsay .site-title a:focus { color: var(--ps-ink); }

.privsay .main-header-menu .menu-item > .menu-link { color: var(--ps-ink); font-size: .95rem; font-weight: 600; letter-spacing: .01em; padding: .55rem 1.25rem; position: relative; transition: color .18s; }
.privsay .main-header-menu .menu-item > .menu-link::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: -.5rem; height: 2px; background: var(--ps-blue); transform: scaleX(0); transform-origin: 100%; transition: transform .2s; }
.privsay .main-header-menu .menu-item:hover > .menu-link,
.privsay .main-header-menu .current-menu-item > .menu-link { color: var(--ps-blue-light); }
.privsay .main-header-menu .menu-item:hover > .menu-link::after { transform: scaleX(1); transform-origin: 0; }
.privsay .ast-desktop .main-header-menu .menu-item > .menu-link::after { display: block; }

.privsay .ast-header-button-1 .ast-custom-button,
.privsay .ast-builder-button-wrap .ast-custom-button { background: transparent; color: var(--ps-ink); border: 1px solid #edf1ed8c; border-radius: 999px; padding: .65rem 1rem; font-size: .82rem; font-weight: 600; line-height: 1.2; transition: color .18s, background .18s; }
.privsay .ast-header-button-1 .ast-custom-button:hover,
.privsay .ast-builder-button-wrap .ast-custom-button:hover { background: var(--ps-blue); color: var(--ps-bg); border-color: var(--ps-blue); }

/* Mobile header */
.privsay .ast-mobile-menu-trigger-minimal,
.privsay .menu-toggle.main-header-menu-toggle { color: var(--ps-ink); background: transparent; border: 1px solid #edf1ed47; border-radius: 50%; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; }
.privsay .menu-toggle.main-header-menu-toggle { background: transparent !important; }
.privsay .menu-toggle .ast-mobile-svg { fill: var(--ps-ink) !important; width: 1.1rem; height: 1.1rem; }
.privsay .ast-mobile-header-content,
.privsay .ast-mobile-popup-drawer .ast-mobile-popup-inner { background: #0f1d28; box-shadow: 0 24px 40px #00000059; }
.privsay .ast-mobile-header-content .menu-item > .menu-link,
.privsay .ast-mobile-popup-drawer .menu-item > .menu-link { color: var(--ps-ink); font-size: 1.5rem; font-weight: 400; border-bottom: 1px solid #edf1ed1f !important; padding: 1rem .5rem; }
.privsay .ast-mobile-header-content .ast-builder-button-wrap { padding: 1rem .5rem; }

/* Astra footer (Footer Builder) */
.privsay .site-footer,
.privsay .site-primary-footer-wrap,
.privsay .site-below-footer-wrap { background: #071019; color: var(--ps-ink); }
.privsay .site-footer .ast-builder-grid-row-container-inner { width: min(100% - 2rem, 1320px); max-width: none; margin-inline: auto; padding-inline: 0; }
.privsay .site-primary-footer-wrap { border-top: 0; padding-block: 2rem; }
.privsay .site-primary-footer-wrap .ast-builder-grid-row,
.privsay .site-below-footer-wrap .ast-builder-grid-row { border-top: 1px solid var(--ps-line); padding-top: 2rem; align-items: center; }
.privsay .site-below-footer-wrap { border-top: 0; padding-block: 0 2rem; }
.privsay .site-below-footer-wrap[data-section="section-below-footer-builder"] { border-top: 0; }
.privsay .site-footer .ast-builder-html-element p,
.privsay .site-footer .ast-footer-copyright p { margin: 0; }
.privsay .site-footer .footer-widget-area .brand { font-size: 1.15rem; }

.privsay .site-footer .ast-footer-copyright,
.privsay .site-below-footer-wrap .ast-builder-html-element { color: #edf1ed6b; font-size: .66rem; }
.privsay .site-footer .site-footer-section-1,
.privsay .site-footer .site-footer-section-1 .ast-footer-copyright,
.privsay .site-footer .site-footer-section-1 .ast-builder-html-element { justify-content: flex-start; text-align: left; }
.privsay .site-footer .site-footer-section-2,
.privsay .site-footer .site-footer-section-2 .ast-builder-html-element { justify-content: flex-end; text-align: right; }

.privsay #astra-footer-menu { display: flex; flex-direction: row; gap: 1rem 2rem; flex-wrap: wrap; }
.privsay #astra-footer-menu .menu-item { width: auto; border: 0; }
.privsay #astra-footer-menu .menu-item > .menu-link { color: #edf1ed9e; font-size: .72rem; padding: 0; transition: color .18s; }
.privsay #astra-footer-menu .menu-item > .menu-link:hover,
.privsay #astra-footer-menu .current-menu-item > .menu-link { color: var(--ps-ink); }

/* Astra-rendered pages (blog, default pages, 404) on the dark background */
.privsay:not(.privsay-template) .site-content { padding-block: 4rem; }
.privsay:not(.privsay-template) .entry-content,
.privsay:not(.privsay-template) .entry-title,
.privsay:not(.privsay-template) .entry-title a { color: var(--ps-ink); }
.privsay .ast-separate-container .ast-article-post,
.privsay .ast-separate-container .ast-article-single,
.privsay .ast-plain-container .site-content,
.privsay .ast-separate-container .comment-respond { background: transparent; }

@media (max-width: 767px) {
	.privsay .site-footer .site-footer-section-2,
	.privsay .site-footer .site-footer-section-2 .ast-builder-html-element { justify-content: flex-start; text-align: left; }
	.privsay .site-primary-footer-wrap .ast-builder-grid-row,
	.privsay .site-below-footer-wrap .ast-builder-grid-row { gap: 2rem; }
}

@media (min-width: 768px) {
	.page-shell,
	.privsay .site-footer .ast-builder-grid-row-container-inner { width: min(100% - 4rem, 1320px); }
	.privsay .site-header .ast-container,
	.privsay .site-footer .ast-container { padding-inline: 2rem; }
}

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transition: opacity .6s, transform .6s; transform: translateY(18px); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.js .project-card[data-reveal].is-visible:hover { transform: translateY(-4px); }

/* Breakpoints */
@media (min-width: 640px) {
	.hero-inner { min-height: 680px; padding-top: 6rem; }
}

@media (min-width: 768px) {
	.page-shell { width: min(100% - 4rem, 1320px); }
	.section-heading { grid-template-columns: 1.25fr .75fr; }
	.project-grid { grid-template-columns: repeat(2, 1fr); }
	.project-card { min-height: 500px; padding: 2rem; }
	.project-invitation { grid-column: span 2; min-height: 330px; padding: 2rem; }
	.project-grid.is-odd .project-invitation { grid-column: auto; min-height: 500px; }
	.principles-grid { grid-template-columns: repeat(3, 1fr); }
	.principles-grid article { border-bottom: 0; border-right: 1px solid var(--ps-line); padding: 2rem; }
	.principles-grid article:nth-child(3n+1) { padding-left: 0; }
	.principles-grid article:nth-child(3n) { border-right: 0; padding-right: 0; }
	.principles-grid article:last-child { border-right: 0; }
	.principles-grid article:nth-child(3n+1) .principle-number { right: 2rem; }
	.support-grid { grid-template-columns: 1.1fr .9fr; align-items: end; }
	.information-grid article { grid-template-columns: 4rem minmax(14rem, .65fr) 1fr; align-items: start; gap: 2rem; display: grid; }
	.information-grid h2, .information-grid article > p { margin-top: 0; }
	.donation-methods { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.hero-inner { min-height: 700px; padding-top: 6rem; }
	.hero-bottom { grid-template-columns: 1fr .7fr; align-items: end; }
	.hero-intro { justify-self: end; font-size: 1.15rem; line-height: 2rem; }
}

@media (max-width: 767px) {
	.hero-visual { opacity: .18; width: 58vw; height: 46%; top: 13%; right: -15%; }
	.mandate-section { padding-block: 6rem; }
	.ecosystem-section, .principles-section { padding-block: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, ::before, ::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
