/*
Theme Name: The Past Files
Theme URI: https://thepastfiles.nl
Author: The Past Files
Description: Black and gold storytelling theme for The Past Files. It sets up the website and brings in YouTube stories automatically.
Version: 1.2.3
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepastfiles
*/

@font-face{font-family:"Libre Baskerville";src:url(assets/fonts/LibreBaskerville-Regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Crimson Pro";src:url(assets/fonts/CrimsonPro-Regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Crimson Pro";src:url(assets/fonts/CrimsonPro-Italic.woff) format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Crimson Pro";src:url(assets/fonts/CrimsonPro-Bold.woff) format("woff");font-weight:700;font-display:swap}

:root{
	--black:#000;
	--panel:#0a0806;
	--line:#6d5322;
	--gold:#e3ae4c;
	--gold-soft:#f0cd86;
	--ivory:#f5ebd7;
	--muted:#c9bda6;
	--display:"Libre Baskerville",Georgia,serif;
	--text:"Crimson Pro",Georgia,"Times New Roman",serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--black);color:var(--ivory);font:400 19px/1.6 var(--text);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg,iframe{display:block;max-width:100%}
img{height:auto}
a{color:var(--gold-soft)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--gold-soft);outline-offset:3px}
h1,h2,h3{margin:0;font-weight:700;line-height:1.15;text-wrap:balance}
ul{margin:0;padding:0;list-style:none}
p{margin:0 0 1em}
button{font:inherit}
.wrap{width:min(1420px,100%);margin-inline:auto;padding-inline:28px}
.skip,.screen-reader-text{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:30;background:var(--gold);color:#000;padding:8px 14px}
.icon{display:inline-flex}
.icon svg{width:100%;height:100%}

/* header */
.site-head{position:sticky;top:0;z-index:20;background:#000;border-bottom:1px solid #3a2c12}
.admin-bar .site-head{top:32px}
.site-head__row{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:112px}
.brand{display:flex;align-items:center;gap:18px;color:var(--ivory);text-decoration:none;min-width:0}
.brand__seal{flex:none;width:76px;height:76px;display:grid;place-items:center;border:1.500px solid var(--gold);border-radius:50%;color:var(--gold)}
.brand__seal .icon{width:30px;height:40px}
.brand__text{display:grid;gap:4px;min-width:0}
.brand__name{font:400 28px/1.1 var(--display);letter-spacing:.05em;font-variant:small-caps;font-variant-caps:all-small-caps;white-space:nowrap}
.brand__name span{font-size:1.32em}
.brand__tag{color:var(--gold-soft);font-size:17px;line-height:1.2;white-space:nowrap}
.site-nav{display:flex;align-items:center;gap:26px}
.site-nav ul{display:flex;align-items:center;gap:24px}
.site-nav a{display:block;padding:12px 0;color:var(--ivory);text-decoration:none;font-size:19px;border-bottom:2px solid transparent;white-space:nowrap}
.site-nav a:hover{color:var(--gold-soft)}
.site-nav .current-menu-item>a{color:var(--gold);border-color:var(--gold)}
.head-btn{width:44px;height:44px;padding:9px;background:none;border:0;color:var(--gold);cursor:pointer}
.menu-toggle{display:none}
.site-search{border-top:1px solid #3a2c12;padding-block:14px}
.search-form{display:flex;gap:10px;max-width:620px}
.search-form input,.contact input,.contact textarea{width:100%;background:#0d0a06;border:1px solid var(--line);border-radius:8px;color:var(--ivory);font:inherit;padding:11px 14px}
.search-form input::placeholder{color:#a79a83}

/* hero */
.hero{position:relative;padding:82px 0 66px;text-align:center;background:#000 var(--tpf-hero) center/cover no-repeat;border-bottom:1px solid #4a3715}
.hero__title{font:400 clamp(44px,6.700vw,90px)/1.1 var(--display);letter-spacing:.09em;font-variant:small-caps;font-variant-caps:all-small-caps;color:var(--ivory)}
.hero__title span{font-size:1.28em}
.hero__rule{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px auto 26px;color:var(--gold)}
.hero__rule i{width:min(270px,28vw);height:3px;background:linear-gradient(90deg,transparent,var(--gold) 30%);transform-origin:right;animation:rule .9s cubic-bezier(.2,.7,.2,1) both}
.hero__rule i:last-child{background:linear-gradient(270deg,transparent,var(--gold) 30%);transform-origin:left}
.hero__rule .icon{width:44px;height:58px}
@keyframes rule{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hero__line{margin:0;font-size:clamp(16px,2vw,25px);letter-spacing:.24em;text-transform:uppercase;color:#e8decb}
.hero__line b{display:inline-block;width:5px;height:5px;margin:0 1em;border-radius:50%;background:var(--gold);vertical-align:.25em}

/* home */
.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:32px;padding-top:30px;align-items:stretch}
.section-head{display:flex;align-items:center;gap:30px;margin-bottom:24px}
.section-head h2{font-size:clamp(34px,3.400vw,48px);white-space:nowrap}
.section-head span{flex:1;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.card{position:relative;display:flex;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.card__link{display:flex;flex-direction:column;width:100%;color:var(--ivory);text-decoration:none}
.story-img{display:block;flex:none;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;border-bottom:1px solid #3a2c12}
.player .story-img{position:absolute;inset:0;height:100%;aspect-ratio:auto;border:0}
.story-img--empty{display:grid;place-items:center;color:#57431d}
.story-img--empty .icon{width:48px;height:64px}
.card__link:hover .card__title{color:var(--gold-soft)}
.card__text{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:15px 18px 15px}
.card__title{font-size:clamp(21px,1.700vw,25px);font-weight:700;line-height:1.16;text-wrap:balance}
.card--article .story-img{aspect-ratio:4/5;object-position:top}
.card__summary{color:var(--muted);font-size:18px;line-height:1.35}
.card__foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin-top:auto}
.card__date{color:var(--muted);font-size:16px;line-height:1.2}
.card__meta{display:flex;align-items:center;gap:8px;color:var(--gold-soft);font-size:18px;line-height:1}
.card__play{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold);color:#000}
.card__play .icon{width:17px;height:17px}
.about-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;padding:26px 26px 150px;border:1px solid var(--line);border-radius:14px;background:#000 var(--tpf-globe) right 6px bottom 6px no-repeat}
.about-card h2{font-size:31px;color:var(--gold);margin-bottom:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 22px;border:1px solid var(--gold);border-radius:8px;background:transparent;color:var(--gold-soft);font:inherit;font-size:19px;line-height:1.1;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--gold);color:#000}
.btn--solid{background:var(--gold);color:#000;font-weight:700}
.btn--solid:hover{background:var(--gold-soft)}
.btn .icon{width:20px;height:20px}
.collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:34px}
.collection{display:flex;align-items:center;gap:26px;padding:22px 30px;border:1px solid var(--line);border-radius:14px;color:var(--ivory);text-decoration:none}
.collection:hover{border-color:var(--gold);background:#0d0a05}
.collection .icon{flex:none;width:68px;height:60px;color:#d8a441}
.collection strong{display:block;font-size:28px;line-height:1.2}
.collection em{display:block;color:var(--muted);font-style:normal;font-size:19px;line-height:1.3}
.more{margin-top:56px}
.cards--wide .card__title{font-size:clamp(22px,1.800vw,26px)}
.follow{margin-top:64px;margin-bottom:-64px;padding:44px 0;background:#0b0804;border-block:1px solid #4a3715}
.follow__row{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.follow h2{font-size:34px;margin-bottom:6px}
.follow p{margin:0;color:var(--muted)}
.follow__links{display:flex;gap:12px;flex-wrap:wrap}
.empty{padding:44px 32px;border:1px solid var(--line);border-radius:14px;text-align:center}
.empty h3{font-size:30px;margin-bottom:8px}
.empty p{color:var(--muted)}

/* shorts */
.section-link{flex:none;font-size:19px}
.shorts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:22px}
.shorts--row{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.short{display:grid;align-content:start;gap:9px;color:var(--ivory);text-decoration:none}
.short__image{position:relative;display:block;aspect-ratio:9/16;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.short__image img{width:100%;height:100%;object-fit:cover}
.short__play{position:absolute;right:9px;bottom:9px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--gold);color:#000}
.short__play .icon{width:24px;height:24px}
.short__title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:18px;line-height:1.25}
.short:hover .short__title{color:var(--gold-soft)}
.short-player{width:min(420px,calc(100vw - 24px));padding:12px;border:1px solid var(--line);border-radius:14px;background:#000}
.short-player::backdrop{background:rgba(0,0,0,.86)}
.short-player__close{display:flex;margin:0 0 10px auto;min-height:40px;padding:6px 16px}
.short-player iframe{width:100%;aspect-ratio:9/16;max-height:calc(100vh - 110px);border:0;border-radius:10px;margin-inline:auto}

/* dates, comments, reviews */
.story-date{display:block;margin-top:12px;color:var(--muted);font-size:18px}
.responses{max-width:720px;margin:44px auto 0;padding-top:28px;border-top:1px solid #4a3715}
.page-body .responses{max-width:none}
.responses h2{font-size:30px;margin-bottom:14px}
.response-list{margin:0 0 30px;padding:0;list-style:none}
.response{padding:16px 0;border-bottom:1px solid #2e2310}
.response__head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.response__head time{margin-left:auto;color:var(--muted);font-size:16px}
.response__wait{margin:8px 0 0;color:var(--gold-soft);font-size:17px}
.response__text{margin-top:8px}
.response__text p:last-child{margin-bottom:0}
.responses__empty{color:var(--muted)}
.comment-form{display:grid;gap:14px}
.comment-form p{margin:0}
.comment-form label{display:block;margin-bottom:6px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form textarea{width:100%;background:#0d0a06;border:1px solid var(--line);border-radius:8px;color:var(--ivory);font:inherit;padding:11px 14px}
.comment-form .comment-form-cookies-consent{display:flex;gap:9px;align-items:flex-start;font-size:17px;color:var(--muted)}
.comment-form .comment-form-cookies-consent input{margin-top:6px}
.comment-form .comment-form-cookies-consent label{margin:0}
.comment-form .submit{cursor:pointer}
.stars{color:var(--gold);letter-spacing:.06em}
.stars i{color:#4a3a1c;font-style:normal}
.review-score{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:22px 0 0;font-size:20px}
.review-score .stars{font-size:26px;line-height:1}
.star-input{margin:0;padding:0;border:0}
.star-input legend{padding:0;margin-bottom:4px}
.star-input__row{display:inline-flex;flex-direction:row-reverse;gap:3px}
.star-input input{position:absolute;opacity:0;width:1px;height:1px}
.star-input label{margin:0;font-size:38px;line-height:1;color:#57431d;cursor:pointer}
.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:var(--gold)}
.star-input input:focus-visible+label{outline:2px solid var(--gold-soft);outline-offset:2px}

/* book */
.book{display:grid;grid-template-columns:minmax(0,380px) minmax(0,560px);justify-content:center;align-items:center;gap:72px;padding-top:72px;padding-bottom:40px}
.book__cover{position:relative;display:flex;aspect-ratio:2/3;width:min(100%,340px);margin-inline:auto;border-radius:5px 12px 12px 5px;overflow:hidden;background:linear-gradient(135deg,#1b120a,#080503 62%);border:1px solid #8d6a2a;box-shadow:18px 22px 50px rgba(227,174,76,.13)}
.book__spine{flex:none;width:18px;background:linear-gradient(90deg,#000,#2b1c0d 60%,#0a0603);border-right:1px solid #6d5322}
.book__face{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:26px 20px;text-align:center;color:var(--gold)}
.book__face .icon{width:48px;height:64px}
.book__brand{color:var(--ivory);font:400 26px/1.25 var(--display);font-variant:small-caps;font-variant-caps:all-small-caps;letter-spacing:.06em}
.book__brand span{font-size:1.28em}
.book__soon{padding-top:14px;border-top:1px solid var(--line);color:var(--gold-soft);font-size:20px}
.book__text h1{font:400 clamp(36px,4.600vw,58px)/1.15 var(--display);margin-bottom:20px}
.book__buy{margin-top:24px}
.book__buy--soon{border-color:var(--line);color:var(--muted);cursor:default}
.book__buy--soon:hover{background:none;color:var(--muted)}
.book-form{display:grid;gap:12px;margin-top:28px}
.book-form__email{display:grid;gap:6px}
.book-form input[type=email]{width:100%;background:#0d0a06;border:1px solid var(--line);border-radius:8px;color:var(--ivory);font:inherit;padding:11px 14px}
.book-form__ok{display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:17px}
.book-form__ok input{margin-top:6px}
.book-form .btn{justify-self:start}
.site-foot__gap{margin-left:18px}

/* shop */
.shop-body .price,.shop-body a{color:var(--gold-soft)}
.woocommerce input,.woocommerce textarea,.woocommerce select,.wc-block-components-text-input input{background:#fff;color:#111}
.wc-block-cart,.wc-block-checkout{color:var(--ivory)}

/* inner pages */
.page-banner{padding:60px 0 50px;text-align:center;background:#000 var(--tpf-hero) center/cover no-repeat;border-bottom:1px solid #4a3715}
.page-banner h1{font-size:clamp(38px,5vw,62px)}
.page-banner p{margin:12px auto 0;max-width:40em;color:#e8decb;font-size:21px}
.listing{padding-top:36px;padding-bottom:30px}
.page-body{max-width:780px;padding-top:44px;padding-bottom:30px}
.page-body--wide{max-width:1420px}
.page-body--wide .prose{margin-bottom:26px}
.prose{font-size:21px;line-height:1.65}
.prose h2{font-size:32px;margin:1.300em 0 .5em;color:var(--gold)}
.prose>*:last-child{margin-bottom:0}
.story{max-width:1040px;padding-top:40px}
.story__head{margin-bottom:24px}
.story__head h1{font-size:clamp(36px,5vw,60px)}
.story__collection{display:inline-block;margin-bottom:10px;font-size:20px;text-decoration:none}
.player{position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#000}
.player iframe{width:100%;height:100%;border:0}
.player__btn{position:absolute;left:50%;top:50%;width:88px;height:88px;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--gold);color:#000;cursor:pointer}
.player__btn:hover{background:var(--gold-soft)}
.player__btn .icon{width:58px;height:58px}
.story__image{max-width:720px;margin:0 auto}
.story__image figure{margin:0}
.story__image img{width:100%;border-radius:14px}
.story .prose{max-width:720px;margin:32px auto 0}
.story__note{max-width:720px;margin:26px auto 0;padding-top:14px;border-top:1px solid #4a3715;color:var(--muted);font-size:17px}
.nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:34px}
.page-numbers{display:grid;place-items:center;min-width:46px;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none}
.page-numbers.current{background:var(--gold);color:#000}
.contact{display:grid;gap:18px;margin-top:28px}
.contact label{display:grid;gap:6px}
.contact__trap{position:absolute;left:-9999px}
.contact__small{margin:0;color:var(--muted);font-size:17px}
.contact .btn{justify-self:start}
.form-note{margin-top:24px;padding:12px 16px;border:1px solid #d98a6a;border-radius:8px}
.form-note--ok{border-color:var(--gold)}

/* footer */
.site-foot{margin-top:64px;padding:40px 0 26px;border-top:1px solid #4a3715}
.site-foot__row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.site-foot__row p{margin:0;color:var(--muted)}
.site-foot__row .site-foot__name{color:var(--ivory);font:400 22px/1.3 var(--display)}
.socials{display:flex;gap:10px}
.socials a{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;color:var(--gold)}
.socials a:hover{background:var(--gold);color:#000}
.socials .icon{width:22px;height:22px}
.site-foot__small{display:flex;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;margin-top:24px;color:#ab9f8a;font-size:16px}
.site-foot__small p{margin:0}

@media (min-width:1241px){
	.latest{display:flex;flex-direction:column}
	.latest .cards{flex:1}
}

@media (max-width:860px){
	.book{grid-template-columns:minmax(0,1fr);gap:40px;padding-top:44px}
}

/* large tablets and small laptops */
@media (max-width:1240px){
	.home-grid{grid-template-columns:minmax(0,1fr)}
	.about-card{padding-bottom:26px;padding-right:220px;min-height:190px}
}
/* phones, tablets and small laptops: slide-down menu */
@media (max-width:1420px){
	.site-head{position:relative;top:auto}
	.admin-bar .site-head{top:auto}
	.site-head__row{min-height:80px;gap:12px}
	.brand__seal{width:56px;height:56px}
	.brand__seal .icon{width:22px;height:30px}
	.brand__tag{display:block;font-size:15px}
	.menu-toggle{display:block}
	.site-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;padding:6px 20px 16px;background:#000;border-bottom:1px solid var(--line);max-height:calc(100vh - 80px);overflow:auto}
	.site-head.is-open .site-nav{display:flex}
	.site-nav ul{display:block}
	.site-nav a{padding:13px 0;font-size:21px;border-bottom:1px solid #2e2310}
	.site-nav .current-menu-item>a{border-color:#2e2310}
	.search-toggle{width:100%;height:50px;display:flex;align-items:center;justify-content:flex-start;padding:12px 0}
	.search-toggle::after{content:"Search stories";margin-left:10px;color:var(--ivory);font-size:21px}
	.search-toggle .icon{width:24px;height:24px}
	.card__text{padding:12px 14px}
	.card__title,.cards--wide .card__title{font-size:20px}
}
@media (max-width:1040px){
	.collections{grid-template-columns:minmax(0,1fr)}
	.shorts--row{grid-template-columns:repeat(4,minmax(0,1fr))}
	.shorts--row .short:nth-child(n+5){display:none}
	.collection{padding:16px 22px}
	.collection .icon{width:58px;height:46px}
}
@media (max-width:640px){
	body{font-size:18px}
	.book{grid-template-columns:minmax(0,1fr);gap:34px;padding-top:36px}
	.book__cover{width:min(66%,240px)}
	.book__brand{font-size:21px}
	.book__face{gap:14px;padding:16px 12px}
	.book__face .icon{width:38px;height:50px}
	.response__head time{margin-left:0;width:100%}
	.wrap{padding-inline:16px}
	.brand{gap:11px}
	.brand__name{font-size:21px}
	.brand__tag{font-size:14px}
	.hero{padding:44px 0 38px;background-position:18% center}
	.hero__title{font-size:clamp(34px,11vw,48px);letter-spacing:.05em}
	.hero__rule{margin:6px auto 16px}
	.hero__rule .icon{width:28px;height:38px}
	.hero__line{font-size:13px;letter-spacing:.15em}
	.hero__line b{margin:0 .6em}
	.home-grid{padding-top:22px}
	.section-head{gap:16px;margin-bottom:16px}
	.section-head h2{white-space:normal}
	.cards,.cards--wide{grid-template-columns:minmax(0,1fr);gap:16px}
	.shorts,.shorts--row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
	.shorts--row .short:nth-child(n+5){display:none}
	.section-head{flex-wrap:wrap}
	.section-head span{min-width:40px}
	.section-link{font-size:18px}
	.card__text{padding:14px 16px}
	.card__title,.cards--wide .card__title{font-size:25px}
	.about-card{padding:22px;min-height:0;background-image:none}
	.collections{gap:12px;margin-top:22px}
	.follow h2{font-size:29px}
	.follow__links,.follow__links li{width:100%}
	.follow__links .btn{width:100%}
	.prose{font-size:20px}
	.player__btn{width:68px;height:68px}
	.player__btn .icon{width:44px;height:44px}
	.search-form .btn{padding-inline:16px}
}
@media (max-width:480px){
	.hero__line span{display:block}
	.hero__line b{display:none}
	.hero__line span+span{margin-top:6px}
}
@media (max-width:360px){
	.brand__tag{display:none}
}
@media (prefers-reduced-motion:reduce){
	html{scroll-behavior:auto}
	*,*::before,*::after{animation:none!important;transition:none!important}
}
