/*
Theme Name: Oh Curiosity Inspired
Theme URI: https://ohcuriosity.com/
Author: Custom WordPress Theme
Description: Editorial home, garden and seasonal inspiration theme recreated from the supplied Oh Curiosity reference screenshots. Classic WordPress theme with dynamic posts, categories, custom logo, menus and responsive layouts.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: oh-curiosity-inspired
*/

:root{
  --oc-black:#111111;
  --oc-red:#b00000;
  --oc-cream:#f2f0e8;
  --oc-gray:#777;
  --oc-border:#1a1a1a;
  --oc-width:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--oc-black);
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  font-size:12px;
  line-height:1.45;
}
img{max-width:100%;height:auto;display:block}
a{color:#111;text-decoration:none}
a:hover{color:var(--oc-red)}
.container{width:min(var(--oc-width),calc(100% - 28px));margin:0 auto}
.oc-topline{height:7px;background:var(--oc-red)}
.oc-promo{
  height:20px;background:#fff;border-bottom:1px solid #ddd;
  text-align:center;font-size:8px;line-height:20px;color:#777
}
.site-header{background:#fff}
.brand-row{
  min-height:78px;display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid #111;position:relative
}
.site-brand{display:flex;align-items:center;justify-content:center}
.site-brand img{max-height:60px;width:auto}
.site-title{
  font-family:Georgia,"Times New Roman",serif;font-weight:900;
  font-size:33px;letter-spacing:-2px;text-transform:lowercase;
  line-height:1;color:#111
}
.site-tagline{display:none}
.menu-toggle{
  display:none;position:absolute;left:0;top:50%;transform:translateY(-50%);
  border:0;background:none;font-size:16px
}
.header-search{
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  font-size:13px
}
.header-search input{display:none}
.primary-nav{
  min-height:31px;border-bottom:1px solid #111;
  display:flex;align-items:center;justify-content:center
}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:0}
.primary-nav li{margin:0}
.primary-nav a{
  display:block;padding:8px 12px;font-size:9px;text-transform:none;
  letter-spacing:.1px
}
.primary-nav a:hover{background:#f2f2f2;color:#111}

.oc-section{margin-top:25px}
.oc-section-title{
  font-family:Georgia,"Times New Roman",serif;
  font-size:10px;font-weight:400;margin:0 0 9px;
  padding-bottom:5px;border-bottom:1px solid #111
}
.oc-section-title:before{content:"";display:inline-block;width:3px;height:3px;background:#111;margin:0 4px 2px 0}

.hero{
  display:grid;grid-template-columns:1.45fr .55fr;
  min-height:330px;border:1px solid #111;background:#111;overflow:hidden
}
.hero-main{position:relative;min-height:330px}
.hero-main img{width:100%;height:100%;object-fit:cover}
.hero-main:after,.card-image:after{
  content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),transparent 55%)
}
.hero-copy{
  position:absolute;left:18px;bottom:20px;right:18px;color:#fff;z-index:2
}
.hero-copy h1{
  font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.03;
  margin:0 0 8px;color:#fff
}
.meta{font-size:8px;color:#888;text-transform:none}
.hero-copy .meta{color:#eee}
.meta span{margin-right:7px}
.hero-side{display:grid;grid-template-columns:1fr 1fr;background:#111}
.hero-side .mini{position:relative;min-height:165px;overflow:hidden;border-left:1px solid #fff;border-bottom:1px solid #fff}
.hero-side .mini:nth-child(3),.hero-side .mini:nth-child(4){border-bottom:0}
.mini img{width:100%;height:100%;object-fit:cover}
.mini-copy{position:absolute;left:8px;right:8px;bottom:8px;color:#fff;z-index:2}
.mini-copy h3{font-family:Georgia,serif;font-size:10px;line-height:1.05;margin:0 0 4px;color:#fff}
.badge{
  display:inline-block;background:#fff;color:#111;padding:2px 4px;
  font-size:7px;margin-top:2px
}

.post-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.card{border:1px solid #111;background:#fff;min-width:0}
.card-image{height:185px;position:relative;overflow:hidden;background:#ddd}
.card-image img{width:100%;height:100%;object-fit:cover}
.card-body{padding:8px}
.card h3{
  font-family:Georgia,"Times New Roman",serif;font-size:12px;
  line-height:1.12;margin:0 0 7px
}
.card .meta{font-size:7px}
.card-overlay{position:absolute;left:7px;bottom:7px;right:7px;z-index:2;color:#fff}
.card-overlay h3{color:#fff;margin-bottom:4px}
.card-overlay .meta{color:#eee}

.feature-row{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  border-bottom:1px solid #111;padding-bottom:15px
}
.feature-image{height:190px;overflow:hidden}
.feature-image img{width:100%;height:100%;object-fit:cover}
.feature-copy h2{
  font-family:Georgia,serif;font-size:21px;line-height:1.1;margin:0 0 7px
}
.feature-copy p{font-size:9px;color:#333;margin:0 0 10px}
.read-more{
  font-size:8px;text-transform:uppercase;border-bottom:1px solid #111;
  padding-bottom:2px
}

.most-grid{
  display:grid;grid-template-columns:1.45fr .8fr .8fr;gap:12px;
  border-bottom:1px solid #111;padding-bottom:18px
}
.most-main img{width:100%;height:260px;object-fit:cover}
.most-main h2{font-family:Georgia,serif;font-size:20px;line-height:1.1;margin:7px 0 4px}
.most-col{border-left:1px solid #111;padding-left:10px}
.most-item{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #111}
.most-item:last-child{border-bottom:0}
.most-item img{width:100%;height:110px;object-fit:cover}
.most-item h3{font-family:Georgia,serif;font-size:10px;line-height:1.1;margin:5px 0}

.two-col{
  display:grid;grid-template-columns:1.25fr .75fr;gap:14px
}
.small-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.small-post{display:grid;grid-template-columns:88px 1fr;gap:8px;border-bottom:1px solid #111;padding-bottom:8px}
.small-post img{width:88px;height:66px;object-fit:cover}
.small-post h3{font-family:Georgia,serif;font-size:10px;line-height:1.1;margin:0}
.small-post .meta{font-size:7px;margin-top:4px}
.trend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.trend-card{position:relative;height:220px;overflow:hidden;background:#ddd}
.trend-card img{width:100%;height:100%;object-fit:cover}
.trend-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent 60%)}
.trend-copy{position:absolute;z-index:2;left:8px;right:8px;bottom:8px;color:#fff}
.trend-copy h3{font-family:Georgia,serif;color:#fff;font-size:11px;line-height:1.1;margin:0 0 4px}

.latest-list{display:flex;flex-direction:column;gap:0}
.latest-item{
  display:grid;grid-template-columns:300px 1fr;gap:14px;
  padding:14px 0;border-bottom:1px solid #111
}
.latest-item img{width:300px;height:150px;object-fit:cover}
.latest-item h2{font-family:Georgia,serif;font-size:18px;line-height:1.1;margin:0 0 6px}
.latest-item p{font-size:9px;color:#444;margin:0 0 8px}
.pagination{display:flex;justify-content:center;gap:6px;margin:20px 0}
.pagination a,.pagination span{border:1px solid #111;padding:5px 8px;font-size:9px}

.site-footer{margin-top:45px;background:var(--oc-cream);border-top:1px solid #111}
.footer-main{
  display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;
  gap:25px;padding:30px 0
}
.footer-logo{
  font-family:Georgia,serif;font-weight:900;font-size:24px;
  text-transform:lowercase;letter-spacing:-1.5px
}
.footer-title{font-family:Georgia,serif;font-size:11px;margin:0 0 9px}
.footer-main p,.footer-main li{font-size:8px;color:#333}
.footer-main ul{list-style:none;margin:0;padding:0}
.footer-main li{margin:0 0 6px}
.subscribe input{height:28px;border:1px solid #111;padding:0 7px;font-size:9px;width:100%;margin-bottom:5px}
.subscribe button{height:28px;background:#111;color:#fff;border:0;padding:0 12px;font-size:8px}
.footer-bottom{border-top:1px solid #bbb;padding:8px 0;font-size:7px;color:#777;display:flex;justify-content:space-between}

.archive-head{
  padding:18px 0 10px;border-bottom:1px solid #111;margin-bottom:15px
}
.archive-head h1{font-family:Georgia,serif;font-size:24px;margin:0}
.content-area{min-height:300px}
.single-header{padding:22px 0 12px;border-bottom:1px solid #111}
.single-header h1{font-family:Georgia,serif;font-size:32px;line-height:1.08;margin:0 0 7px}
.single-feature{margin:18px 0}
.single-feature img{width:100%;max-height:620px;object-fit:cover}
.entry-content{
  max-width:820px;margin:0 auto;font-family:Georgia,"Times New Roman",serif;
  font-size:17px;line-height:1.75
}
.entry-content p{margin:0 0 1.2em}
.entry-content h2,.entry-content h3{line-height:1.2}
.entry-content img{margin:18px auto}
.entry-content a{color:var(--oc-red);text-decoration:underline}

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

@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-side{min-height:170px}
  .hero-side .mini{min-height:170px}
  .post-grid,.trend-grid{grid-template-columns:repeat(2,1fr)}
  .most-grid{grid-template-columns:1fr 1fr}
  .most-main{grid-column:1/-1}
  .footer-main{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  body{font-size:11px}
  .brand-row{min-height:65px}
  .site-title{font-size:25px}
  .menu-toggle{display:block}
  .primary-nav{display:none}
  .primary-nav.is-open{display:block}
  .primary-nav ul{flex-direction:column}
  .primary-nav a{padding:9px 0;border-bottom:1px solid #ddd;text-align:center}
  .header-search{right:0}
  .hero-main{min-height:260px}
  .hero-copy h1{font-size:22px}
  .hero-side{grid-template-columns:1fr 1fr}
  .post-grid,.trend-grid,.small-list,.two-col,.feature-row,.most-grid{grid-template-columns:1fr}
  .card-image{height:220px}
  .feature-image{height:220px}
  .most-col{border-left:0;border-top:1px solid #111;padding-left:0;padding-top:12px}
  .latest-item{grid-template-columns:1fr}
  .latest-item img{width:100%;height:210px}
  .footer-main{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:5px}
}


/* Categories Page */
.categories-intro{margin:5px 0 0;color:#777;font-size:9px}
.categories-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0 45px}
.category-box{position:relative;min-height:145px;border:1px solid #111;padding:13px 14px 16px;display:flex;flex-direction:column;justify-content:flex-end;background:#fff;transition:background .18s ease,color .18s ease}
.category-box:hover{background:#111;color:#fff}
.category-box-top{position:absolute;top:10px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center}
.category-number{font-family:Georgia,"Times New Roman",serif;font-size:9px;color:#777}
.category-arrow{font-size:15px;line-height:1}
.category-box h2{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.08;margin:0 0 7px}
.category-posts{font-size:8px;color:#777;text-transform:uppercase;letter-spacing:.3px}
.category-box:hover .category-number,.category-box:hover .category-posts{color:#ccc}
@media(max-width:900px){.categories-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.categories-grid{grid-template-columns:1fr}.category-box{min-height:125px}}


/* ===== Oh Curiosity styled Categories Page ===== */
.oc-categories-page{padding-bottom:20px}
.oc-cat-head{
    margin-top:28px;
    padding:15px 0 13px;
    border-top:1px solid #111;
}
.oc-cat-kicker{
    display:block;
    font-size:8px;
    text-transform:uppercase;
    letter-spacing:1.2px;
    color:#777;
    margin-bottom:4px;
}
.oc-cat-head h1{
    font-family:Georgia,"Times New Roman",serif;
    font-size:27px;
    font-weight:400;
    line-height:1;
    margin:0 0 7px;
}
.oc-cat-head p{
    margin:0;
    font-size:9px;
    color:#666;
    max-width:560px;
}
.oc-category-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:13px;
    margin:18px 0 40px;
}
.oc-category-card{
    border:1px solid #111;
    background:#fff;
    overflow:hidden;
}
.oc-category-image{
    position:relative;
    display:block;
    height:205px;
    overflow:hidden;
    background:#ddd;
}
.oc-category-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}
.oc-category-card:hover .oc-category-image img{
    transform:scale(1.035);
}
.oc-category-image:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.5),transparent 48%);
}
.oc-category-count{
    position:absolute;
    left:9px;
    bottom:9px;
    z-index:2;
    background:#fff;
    color:#111;
    padding:4px 6px;
    font-size:7px;
    letter-spacing:.45px;
}
.oc-category-content{
    position:relative;
    min-height:142px;
    padding:13px 13px 14px;
}
.oc-category-index{
    position:absolute;
    top:13px;
    right:13px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:9px;
    color:#999;
}
.oc-category-content h2{
    margin:0 35px 7px 0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    font-weight:400;
    line-height:1.08;
}
.oc-category-content h2 a{color:#111}
.oc-category-content p{
    margin:0 0 10px;
    font-size:8px;
    line-height:1.45;
    color:#666;
}
.oc-category-link{
    display:inline-block;
    font-size:7px;
    text-transform:uppercase;
    letter-spacing:.65px;
    border-bottom:1px solid #111;
    padding-bottom:2px;
}
.oc-category-link:hover{color:#b00000;border-color:#b00000}

@media(max-width:900px){
    .oc-category-list{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
    .oc-category-list{grid-template-columns:1fr;gap:11px}
    .oc-category-image{height:220px}
    .oc-cat-head h1{font-size:23px}
}


/* ===== Professional Category Archive ===== */
.oc-category-archive{padding-bottom:20px}
.oc-archive-header{
    margin-top:28px;
    padding:16px 0 14px;
    border-top:1px solid #111;
    border-bottom:1px solid #111;
}
.oc-archive-kicker{
    font-size:8px;
    color:#777;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:5px;
}
.oc-archive-header h1{
    font-family:Georgia,"Times New Roman",serif;
    font-size:29px;
    line-height:1.05;
    font-weight:400;
    margin:0 0 7px;
}
.oc-archive-header h1 span{font-style:italic}
.oc-archive-description{
    max-width:650px;
    margin:0;
    font-size:9px;
    line-height:1.5;
    color:#666;
}
.oc-category-posts{display:flex;flex-direction:column;margin-top:4px}
.oc-category-post{
    display:grid;
    grid-template-columns:330px 1fr;
    gap:18px;
    padding:17px 0;
    border-bottom:1px solid #111;
}
.oc-category-post-image{
    display:block;
    height:185px;
    overflow:hidden;
    background:#e5e3dc;
}
.oc-category-post-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}
.oc-category-post:hover .oc-category-post-image img{transform:scale(1.025)}
.oc-category-post-content{padding:2px 0}
.oc-category-post-content .meta{
    font-size:7px;
    color:#777;
    margin-bottom:8px;
    text-transform:uppercase;
    letter-spacing:.25px;
}
.oc-category-post-content .meta span{margin-right:9px}
.oc-category-post-content h2{
    font-family:Georgia,"Times New Roman",serif;
    font-size:22px;
    line-height:1.08;
    font-weight:400;
    margin:0 0 8px;
}
.oc-category-post-content h2 a{color:#111}
.oc-category-post-content h2 a:hover{color:#b00000}
.oc-category-post-content p{
    font-size:9px;
    line-height:1.55;
    color:#444;
    max-width:650px;
    margin:0 0 12px;
}
.oc-category-read{
    display:inline-block;
    border-bottom:1px solid #111;
    padding-bottom:3px;
    font-size:8px;
    text-transform:uppercase;
    letter-spacing:.45px;
}
.oc-category-read:hover{color:#b00000;border-color:#b00000}
.oc-category-archive .pagination{margin:22px 0 35px}
.oc-category-archive .pagination a,.oc-category-archive .pagination span{
    border:1px solid #111;
    padding:5px 8px;
    font-size:8px;
}
@media(max-width:700px){
    .oc-category-post{grid-template-columns:1fr;gap:11px}
    .oc-category-post-image{height:220px}
    .oc-category-post-content h2{font-size:19px}
}


/* =========================================================
   PROFESSIONAL CATEGORIES PAGE
   ========================================================= */
.oc-categories-wrap{
    padding-bottom:45px;
}
.oc-categories-heading{
    margin-top:28px;
    padding:13px 0 16px;
    border-top:1px solid #111;
    border-bottom:1px solid #111;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
}
.oc-overline{
    display:block;
    font-size:7px;
    letter-spacing:1.25px;
    color:#777;
    margin-bottom:5px;
}
.oc-categories-heading h1{
    font-family:Georgia,"Times New Roman",serif;
    font-size:30px;
    font-weight:400;
    line-height:1;
    margin:0;
}
.oc-categories-heading p{
    max-width:330px;
    margin:0;
    font-size:8px;
    line-height:1.55;
    color:#666;
    text-align:right;
}
.oc-categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:18px;
}
.oc-cat-card{
    min-width:0;
    border:1px solid #111;
    background:#fff;
}
.oc-cat-card-media{
    position:relative;
    display:block;
    height:205px;
    overflow:hidden;
    background:#e7e4dc;
}
.oc-cat-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}
.oc-cat-card:hover .oc-cat-card-media img{
    transform:scale(1.045);
}
.oc-cat-card-shade{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.65),rgba(0,0,0,0) 62%);
}
.oc-cat-card-count{
    position:absolute;
    left:8px;
    bottom:8px;
    background:#fff;
    color:#111;
    padding:4px 6px;
    font-size:6.5px;
    letter-spacing:.65px;
    z-index:2;
}
.oc-cat-card-arrow{
    position:absolute;
    right:9px;
    bottom:7px;
    color:#fff;
    font-size:18px;
    line-height:1;
    z-index:2;
}
.oc-cat-card-body{
    position:relative;
    min-height:142px;
    padding:12px 12px 13px;
}
.oc-cat-card-number{
    position:absolute;
    top:12px;
    right:12px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:8px;
    color:#999;
}
.oc-cat-card-body h2{
    margin:0 28px 7px 0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:16px;
    font-weight:400;
    line-height:1.08;
}
.oc-cat-card-body h2 a{
    color:#111;
}
.oc-cat-card-body p{
    margin:0 0 11px;
    min-height:27px;
    font-size:7.5px;
    line-height:1.45;
    color:#666;
}
.oc-cat-read{
    display:inline-block;
    padding-bottom:2px;
    border-bottom:1px solid #111;
    font-size:6.5px;
    letter-spacing:.7px;
    text-transform:uppercase;
}
.oc-cat-read:hover{
    color:#b00000;
    border-color:#b00000;
}

@media(max-width:1050px){
    .oc-categories-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:760px){
    .oc-categories-heading{
        display:block;
    }
    .oc-categories-heading p{
        max-width:none;
        margin-top:8px;
        text-align:left;
    }
    .oc-categories-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:520px){
    .oc-categories-grid{grid-template-columns:1fr;}
    .oc-cat-card-media{height:230px;}
}


/* =========================================================
   CATEGORIES — REFERENCE 4-CARD EDITORIAL STYLE
   Matches supplied Oh Curiosity card screenshot
   ========================================================= */

.oc-category-reference-page{
    padding-bottom:35px;
}

.oc-category-page-heading{
    margin:22px 0 10px;
    padding-bottom:6px;
    border-bottom:1px solid #111;
}

.oc-category-page-heading span{
    display:block;
    font-size:7px;
    color:#777;
    margin-bottom:2px;
}

.oc-category-page-heading h1{
    margin:0;
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px;
    font-weight:400;
    line-height:1;
}

/* Four equal cards like the supplied screenshot */
.oc-category-reference-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:9px;
    margin-top:12px;
}

.oc-reference-card{
    min-width:0;
    border:1px solid #111;
    background:#111;
}

.oc-reference-card-link{
    position:relative;
    display:block;
    height:245px;
    overflow:hidden;
    color:#fff;
}

.oc-reference-card-link img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}

.oc-reference-card:hover .oc-reference-card-link img{
    transform:scale(1.035);
}

.oc-reference-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.86) 0%,
            rgba(0,0,0,.55) 27%,
            rgba(0,0,0,.08) 65%,
            rgba(0,0,0,0) 100%
        );
}

.oc-reference-copy{
    position:absolute;
    left:8px;
    right:8px;
    bottom:8px;
    z-index:2;
}

.oc-reference-copy h2{
    margin:0 0 6px;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    line-height:1.08;
    font-weight:400;
    text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.oc-reference-meta{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    align-items:center;
}

.oc-reference-meta span{
    display:inline-block;
    background:#fff;
    color:#111;
    padding:2px 4px;
    font-size:6.5px;
    line-height:1.1;
    white-space:nowrap;
}

@media(max-width:900px){
    .oc-category-reference-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .oc-reference-card-link{
        height:260px;
    }
}

@media(max-width:600px){
    .oc-category-reference-grid{
        grid-template-columns:1fr 1fr;
        gap:6px;
    }

    .oc-reference-card-link{
        height:210px;
    }

    .oc-reference-copy h2{
        font-size:10px;
    }

    .oc-reference-meta span{
        font-size:5.5px;
    }
}
