/*
Theme Name: ASMRConnect
Theme URI: https://wordpress.org/
Description: Warm, quiet classic theme for the ASMRConnect adults-only ASMR collaboration directory. Pairs with the ASMRConnect plugin.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.2
Author: ASMRConnect
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asmrconnect
Tags: one-column, custom-menu, accessibility-ready
*/

:root {
	--bg: #f7f3eb;
	--paper: #fbf8f1;
	--cream: #f8f3e9;
	--input-bg: #fcfaf5;
	--band: #e9e2d5;
	--sand: #efe9dd;
	--ink: #40362f;
	--muted: #6b6158;
	--line: #d9cec0;
	--line-soft: #e8dfd3;
	--sage: #496f5d;
	--sage-dark: #3a5a4b;
	--forest: #26352c;
	--forest-2: #34463a;
	--peach: #e8c4a2;
	--copper: #d8ae8a;
	--bronze: #8a6c50;
	--danger: #a5443d;
	--danger-bg: #f4e6df;
	--success-bg: #dce5d9;
	--on-dark: #f7f0e4;
	--serif: "Instrument Serif", Georgia, serif;
	--sans: "DM Sans", system-ui, sans-serif;
	--mono: "Space Mono", ui-monospace, monospace;
	--radius: 0.85rem;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--sage);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 90;
	opacity: .1;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
main { flex: 1; }
::selection { background: rgba(216, 174, 138, .5); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; transition: color .18s ease, opacity .18s ease, transform .2s var(--ease), background-color .18s ease; }
a:hover { color: var(--sage-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.02em; margin: 0 0 .5em; }
em { font-style: italic; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--forest); color: var(--on-dark); padding: .7rem 1.1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 2.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .section { padding-top: 7rem; padding-bottom: 7rem; } }
.narrow { max-width: 780px; }

/* Type helpers */
.eyebrow {
	font: 400 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--sage);
	margin: 0 0 1.1rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow-light { color: #d3c8b6; }
.rule { width: 2rem; height: 1px; background: currentColor; opacity: .6; }
.mono-label { font: 400 9px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .18em; }
.h-xl { font-size: clamp(2.6rem, 6vw, 4rem); line-height: .97; }
.h-xxl { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .95; }
.muted-copy { color: var(--muted); font-size: .9rem; line-height: 1.75; max-width: 28rem; }
.num { font: 400 10px/1 var(--mono); color: var(--bronze); margin: 0; }
.icon { flex-shrink: 0; }

/* Pills */
.pill {
	display: inline-flex; align-items: center; gap: .6rem; border-radius: 999px; padding: .85rem 1.5rem;
	font: 600 13px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.pill:hover { transform: translateY(-2px); }
.pill-primary { background: var(--sage); color: #fffaf1; }
.pill-primary:hover { background: var(--sage-dark); color: #fffaf1; }
.pill-peach { background: var(--peach); color: var(--forest); }
.pill-peach:hover { color: var(--forest); background: #efd1b4; }
.pill-ghost { border-color: rgba(247, 240, 228, .35); color: var(--on-dark); font-weight: 500; }
.pill-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.pill-outline { border-color: #cfc3b3; color: var(--ink); font-weight: 500; }
.pill-outline:hover { background: var(--sand); color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 30; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.site-header-dark { background: var(--forest); color: var(--on-dark); border-bottom: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(73, 111, 93, .12); color: var(--sage); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.035em; }
.brand-inverse, .brand-inverse:hover { color: var(--on-dark); }
.brand-inverse .brand-icon { background: rgba(247, 240, 228, .1); color: var(--on-dark); }

.site-nav-desktop { display: none; align-items: center; gap: 2rem; font-size: 13px; }
.site-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.site-menu a, .nav-link { color: inherit; text-decoration: none; }
.site-menu a:hover, .nav-link:hover { color: inherit; opacity: .65; }
.site-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.site-actions { display: flex; align-items: center; gap: 1.5rem; }
.site-header-dark .pill-primary { background: var(--on-dark); color: var(--forest); }
.site-header-dark .pill-primary:hover { background: #fff6e8; color: var(--forest); }
.site-header .pill { padding: .65rem 1.2rem; }

.nav-toggle { position: static; }
.nav-toggle > summary {
	list-style: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
	padding: .5rem .8rem; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; border-color: rgba(128,118,108,.4);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.site-nav-mobile {
	position: absolute; left: 1rem; right: 1rem; top: calc(100% - .25rem);
	background: var(--cream); color: var(--ink); border-radius: 1.1rem; padding: 1.25rem;
	box-shadow: 0 24px 60px rgba(64, 54, 47, .16); display: grid; gap: 1rem; font-size: 14px;
}
.site-header-dark .site-nav-mobile { background: var(--forest-2); color: var(--on-dark); }
.site-nav-mobile .site-menu, .site-nav-mobile .site-actions { flex-direction: column; align-items: flex-start; gap: .9rem; }
@media (min-width: 768px) {
	.nav-toggle { display: none; }
	.site-nav-desktop { display: flex; }
}

/* Hero */
.hero { position: relative; background: var(--forest); color: var(--on-dark); overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
	background: radial-gradient(ellipse at 76% 42%, #9a795a 0%, transparent 35%), radial-gradient(ellipse at 20% 100%, #587260 0%, transparent 40%);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 5.5rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; padding-top: 4.5rem; padding-bottom: 7rem; } }
.display { font-size: clamp(3.4rem, 8vw, 7.2rem); line-height: .89; letter-spacing: -.035em; margin: 0; }
.display em { color: var(--copper); }
.hero-lede { margin: 1.75rem 0 0; max-width: 28rem; font-size: 15px; line-height: 1.8; color: rgba(232, 223, 211, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; font-size: 12px; color: rgba(217, 208, 196, .78); }
.hero-note .icon { color: var(--copper); }
.hero-visual { position: relative; width: 100%; max-width: 540px; margin: 0 auto; }
.arch {
	position: relative; margin: 0 0 0 auto; width: 83%; aspect-ratio: .89; overflow: hidden;
	border-radius: 48% 48% 12px 12px; border: 1px solid rgba(229, 216, 197, .2); background: #827663;
	animation: drift 9s ease-in-out infinite;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32, 42, 36, .7), transparent 55%); }
.arch figcaption { position: absolute; z-index: 1; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; display: grid; gap: .4rem; }
.arch .mono-label { color: var(--peach); }
.serif-line { font: 400 1.9rem/1 var(--serif); }
.float-card {
	position: absolute; left: 0; top: 23%; background: #e9e1d2; color: var(--ink); border-radius: 1.1rem; padding: 1rem;
	box-shadow: 0 24px 60px rgba(0,0,0,.2); display: grid; gap: .7rem;
}
.float-card .mono-label { color: var(--muted); }
.float-row { display: flex; align-items: center; gap: .6rem; font-size: 12px; font-weight: 500; }
.dot-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(73,111,93,.12); color: var(--sage); }

.rise { animation: rise .75s var(--ease) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .32s; }
/* Keep essential copy visible even when a browser pauses entrance animations. */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

/* Story */
.story { display: grid; gap: 3rem; }
@media (min-width: 900px) { .story { grid-template-columns: .78fr 1.22fr; } }
.story-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .story-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.story-point { border-top: 1px solid var(--line); padding-top: 1rem; }
.story-point h3 { font-size: 1.9rem; margin: 1.2rem 0 .5rem; }
.story-point p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* Consent band */
.band { background: var(--band); }
.consent { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .consent { grid-template-columns: 1fr .9fr; } }
.consent-art { position: relative; overflow: hidden; min-height: 320px; border-radius: 2rem; background: #d6cdbd; padding: 2.25rem; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(73,111,93,.25); }
.r1 { width: 16rem; height: 16rem; right: -3rem; top: -3rem; }
.r2 { width: 12rem; height: 12rem; right: -.25rem; top: 50%; transform: translateY(-50%); }
.mic-disc { position: absolute; right: 5.2rem; top: 50%; transform: translateY(-50%); width: 6rem; height: 6rem; border-radius: 50%; background: var(--sage); color: var(--on-dark); display: grid; place-items: center; }
.mic-disc .icon { width: 30px; height: 30px; }
.consent-quote { position: relative; font: 400 2.3rem/1.02 var(--serif); max-width: 15rem; margin: 3rem 0 0; }
.check-list { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; gap: .8rem; font-size: 14px; }
.check-list li { display: flex; gap: .7rem; align-items: center; }
.check-list .icon { color: var(--sage); }

/* Directory section */
.section-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.invite { display: flex; flex-direction: column; gap: 2.5rem; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .invite { flex-direction: row; justify-content: space-between; align-items: center; } }

/* State panels */
.state-panel, .ac-notice {
	border: 1px dashed #cbbfae; border-radius: 1.4rem; background: var(--paper); padding: 2.5rem 1.75rem; text-align: center;
	display: grid; justify-items: center; gap: .75rem;
}
.state-panel h3 { font-size: 2rem; margin: 0; }
.state-panel p { margin: 0; color: var(--muted); max-width: 32rem; font-size: 14px; }
.state-panel .eyebrow { justify-content: center; margin: 0; }
.notfound { min-height: 60vh; }

/* Page */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
@media (min-width: 768px) { .page-hero { padding: 4.5rem 0 3.5rem; } }
.page-hero h1 { margin: 0; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 1.75rem; }
.single-head { margin-bottom: 2rem; }
.single-article { max-width: 1120px; }
.post-list { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.5rem; }
.post-card h2 { font-size: 1.9rem; margin: .9rem 0 .5rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: 14px; }

/* Entry content */
.entry-content { font-size: 15.5px; line-height: 1.75; }
.entry-content > * { max-width: 760px; }
.entry-content > .ac-wrap, .entry-content > .alignwide, .entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: 2.4rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.8rem; margin-top: 1.6rem; }
.entry-content blockquote { border-left: 2px solid var(--copper); margin: 1.5rem 0; padding-left: 1.25rem; font: italic 1.5rem/1.3 var(--serif); }
.entry-content a { color: var(--sage); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--sage); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Forms (global + plugin) */
label { font-size: 13px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="date"], input[type="number"], input[type="tel"], select, textarea {
	display: block; width: 100%; border: 1px solid #d6cabb; border-radius: .8rem; background: var(--input-bg);
	padding: .78rem .9rem; color: var(--ink); font: inherit; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: #8e8376; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(73,111,93,.2); }
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--sage); width: 1.05rem; height: 1.05rem; }
button, input[type="submit"], .ac-button, .wp-element-button, .search-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; cursor: pointer;
	border-radius: 999px; padding: .8rem 1.4rem; background: var(--sage); color: #fffaf1; font: 600 13px/1.2 var(--sans); text-decoration: none;
	transition: background-color .18s ease, transform .2s var(--ease);
}
button:hover, input[type="submit"]:hover, .ac-button:hover { background: var(--sage-dark); color: #fffaf1; transform: translateY(-1px); }
.nav-toggle > summary, .nav-toggle > summary:hover { background: transparent; }
.ac-button-secondary { background: transparent; color: var(--ink); border-color: #cfc3b3; }
.ac-button-secondary:hover { background: var(--sand); color: var(--ink); }
.ac-button-danger { background: var(--danger); color: #fffaf1; }
.ac-button-danger:hover { background: #8b3832; }
.search-form { display: flex; gap: .5rem; width: 100%; max-width: 28rem; }

/* Plugin components */
.ac-wrap { display: grid; gap: 1.75rem; }
.ac-panel { background: var(--paper); border: 1px solid #ded5c9; border-radius: 1.4rem; padding: 1.5rem; }
@media (min-width: 768px) { .ac-panel { padding: 2.25rem; } }
.ac-filters {
	display: grid; gap: .75rem; background: var(--cream); border: 1px solid var(--line-soft); border-radius: 1.2rem; padding: .85rem;
	box-shadow: 0 5px 18px rgba(64,54,47,.06); align-items: end;
}
@media (min-width: 768px) { .ac-filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 1rem; } }
.ac-filters label { display: grid; gap: .35rem; }
.ac-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ac-grid { grid-template-columns: repeat(3, 1fr); } }
.ac-card {
	display: flex; flex-direction: column; gap: .8rem; min-height: 260px; background: var(--paper); border: 1px solid #ded5c9;
	border-radius: 1.3rem; padding: 1.25rem; transition: transform .3s var(--ease), box-shadow .3s ease;
}
.ac-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(64,54,47,.1); }
.ac-card h2, .ac-card h3 { font-size: 1.6rem; margin: 0; }
.ac-card h2 a, .ac-card h3 a { color: var(--ink); text-decoration: none; }
.ac-card p { margin: 0; font-size: 13.5px; color: #5f574f; }
.ac-card > :last-child { margin-top: auto; }
.ac-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ac-tag { display: inline-block; background: var(--sand); color: #574f48; border-radius: 999px; padding: .35rem .7rem; font-size: 11px; }
.ac-form { display: grid; gap: 1.25rem; }
.ac-field { display: grid; gap: .4rem; }
.ac-field small, .ac-field .description { color: var(--muted); font-size: 12px; }
.ac-checks { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.ac-checks legend { font-size: 13px; font-weight: 500; margin-bottom: .5rem; width: 100%; }
.ac-checks label { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; background: var(--input-bg); font-weight: 400; cursor: pointer; }
.ac-checks label:has(input:checked) { border-color: var(--sage); background: #e3ebe2; }
.ac-checks label:focus-within { box-shadow: var(--focus); }
.ac-honeypot { display: none !important; }
.ac-alert, .ac-error, .ac-success { border-radius: 1rem; padding: 1rem 1.2rem; font-size: 14px; border: 1px solid; }
.ac-alert, .ac-error { background: var(--danger-bg); border-color: #e2c8bd; color: #7d322c; }
.ac-success { background: var(--success-bg); border-color: #bccdbb; color: #2f4a3d; }
.ac-notice { color: var(--muted); }
.ac-muted { color: var(--muted); font-size: 13px; }
.ac-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.ac-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.ac-pagination a, .ac-pagination span { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.ac-pagination .current { background: var(--sage); color: #fffaf1; border-color: var(--sage); }
.ac-profile { display: grid; gap: 1.5rem; background: var(--paper); border: 1px solid #ded5c9; border-radius: 1.8rem; padding: 1.75rem; }
@media (min-width: 768px) { .ac-profile { padding: 2.75rem; } }
.ac-profile h1, .ac-profile h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
details { border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); padding: .9rem 1.1rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details[open] > summary { margin-bottom: .6rem; }
.nav-toggle { border: 0; background: none; padding: 0; }
.nav-toggle[open] > summary { margin: 0; }

/* WP core */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 12px; color: var(--muted); }
.sticky, .bypostauthor { position: relative; }
.comment-list { list-style: none; padding: 0; }

@media (max-width: 899px) {
	.float-card { top: auto; bottom: -1rem; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.arch { animation: none; }
	.pill:hover, .ac-card:hover, button:hover { transform: none; }
}
