/*
Theme Name: Readanta
Theme URI: https://example.com/
Author: Ehyperlink
Description: Readanta Quiet Folio — elegant minimal editorial magazine with built-in contextual internal links and related posts.
Version: 1.0.1
Text Domain: readanta
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{
 --ra-bg:#f4f0e7;
 --ra-paper:#fbf9f2;
 --ra-ink:#17342f;
 --ra-text:#202420;
 --ra-muted:#70756d;
 --ra-line:#cfc8b9;
 --ra-green:#174f45;
 --ra-mint:#74a896;
 --ra-rust:#b4563e;
 --ra-cream:#eee7da;
 --ra-ext:#7d4ac7;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ra-bg);color:var(--ra-text);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
.ra-wrap{width:min(1500px,calc(100% - 40px));margin:auto}

/* Header */
.ra-header{position:sticky;top:0;z-index:50;background:rgba(244,240,231,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--ra-line)}
.admin-bar .ra-header{top:32px}
.ra-head{min-height:82px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px}
.ra-logo{display:flex;align-items:center;gap:12px}
.ra-mark{width:44px;height:44px;border:1px solid var(--ra-green);display:grid;place-items:center;font:700 22px Georgia,serif;color:var(--ra-green)}
.ra-brand strong{display:block;font:700 29px/1 Georgia,serif}
.ra-brand small{display:block;font-size:9px;letter-spacing:.08em;margin-top:4px;color:#5c665f}
.ra-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:30px;flex-wrap:wrap}
.ra-nav a{font:700 13px Georgia,serif}
.ra-nav a:hover{color:var(--ra-green)}
.ra-tools{display:flex;align-items:center;gap:12px}
.ra-search{border:1px solid var(--ra-line);padding:11px 15px;background:transparent;font-size:12px}

/* Hero */
.ra-hero{padding:32px 0 24px}
.ra-hero-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:28px;align-items:stretch}
.ra-intro{padding:40px 24px 30px 0}
.ra-eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:var(--ra-green);font-weight:900}
.ra-intro h1{font:700 clamp(4.4rem,7.2vw,7.7rem)/.88 Georgia,serif;margin:14px 0 18px;letter-spacing:-.045em}
.ra-intro p{font:17px/1.55 Georgia,serif;color:#5a605b;max-width:560px}
.ra-circle{width:46px;height:46px;border-radius:50%;border:1px solid var(--ra-green);display:grid;place-items:center;margin-top:24px;color:var(--ra-green)}
.ra-hero-card{position:relative;overflow:hidden;min-height:590px;border:1px solid var(--ra-line);background:#ddd}
.ra-hero-card img{width:100%;height:100%;object-fit:cover}
.ra-hero-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(7,24,20,.78))}
.ra-hero-copy{position:absolute;left:28px;right:28px;bottom:24px;color:#fff;z-index:2}
.ra-hero-copy small{font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.ra-hero-copy h2{font:700 41px/.98 Georgia,serif;margin:9px 0 7px}
.ra-hero-copy p{margin:0;font-size:12px;max-width:560px}

/* category icons */
.ra-cats{display:grid;grid-template-columns:repeat(6,1fr);gap:0;border-top:1px solid var(--ra-line);border-bottom:1px solid var(--ra-line);margin:10px 0 28px}
.ra-cat{padding:18px 14px;text-align:center;border-right:1px solid var(--ra-line)}
.ra-cat:last-child{border-right:0}
.ra-icon{width:44px;height:44px;border:1px solid var(--ra-green);border-radius:50%;margin:0 auto 9px;display:grid;place-items:center;color:var(--ra-green);font-weight:900}
.ra-cat strong{font:700 13px Georgia,serif}

/* story sections */
.ra-section{padding:18px 0}
.ra-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px;border-left:4px solid var(--ra-green);padding-left:14px}
.ra-section-head h2{margin:0;font:700 27px Georgia,serif}
.ra-section-head span{font-size:10px;color:var(--ra-rust);font-weight:900;text-transform:uppercase}
.ra-latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ra-card{background:var(--ra-paper);border:1px solid var(--ra-line)}
.ra-card img{width:100%;height:240px;object-fit:cover}
.ra-card div{padding:14px}
.ra-card small{font-size:9px;color:var(--ra-green);text-transform:uppercase;font-weight:900}
.ra-card h3{font:700 24px/1.05 Georgia,serif;margin:7px 0}
.ra-card p{font-size:12px;color:#656b65;line-height:1.45;margin:0}

/* large big picture */
.ra-big{position:relative;min-height:430px;overflow:hidden;margin:26px 0}
.ra-big img{width:100%;height:100%;object-fit:cover}
.ra-big:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(7,23,19,.9))}
.ra-big-copy{position:absolute;left:28px;right:28px;bottom:26px;color:#fff;z-index:2}
.ra-big-copy small{font-size:9px;text-transform:uppercase;letter-spacing:.1em}
.ra-big-copy h2{font:700 48px/.95 Georgia,serif;margin:8px 0}
.ra-big-copy p{max-width:680px;font-size:13px;line-height:1.45}

/* split editor/newsletter */
.ra-split{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin:24px 0 32px}
.ra-editor{display:grid;grid-template-columns:1.1fr .9fr;border:1px solid var(--ra-line);background:var(--ra-paper)}
.ra-editor img{width:100%;height:100%;object-fit:cover;min-height:330px}
.ra-editor-copy{padding:24px}
.ra-editor-copy h3{font:700 32px/.98 Georgia,serif;margin:10px 0}
.ra-editor-copy p{font-size:13px;color:#666d67;line-height:1.5}
.ra-newsletter{background:var(--ra-green);color:#fff;padding:32px}
.ra-newsletter h3{font:700 34px/.98 Georgia,serif;margin:0 0 10px}
.ra-newsletter p{color:#dbe7e2;font-size:13px;line-height:1.5}
.ra-newsletter input{width:100%;padding:13px;border:0;margin:10px 0;background:#fff}
.ra-newsletter a{display:inline-block;background:#fff;color:var(--ra-green);padding:11px 14px;font-weight:900;font-size:11px}

/* Larger unique homepage additions */
.home .ra-wrap{width:min(1580px,calc(100% - 28px))}
.ra-feature-band{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin:26px 0}
.ra-feature-item{position:relative;min-height:390px;overflow:hidden;border:1px solid var(--ra-line)}
.ra-feature-item img{width:100%;height:100%;object-fit:cover}
.ra-feature-item:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(5,20,17,.88))}
.ra-feature-copy{position:absolute;left:22px;right:22px;bottom:20px;color:#fff;z-index:2}
.ra-feature-copy small{font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.ra-feature-copy h3{font:700 34px/.96 Georgia,serif;margin:7px 0 0}
.ra-deep{margin:26px 0 40px}
.ra-deep-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px}
.ra-deep-head h2{font:700 38px/1 Georgia,serif;margin:0}
.ra-deep-head p{max-width:520px;margin:0;color:#686f69;font-size:13px}
.ra-deep-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ra-deep-card{background:var(--ra-paper);border:1px solid var(--ra-line);overflow:hidden}
.ra-deep-card img{width:100%;height:250px;object-fit:cover}
.ra-deep-card div{padding:14px}
.ra-deep-card small{font-size:9px;text-transform:uppercase;color:var(--ra-rust);font-weight:900}
.ra-deep-card h3{font:700 21px/1.05 Georgia,serif;margin:7px 0}
.ra-deep-card p{font-size:12px;color:#666d67;line-height:1.4;margin:0}

/* Single post */
.ra-post-head{padding:48px 0 26px}
.ra-post-head h1{font:700 clamp(3rem,5.5vw,5.8rem)/.92 Georgia,serif;margin:8px 0}
.ra-meta{font-size:12px;color:#756f66}
.ra-post-shell{width:min(1040px,calc(100% - 34px));margin:auto;padding-bottom:60px}
.ra-article{background:var(--ra-paper);border:1px solid var(--ra-line);padding:34px}
.ra-article .featured img{width:100%;max-height:620px;object-fit:cover;margin-bottom:25px}
.ra-entry{font:17px/1.82 Georgia,serif;overflow-wrap:anywhere}
.ra-entry h2,.ra-entry h3{font-family:Georgia,serif}
.ra-entry img{margin:24px auto}
.ra-entry a{color:#256b5e;text-decoration:underline;text-underline-offset:3px}
.ra-entry a.ra-external{color:var(--ra-ext)!important}
.ra-context{margin:28px 0;padding:16px 18px;background:#edf3ec;border-left:4px solid var(--ra-green)}
.ra-context small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;margin-bottom:6px}
.ra-context a{display:flex;justify-content:space-between;gap:12px;color:#17342f!important;text-decoration:none!important;font-weight:700}
.ra-related{margin-top:34px}
.ra-related h2{font:700 31px Georgia,serif}
.ra-related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ra-related-card{background:var(--ra-paper);border:1px solid var(--ra-line)}
.ra-related-card img{width:100%;height:150px;object-fit:cover}
.ra-related-card div{padding:12px}
.ra-related-card h3{font:700 16px/1.1 Georgia,serif;margin:0}

/* archive */
.ra-archive-head{padding:48px 0 22px}
.ra-archive-head h1{font:700 56px/.95 Georgia,serif;margin:0}
.ra-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding-bottom:48px}
.ra-post-card{background:var(--ra-paper);border:1px solid var(--ra-line)}
.ra-post-card img{width:100%;height:230px;object-fit:cover}
.ra-post-card div{padding:16px}
.ra-post-card h3{font:700 22px/1.05 Georgia,serif;margin:6px 0}
.ra-post-card p{font-size:13px;color:#666;line-height:1.45}

/* footer */
.ra-footer{background:#eee9df;border-top:1px solid var(--ra-line);padding:38px 0 18px}
.ra-footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px}
.ra-footer a{display:block;font-size:12px;color:#59645e;margin:7px 0}
.ra-footer-bottom{border-top:1px solid var(--ra-line);margin-top:24px;padding-top:14px;font-size:10px;color:#7b817d}

@media(max-width:1150px){
 .ra-hero-grid,.ra-split,.ra-feature-band{grid-template-columns:1fr}
 .ra-cats{grid-template-columns:repeat(3,1fr)}
 .ra-latest-grid,.ra-deep-grid{grid-template-columns:repeat(2,1fr)}
 .ra-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
 .admin-bar .ra-header{top:46px}
 .ra-head{grid-template-columns:1fr;gap:12px;padding:14px 0}
 .ra-nav ul{justify-content:flex-start;gap:16px}
 .ra-cats,.ra-latest-grid,.ra-deep-grid,.ra-grid,.ra-related-grid,.ra-footer-grid{grid-template-columns:1fr}
 .ra-intro h1{font-size:4rem}
 .ra-hero-card{min-height:420px}
 .ra-editor{grid-template-columns:1fr}
 .ra-article{padding:20px 16px}
}
