/*
Theme Name: Traci Theme
Version: 0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: traci-theme
*/

/* ── Custom properties ──────────────────────────────────── */

:root {
	--color-bg: #1b2023;
	--color-text: #e8e4dc;
	--color-accent: #b08d57;
	--color-hero-panel: #242b2f;
	--font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: Georgia, "Times New Roman", Times, serif;
	--page-pad: clamp(1.25rem, 6vw, 5rem);
}

/* ── Reset & base ───────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* ── Skip link / screen-reader-text ─────────────────────── */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: var(--page-pad);
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	z-index: 100;
}

/* ── Header / nav ───────────────────────────────────────── */

.site-header {
	padding: 1.25rem var(--page-pad);
}

.site-nav {
	display: flex;
	justify-content: flex-end;
	gap: 1.5rem;
}

.site-nav__link {
	color: var(--color-text);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
	color: var(--color-accent);
	outline: none;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
	position: relative;
	height: 92vh;
	overflow: hidden;
}

.hero__photo {
	position: absolute;
	inset: 0;
	background: var(--color-hero-panel);
	border: 1px solid var(--color-accent);
}

.hero__text {
	position: relative;
	z-index: 1;
	padding: 0 var(--page-pad) var(--page-pad);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}

.hero__name {
	margin: 0 0 0.4em;
	font-family: var(--font-serif);
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-text);
}

.hero__sub {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-text);
	opacity: 0.78;
}

/* ── Sections ───────────────────────────────────────────── */

.site-main {
	padding-bottom: 4rem;
}

.section {
	padding: 0 var(--page-pad);
	margin-bottom: clamp(4rem, 10vw, 7rem);
}

.hero {
	margin: 0 var(--page-pad) clamp(5rem, 12vw, 9rem);
}

.section__title {
	margin: 0 0 1.25em;
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--color-text);
}

.section__text {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--color-text);
	opacity: 0.88;
}

/* Uneven rhythm: different widths and offsets */

#dowsing {
	max-width: 30rem;
}

#encounters {
	max-width: 36rem;
	padding-left: calc(var(--page-pad) + 1.5rem);
}

#book {
	max-width: 28rem;
	padding-left: calc(var(--page-pad) + 3rem);
}

/* Scroll anchor offset so headings aren't hidden under the header */

#dowsing,
#encounters,
#book {
	scroll-margin-top: 4rem;
}

/* ── Closing line ───────────────────────────────────────── */

.closing {
	padding: 0 var(--page-pad);
	margin: 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--color-text);
	opacity: 0.7;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
	padding: 2rem var(--page-pad);
	border-top: 1px solid rgba(232, 228, 220, 0.1);
}

.site-footer__line {
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--color-text);
	opacity: 0.5;
}

/* ── Responsive: phone ──────────────────────────────────── */

@media (max-width: 600px) {
	.hero {
		height: 80vh;
	}

	.site-nav {
		gap: 1rem;
	}

	.site-nav__link {
		font-size: 0.75rem;
	}

	#dowsing,
	#encounters,
	#book {
		padding-left: var(--page-pad);
		max-width: 100%;
	}
}

/* hero photograph */
.hero__photo {
  background-image: linear-gradient(rgba(20, 24, 27, 0.35), rgba(20, 24, 27, 0.55)), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* ── Name fade-in ───────────────────────────────────────── */

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero__name {
		animation: fade-in 3s ease-in-out both;
	}
}

/* links inside page text */
.section__text a,
.section__text a:visited {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
}

.section__text a:hover,
.section__text a:focus {
  color: var(--color-accent);
}

/* fade-between-pages */
body{animation:pagein .6s ease both}
@keyframes pagein{from{opacity:0}to{opacity:1}}
body.leaving{opacity:0;transition:opacity .4s ease}
@media (prefers-reduced-motion:reduce){body{animation:none}body.leaving{transition:none}}

/* header-home-name */
.site-nav { flex-wrap: wrap; }
.site-nav__home { margin-right: auto; font-size: 1rem; letter-spacing: 0.14em; }
.site-nav__link[aria-current="page"] { color: var(--color-accent); }
@media (max-width: 600px) {
        .site-nav__home { flex-basis: 100%; margin-right: 0; font-size: 0.9rem; }
}

/* header-align */
.site-nav { align-items: center; }

/* aliens-page */
body.page-aliens { background: #050b1d; color: #d6e4f5; }
body.page-aliens .site-nav__link { color: #c3d3e8; }
body.page-aliens .site-nav__link:hover,
body.page-aliens .site-nav__link:focus,
body.page-aliens .site-nav__link[aria-current="page"] { color: #bfe3ff; }
body.page-aliens .site-footer__line { color: #8fa6c4; }
.aliens-hero { position: relative; overflow: hidden; height: min(78vh, 720px); }
.aliens-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; animation: aliens-drift 40s ease-in-out infinite alternate; }
@keyframes aliens-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.aliens-hero__text { position: absolute; left: var(--page-pad, 1.5rem); right: var(--page-pad, 1.5rem); bottom: 2rem; }
.aliens-hero__title { margin: 0; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #eaf4ff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.aliens-hero__sub { margin: 0.5rem 0 0; color: #d3e3f6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.aliens-story { max-width: 44rem; margin: 0 auto; padding: 4rem var(--page-pad, 1.5rem); }
.aliens-story__text { margin: 0; font-size: 1.125rem; line-height: 1.8; }
.aliens-wide { margin: 0; }
.aliens-wide img { width: 100%; height: auto; display: block; }
.aliens-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem var(--page-pad, 1.5rem); }
.aliens-pair__item { margin: 0; }
.aliens-pair__item img { width: 100%; height: auto; display: block; }
.aliens-note { margin: 2rem 0 0; text-align: center; font-size: 0.875rem; color: #8fa6c4; }
.aliens-contact { margin: 1.5rem 0 4rem; text-align: center; }
.aliens-contact__link { color: #bfe3ff; letter-spacing: 0.06em; text-underline-offset: 0.25em; }
@media (max-width: 700px) { .aliens-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .aliens-hero__img { animation: none; } }

/* fonts-and-colors */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
    --font-sans: "Jost", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { font-size: 1.05rem; line-height: 1.65; }
.site-nav__home { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.22em; }
.site-nav__link { font-weight: 400; letter-spacing: 0.1em; }
.aliens-hero__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(3.2rem, 9vw, 6.5rem); letter-spacing: 0.22em; }

/* alien-text */
body.page-aliens:not(.al-ready) :is(h1,h2,h3,h4,p,li,blockquote,figcaption):not(header *):not(nav *):not(footer *){opacity:0;animation:al-fallback .01s linear 2.4s forwards}
@keyframes al-fallback{to{opacity:1}}

/* dowsing-hero */
body.page-dowsing{background:#050912;color:#e9eef8}
body.page-dowsing::before{content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,8,20,.22) 0%,rgba(4,8,20,.5) 100%),
             url(images/dowsing-hero-1920.jpg) 55% 50%/cover no-repeat;}
@media (max-width:900px){
  body.page-dowsing::before{background:linear-gradient(180deg,rgba(4,8,20,.3) 0%,rgba(4,8,20,.6) 100%),
             url(images/dowsing-hero-1280.jpg) 52% 50%/cover no-repeat;}
}
body.page-dowsing .site-header,body.page-dowsing .site-footer{background:transparent;border-color:rgba(233,238,248,.14)}
body.page-dowsing .site-nav__link,body.page-dowsing .site-footer__line{color:#dfe6f3}
body.page-dowsing .section{background:transparent}
body.page-dowsing .section__title,body.page-dowsing .section__text{color:#f2f5fb;text-shadow:0 1px 16px rgba(0,0,0,.65)}

/* dowsing-template */
body.page-dowsing .dz-lede{font-size:1.25rem;max-width:34rem}
body.page-dowsing .dz-panel{max-width:40rem;padding:1.6rem 1.8rem;background:rgba(5,9,18,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(233,238,248,.12);border-radius:4px}
body.page-dowsing .dz-panel p{color:#eef2f9;line-height:1.75;margin:0 0 1.1rem}
body.page-dowsing .dz-h{font-family:var(--font-serif);font-weight:400;font-size:1.5rem;letter-spacing:.06em;color:#f2f5fb;margin:0 0 .8rem}
body.page-dowsing .dz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1.2rem;margin-top:1rem}
body.page-dowsing .dz-fig{margin:0}
body.page-dowsing .dz-fig img,body.page-dowsing .dz-ph{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:3px;border:1px solid rgba(233,238,248,.14)}
body.page-dowsing .dz-ph{display:flex;align-items:center;justify-content:center;background:rgba(5,9,18,.5);color:rgba(233,238,248,.55);font-size:.95rem}
body.page-dowsing .dz-fig figcaption{margin-top:.5rem;font-size:.9rem;color:#cdd6e6}
body.page-dowsing .dz-close{padding-bottom:6rem}
body.page-dowsing .dz-close p{font-family:var(--font-serif);font-size:1.4rem;max-width:34rem;color:#f2f5fb;text-shadow:0 1px 16px rgba(0,0,0,.65)}

/* dowsing-features */
.dz-tint{position:fixed;inset:0;z-index:-1;pointer-events:none;transition:background-color .5s linear}
.dz-still{position:fixed;left:20px;bottom:20px;z-index:3;display:flex;align-items:center;gap:.8rem;max-width:calc(100vw - 100px)}
.dz-still__btn{flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(5,9,18,.45);cursor:pointer;-webkit-tap-highlight-color:transparent}
.dz-still__btn svg{display:block;transform:rotate(-90deg)}
.dz-still__track,.dz-still__ring{fill:none;stroke-width:2}
.dz-still__track{stroke:rgba(233,238,248,.18)}
.dz-still__ring{stroke:rgba(233,238,248,.85);stroke-linecap:round}
.dz-still__btn:focus-visible{outline:2px solid #e9eef8;outline-offset:3px}
.dz-still__msg{margin:0;font-family:var(--font-serif);font-style:italic;font-size:1.05rem;color:#eef2f9;text-shadow:0 1px 12px rgba(0,0,0,.8);opacity:0;transition:opacity 1.2s ease}
.dz-still--done .dz-still__msg{opacity:1}
@media (prefers-reduced-motion:reduce){.dz-tint,.dz-still__msg{transition:none}}

/* aliens-fullpage */
body.page-aliens .aliens-hero{overflow:visible}
body.page-aliens .aliens-hero__img{position:fixed;top:0;left:0;width:100%;height:100vh;height:100dvh;object-fit:cover;object-position:58% 50%;z-index:-1}
body.page-aliens::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(4,8,20,.18) 0%,rgba(4,8,20,.5) 60%,rgba(4,8,20,.72) 100%)}
body.page-aliens .site-main,body.page-aliens .aliens-story,body.page-aliens .aliens-pair,body.page-aliens .aliens-wide{background:transparent}
@media (max-width:700px){body.page-aliens .aliens-hero__img{object-position:62% 50%}}

/* aliens-soft-edges */
body.page-aliens .aliens-wide img{
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26%,#000 74%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 26%,#000 74%,transparent 100%)}
body.page-aliens .aliens-pair__item img{
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%,#000 84%,transparent 100%),linear-gradient(to right,transparent 0,#000 12%,#000 88%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to bottom,transparent 0,#000 16%,#000 84%,transparent 100%),linear-gradient(to right,transparent 0,#000 12%,#000 88%,transparent 100%);
  mask-composite:intersect}


/* dowsing-words */
body.page-dowsing .dz-video{padding-top:0}
body.page-dowsing .dz-video__frame{position:relative;width:100%;max-width:44rem;aspect-ratio:16/9;border:1px solid rgba(233,238,248,.14);border-radius:4px;overflow:hidden;background:rgba(5,9,18,.6);box-shadow:0 8px 40px rgba(0,0,0,.45)}
body.page-dowsing .dz-video__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.page-dowsing .dz-video__link{margin:.6rem 0 0;font-size:.9rem}
body.page-dowsing .dz-video__link a{color:#cdd6e6}
body.page-dowsing .dz-by{font-style:italic;color:#cdd6e6;margin-bottom:1.4rem}
body.page-dowsing .dz-steps{margin:1.2rem 0 1.4rem;padding-left:1.5rem;color:#eef2f9}
body.page-dowsing .dz-steps li{line-height:1.75;margin:0 0 .9rem;padding-left:.3rem}
body.page-dowsing .dz-steps li::marker{color:#e8c98a;font-family:var(--font-serif)}
body.page-dowsing .dz-sign{font-family:var(--font-serif);font-size:1.3rem;text-align:right;margin:1.6rem 0 0;color:#f2f5fb}
body.page-dowsing .dz-healing{padding-bottom:3rem}
body.page-dowsing .dz-gallery{padding-bottom:6rem}


/* about-story */
.ab-story .ab-panel{max-width:42rem;padding:1.8rem 2rem;background:rgba(5,9,18,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(233,238,248,.12);border-radius:4px;margin-bottom:5rem}
.ab-story .ab-h{font-family:var(--font-serif);font-weight:400;font-size:1.6rem;letter-spacing:.05em;color:#f2f5fb;margin:0 0 1.2rem}
.ab-story .ab-panel p{color:#eef2f9;line-height:1.8;margin:0 0 1.2rem}
@media (max-width:700px){.ab-story .ab-panel{padding:1.3rem 1.2rem}}

/* about-hero */
body.page-about{background:#050912;color:#e9eef8}
body.page-about::before{content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,8,20,.2) 0%,rgba(4,8,20,.5) 100%),
             url(images/about-hero-1920.jpg) 50% 50%/cover no-repeat;}
@media (max-width:900px){
  body.page-about::before{background:linear-gradient(180deg,rgba(4,8,20,.3) 0%,rgba(4,8,20,.6) 100%),
             url(images/about-hero-1280.jpg) 50% 50%/cover no-repeat;}
}
body.page-about .site-header,body.page-about .site-footer{background:transparent;border-color:rgba(233,238,248,.14)}
body.page-about .site-nav__link,body.page-about .site-footer__line{color:#dfe6f3}
body.page-about .section{background:transparent}
body.page-about .section__title,body.page-about .section__text{color:#f2f5fb;text-shadow:0 1px 16px rgba(0,0,0,.65)}

/* header-italic */
@font-face{font-family:"Cormorant Garamond";src:url("fonts/CormorantGaramond-Italic.woff2") format("woff2");font-weight:300 700;font-style:italic;font-display:swap}
.site-nav__home{font-style:italic;font-weight:600;text-transform:none;letter-spacing:.03em;font-size:1.75rem}
body.page-dowsing .dz-sign,.dz-by,.ab-story .ab-h{font-style:italic}

/* book-page */
body.page-book{background:#050912;color:#e9eef8}
body.page-book::before{content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,8,20,.25) 0%,rgba(4,8,20,.58) 100%),
             url(images/book-hero-1920.jpg) 50% 50%/cover no-repeat;}
@media (max-width:900px){
  body.page-book::before{background:linear-gradient(180deg,rgba(4,8,20,.32) 0%,rgba(4,8,20,.62) 100%),
             url(images/book-hero-1280.jpg) 50% 50%/cover no-repeat;}
}
body.page-book .site-header,body.page-book .site-footer{background:transparent;border-color:rgba(233,238,248,.14)}
body.page-book .site-nav__link,body.page-book .site-footer__line{color:#dfe6f3}
body.page-book .section{background:transparent}
body.page-book .section__title{font-family:var(--font-serif);font-style:italic;font-weight:500;font-size:clamp(2.4rem,6vw,4rem);letter-spacing:.02em;color:#f2f5fb;text-shadow:0 1px 18px rgba(0,0,0,.7);margin-bottom:.4rem}
.bk-story .bk-soon{font-size:.85rem;letter-spacing:.32em;text-transform:uppercase;color:#e8c98a;margin:0 0 1.6rem}
.bk-story .bk-panel{max-width:40rem;padding:1.8rem 2rem;background:rgba(5,9,18,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(233,238,248,.12);border-radius:4px;margin-bottom:5rem}
.bk-story .bk-panel p{color:#eef2f9;font-size:1.12rem;line-height:1.85;margin:0 0 1.2rem}
.bk-story .bk-panel p:last-child{margin-bottom:0}
@media (max-width:700px){.bk-story .bk-panel{padding:1.3rem 1.2rem}}

/* welcome-night */
body.page-welcome{background:#050912;color:#e9eef8}
body.page-welcome::before{content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,8,20,.18) 0%,rgba(4,8,20,.5) 100%),
             url(images/welcome-night-1920.jpg) 50% 50%/cover no-repeat;}
@media (max-width:900px){
  body.page-welcome::before{background:linear-gradient(180deg,rgba(4,8,20,.26) 0%,rgba(4,8,20,.58) 100%),
             url(images/welcome-night-1280.jpg) 55% 50%/cover no-repeat;}
}
body.page-welcome .site-header,body.page-welcome .site-footer{background:transparent;border-color:rgba(233,238,248,.14)}
body.page-welcome .site-nav__link,body.page-welcome .site-footer__line{color:#dfe6f3}
body.page-welcome .section{background:transparent}
.wl-hero{min-height:calc(100vh - 13rem);min-height:calc(100dvh - 13rem);display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:5.5rem}
.wl-hero .wl-name{font-family:var(--font-serif);font-weight:300;font-size:clamp(3.2rem,9vw,6.5rem);letter-spacing:.06em;line-height:1.05;color:#f2f5fb;margin:0 0 1rem;text-shadow:0 2px 24px rgba(0,0,0,.7)}
.wl-hero .wl-line{font-family:var(--font-serif);font-style:italic;font-size:clamp(1.3rem,3vw,1.9rem);letter-spacing:.04em;color:#dfe6f3;margin:0;max-width:40rem;text-shadow:0 1px 18px rgba(0,0,0,.75)}

/* contact-night */
body.page-contact{background:#050912;color:#e9eef8}
body.page-contact::before{content:"";position:fixed;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,8,20,.3) 0%,rgba(4,8,20,.62) 100%),
             url(images/welcome-night-1920.jpg) 50% 22%/cover no-repeat;}
@media (max-width:900px){
  body.page-contact::before{background:linear-gradient(180deg,rgba(4,8,20,.36) 0%,rgba(4,8,20,.66) 100%),
             url(images/welcome-night-1280.jpg) 50% 22%/cover no-repeat;}
}
body.page-contact .site-header,body.page-contact .site-footer{background:transparent;border-color:rgba(233,238,248,.14)}
body.page-contact .site-nav__link,body.page-contact .site-footer__line{color:#dfe6f3}
body.page-contact .section,body.page-contact .site-main{background:transparent}
body.page-contact .section__title{color:#f2f5fb;text-shadow:0 1px 16px rgba(0,0,0,.65)}
body.page-contact .site-main a{font-size:1.15rem;text-shadow:0 1px 14px rgba(0,0,0,.7)}

/* contact-footer */
body.page-contact{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.page-contact .site-main{flex:1 0 auto}

/* dowsing-photos */
body.page-dowsing .dz-grid{grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));max-width:62rem}
body.page-dowsing .dz-fig img{aspect-ratio:auto;height:auto;object-fit:contain}
