/* ============================================================
   ONE FYFE — Custom CSS (consolidated for ONE-98, updated 2026-06-29)
   ONE-99: blog images/cards squared (border-radius 0) to match
   the rest of the site. Buttons + form fields keep their 2px.
   Webfonts: @import rules MUST stay at the very top or the
   browser ignores them (this is why the signature font was
   previously not loading).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

:root{
  --of-charcoal:#3D444C;
  --of-slate:#65717F;
  --of-stone:#8B9EA8;
  --of-white:#FFFFFF;
  --of-offwhite:#F8F7F5;
  --of-linen:#E2DFDB;
  --of-body:#2A2A2A;
}

body{
  font-family:"Lato",sans-serif;
  font-size:18px;
  line-height:1.8;
  color:var(--of-body);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5,h6{
  font-family:"Cormorant Garamond",serif;
  color:var(--of-charcoal);
  line-height:1.15;
  font-weight:600;
  text-align:center;
}

h1{font-size:3.2rem;}
h2{font-size:2.4rem;}
h3{font-size:1.6rem;}

a{color:var(--of-charcoal);}
a:hover{color:var(--of-slate);}

/* === BUTTONS - all variants including plugin forms === */
.ast-button,
.wp-block-button__link,
.wp-element-button,
button[type="submit"],
input[type="submit"],
.wpforms-submit,
.mc4wp-form__submit,
.wp-block-mailchimp button,
.wp-block-mailchimp input[type="submit"] {
  background-color:var(--of-charcoal)!important;
  color:var(--of-white)!important;
  font-family:"Lato",sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
  border:none!important;
  border-radius:2px!important;
  padding:14px 32px!important;
  transition:background .2s ease!important;
  cursor:pointer!important;
}

.ast-button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wpforms-submit:hover {
  background-color:var(--of-slate)!important;
  color:var(--of-white)!important;
}

/* === COVER / HERO === */
.wp-block-cover{
  min-height:90vh!important;
}

.wp-block-cover__background.has-background-dim{
  opacity:0.22!important;
}

.wp-block-cover__inner-container{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  padding-bottom:80px!important;
  min-height:90vh!important;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover .wp-block-heading{
  color:var(--of-white)!important;
  text-align:center!important;
  text-shadow:0 2px 12px rgba(0,0,0,0.5)!important;
  margin-bottom:12px!important;
}

.wp-block-cover h1{
  font-weight:300!important;
}

.wp-block-cover p{
  color:rgba(255,255,255,0.95)!important;
  font-family:"Cormorant Garamond",serif!important;
  font-style:italic!important;
  font-size:1.4rem!important;
  text-align:center!important;
  margin-bottom:32px!important;
  text-shadow:0 1px 6px rgba(0,0,0,0.4)!important;
}

.wp-block-cover .wp-block-button__link{
  background-color:var(--of-white)!important;
  color:var(--of-charcoal)!important;
  border:2px solid var(--of-white)!important;
}

.wp-block-cover .wp-block-button__link:hover{
  background-color:transparent!important;
  color:var(--of-white)!important;
}

/* === NAVIGATION === */

/* Home page: transparent header overlays hero cover */
.home #masthead,
.home .site-header,
.home .main-header-bar,
.home .ast-primary-header-bar{
  background:transparent!important;
  box-shadow:none!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:100!important;
}

.home .main-header-menu .menu-item a,
.home .main-navigation .menu-item a,
.home #site-navigation a{
  font-family:"Lato",sans-serif!important;
  font-size:13px!important;
  font-weight:400!important;
  color:var(--of-white)!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

.home .main-header-menu .menu-item a:hover,
.home .main-navigation .menu-item a:hover{
  color:rgba(255,255,255,0.75)!important;
  text-decoration:none!important;
}

/* Inner pages: solid white nav */
body:not(.home) #masthead,
body:not(.home) .site-header,
body:not(.home) .main-header-bar,
body:not(.home) .ast-primary-header-bar{
  background:var(--of-white)!important;
  box-shadow:0 1px 4px rgba(0,0,0,0.07)!important;
}

body:not(.home) .main-header-menu .menu-item a,
body:not(.home) .main-navigation .menu-item a,
body:not(.home) #site-navigation a{
  font-family:"Lato",sans-serif!important;
  font-size:13px!important;
  font-weight:400!important;
  color:var(--of-charcoal)!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

body:not(.home) .main-header-menu .menu-item a:hover,
body:not(.home) .main-navigation .menu-item a:hover{
  color:var(--of-slate)!important;
  text-decoration:none!important;
}

/* Logo: white over hero on home, dark on inner pages */
body:not(.home) .custom-logo{
  filter:brightness(0)!important;
}

.site-title,
.ast-site-identity .site-title{
  display:none!important;
}

.site-logo img,
.ast-site-identity img,
.custom-logo{
  max-height:48px!important;
  width:auto!important;
}

/* === SEPARATORS === */
.wp-block-separator{
  border-color:var(--of-linen)!important;
  border-width:1px!important;
  opacity:.6!important;
  margin:48px auto!important;
  max-width:80px!important;
}

/* === AT A GLANCE COLUMNS === */
.wp-block-columns{
  padding:56px 40px!important;
  background:var(--of-offwhite)!important;
}

.wp-block-columns .wp-block-column h3,
.wp-block-media-text h3{
  font-size:1.5rem!important;
  font-family:"Cormorant Garamond",serif!important;
  font-weight:600!important;
  letter-spacing:.03em!important;
}

/* === MEDIA TEXT (The Bach section) === */
.wp-block-media-text{
  padding:72px 40px!important;
  gap:56px!important;
}

/* === BLOCKQUOTES - Guest Reviews === */
.wp-block-quote{
  font-family:"Cormorant Garamond",serif!important;
  font-style:italic!important;
  font-size:1.35rem!important;
  line-height:1.6!important;
  color:var(--of-charcoal)!important;
  border-left:2px solid var(--of-linen)!important;
  border-right:none!important;
  padding:8px 0 8px 28px!important;
  margin:28px auto!important;
  max-width:680px!important;
  background:none!important;
}

.wp-block-quote p,
.wp-block-quote cite{
  font-family:"Cormorant Garamond",serif!important;
  font-style:italic!important;
  color:var(--of-charcoal)!important;
}

.wp-block-quote cite{
  font-size:0.9rem!important;
  color:var(--of-stone)!important;
  font-style:normal!important;
  letter-spacing:.05em!important;
}

/* === MAILCHIMP FORM === */
.wp-block-group:has(.wp-block-mailchimp){
  max-width:100%;
  padding:64px 20px!important;
}

.wp-block-mailchimp{
  max-width:480px!important;
  margin:0 auto!important;
}

.wp-block-mailchimp input[type="text"],
.wp-block-mailchimp input[type="email"],
.wp-block-mailchimp input[type="tel"]{
  font-size:15px!important;
  padding:10px 14px!important;
  border:1px solid var(--of-linen)!important;
  border-radius:2px!important;
  background:var(--of-white)!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* === WPFORMS === */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea{
  font-size:16px!important;
  border:1px solid var(--of-linen)!important;
  border-radius:2px!important;
  padding:10px 14px!important;
}

/* === FOOTER === */
.site-footer,
#colophon,
.ast-small-footer,
.footer-widget-area{
  background-color:var(--of-charcoal)!important;
  color:rgba(255,255,255,0.75)!important;
}

.site-footer a,
.ast-small-footer a,
.ast-footer-widget a{
  color:var(--of-stone)!important;
}

.site-footer a:hover,
.ast-small-footer a:hover{
  color:var(--of-white)!important;
}

/* === GROUPS === */
.wp-block-group h1,
.wp-block-group h2{
  font-size:2.4rem!important;
  margin-bottom:16px!important;
}

/* === MOBILE === */
@media(max-width:768px){
  h1{font-size:2.4rem!important;}
  h2{font-size:1.9rem!important;}
  .wp-block-group h2{font-size:1.9rem!important;}
  h3{font-size:1.3rem!important;}
  .wp-block-columns{padding:36px 20px!important;}
  .wp-block-media-text{padding:40px 20px!important;}
  .wp-block-cover__inner-container{padding-bottom:48px!important;}
  .wp-block-mailchimp{max-width:100%!important;}
  .wp-block-buttons{justify-content:center!important;}
  .wpforms-field-submit{display:flex!important;justify-content:center!important;}
}

/* === FOOTER CREDIT === */
.ast-footer-copyright,
.ast-small-footer-section-2{
  display:none!important;
}

/* === PLAIN LIST COLUMNS (no section background) === */
.of-list-cols{
  background:none!important;
  padding:0!important;
}

/* === BLOG: Fix navigation stacking =================================
   Astra's ast-separate-container sets body bg to grey (#f5f5f5),
   making the white nav appear as a separate floating box. Override
   to white so nav blends seamlessly with the page on blog pages.
================================================================== */
body.blog,
body.single-post,
body.single{
  background-color:var(--of-white)!important;
}

/* Remove Astra's heavy card styling on blog post items */
body.blog .ast-article-post,
body.blog .ast-article-single:not(.ast-related-post){
  background-color:transparent!important;
  border-bottom:1px solid var(--of-linen)!important;
  padding:3em 0!important;
  margin:0!important;
}

body.blog .ast-article-post:last-child{
  border-bottom:none!important;
}

body.single-post .ast-article-single,
body.single .ast-article-single{
  background-color:transparent!important;
  border-bottom:none!important;
  padding:2em 0!important;
}
/* ===== ONE-91 Blog redesign ===== */
/* (Signature webfont @import moved to the top of the file.) */

/* 1. Index card grid: real gutters so tiles stop touching */
.ast-blog-layout-4-grid .ast-row,
.blog .site-main .ast-row { margin-left: -16px; margin-right: -16px; }
.ast-blog-layout-4-grid .ast-article-post { padding: 16px; }
.ast-blog-layout-4-grid .ast-article-post .ast-article-inner {
  background: #fff; border-radius: 0; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); height: 100%;
}

/* 1b. One image ratio, cropped not stretched (kills distortion) */
.ast-article-post .post-thumb,
.ast-article-post .ast-blog-featured-section { margin: 0; }
.ast-article-post .post-thumb img,
.ast-article-post .ast-blog-featured-section img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  object-position: center; display: block;
}
.ast-article-post .ast-blog-single-element.ast-blog-meta-container,
.ast-article-post .entry-content,
.ast-article-post .entry-title { padding-left: 20px; padding-right: 20px; }
.ast-article-post .entry-title { margin-top: 16px; }
.ast-article-post .entry-content { padding-bottom: 20px; }

/* 2. Single post: comfortable measure + on-brand type */
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol,
.single-post .entry-content > h2,
.single-post .entry-content > h3,
.single-post .entry-content > blockquote {
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.single-post .entry-content { font-size: 1.125rem; line-height: 1.7; color: #2A2A2A; }
.single-post .entry-content h2 { margin-top: 2.2em; margin-bottom: .5em; }
.single-post .entry-content h3 { margin-top: 1.8em; }
.single-post .entry-content p { margin-bottom: 1.25em; }
.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 0; }
.single-post .wp-block-image figcaption { font-size: .9rem; color: #65717F; text-align: center; }

/* 3. Hide the blue author + date meta, incl. leftover "By /" on single
      posts (schema/datePublished stays intact) */
.ast-article-post .entry-meta,
.ast-article-post .posted-by,
.ast-article-post .posted-on,
.single-post .entry-meta { display: none !important; }

/* 4. Letter sign-off — belt-and-braces for the signature styling */
.of-signoff {
  max-width: 680px; margin: 3rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(61,68,76,.25); color: #2A2A2A;
}
.of-signoff__close { font-size: 1.125rem; line-height: 1.7; margin: 0 0 1rem; }
.of-signoff__sign { margin: 0; font-size: 1.05rem; }
.of-signoff__name {
  margin: .1rem 0 0; font-size: 2.2rem; line-height: 1.1;
  font-family: "Caveat",cursive; font-weight: 600; color: #3D444C;
}
.of-signoff__role { margin: .4rem 0 0; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: #65717F; }

/* Responsive gutters */
@media (max-width: 920px) {
  .ast-blog-layout-4-grid .ast-row,
  .blog .site-main .ast-row { margin-left: -12px; margin-right: -12px; }
  .ast-blog-layout-4-grid .ast-article-post { padding: 12px; }
}
/* ===== ONE-91 archive finish: remove stray card borders =====
   (The earlier left-align rules here were always overridden by the
   final "centred alignment" block below, so they have been removed.) */
.ast-blog-layout-4-grid .ast-article-post,
.ast-blog-layout-4-grid .ast-article-post .ast-article-inner,
.ast-article-post .ast-blog-single-element,
.ast-article-post .entry-header,
.ast-article-post .ast-blog-meta-container {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
/* (A) /blog cards + gutters restored (was stripped on body.blog only) */
body.blog .ast-blog-layout-4-grid .ast-row{
  margin-left:-16px !important; margin-right:-16px !important;
}
body.blog .ast-blog-layout-4-grid .ast-article-post{
  background:transparent !important; padding:16px !important;
  margin:0 !important; border:0 !important;
}
body.blog .ast-blog-layout-4-grid .ast-article-post .ast-article-inner{
  background:#fff !important; border-radius:0 !important;
  box-shadow:0 1px 3px rgba(0,0,0,.06) !important;
  overflow:hidden !important; height:100% !important;
}

/* (B) One calm type system per card: uppercase cat / serif title / sans excerpt.
   (Alignment is set once, centred, in the block below — not here.) */
.ast-article-post .ast-taxonomy-container,
.ast-article-post .ast-taxonomy-container a{
  font-family:"Lato",sans-serif !important; font-size:.72rem !important;
  font-weight:700 !important; letter-spacing:.12em !important;
  text-transform:uppercase !important; color:#8B9EA8 !important;
}
.ast-article-post .entry-title,
.ast-article-post .entry-title a{
  font-family:"Cormorant Garamond",serif !important; font-weight:600 !important;
  font-size:1.5rem !important; line-height:1.2 !important; color:#3D444C !important;
}
.ast-article-post .ast-excerpt-container,
.ast-article-post .ast-excerpt-container p{
  font-family:"Lato",sans-serif !important; font-size:.95rem !important;
  line-height:1.7 !important; color:#2A2A2A !important;
}

/* (C) /blog heading */
body.blog .ast-blog-layout-4-grid::before{
  content:"One Fyfe Journal"; display:block;
  font-family:"Cormorant Garamond",serif; font-size:2.6rem; font-weight:600;
  color:#3D444C; text-align:center; margin:0 0 1.4rem;
}

/* ===== ONE-91 — consistent CENTRED alignment (cards + archive banner) ===== */

/* Post cards: category label, title and excerpt all centred together */
.ast-blog-layout-4-grid .ast-article-post .ast-taxonomy-container,
.ast-blog-layout-4-grid .ast-article-post .ast-taxonomy-container a,
.ast-blog-layout-4-grid .ast-article-post .entry-title,
.ast-blog-layout-4-grid .ast-article-post .entry-title a,
.ast-blog-layout-4-grid .ast-article-post .ast-excerpt-container,
.ast-blog-layout-4-grid .ast-article-post .ast-excerpt-container p,
.ast-blog-layout-4-grid .ast-article-post .entry-content{
  text-align:center !important;
}

/* Category/tag archive banner: centre the intro line to match the title */
.ast-archive-description,
.ast-archive-description .ast-archive-title,
.ast-archive-description p{
  text-align:center !important;
}
/* ===== ONE-101: robust, responsive blog grid (3 / 2 / 1) =====
   Replaces Astra's flex-wrap grid with an explicit CSS Grid so the
   columns can't collapse, adds a proper 2-up tablet tier (Astra jumped
   straight 3->1 at 921px), and centres a lone trailing card so it never
   hangs alone after a full row. Scoped to the shared grid container so
   /blog AND category/tag archives stay identical. */
.ast-blog-layout-4-grid .ast-row{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:32px !important;
  margin-left:0 !important;
  margin-right:0 !important;
  align-items:stretch !important;
}
.ast-blog-layout-4-grid .ast-article-post{
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}
/* Lone trailing card -> centre it (matches the site's centred house style) */
.ast-blog-layout-4-grid .ast-article-post:last-child:nth-child(3n+1){
  grid-column:2 / 3 !important;
}

@media (max-width:921px){
  .ast-blog-layout-4-grid .ast-row{
    grid-template-columns:repeat(2,1fr) !important;
    gap:24px !important;
    margin-left:0 !important; margin-right:0 !important;
  }
  .ast-blog-layout-4-grid .ast-article-post{ padding:0 !important; }
  .ast-blog-layout-4-grid .ast-article-post:last-child:nth-child(3n+1){
    grid-column:auto !important;
  }
  .ast-blog-layout-4-grid .ast-article-post:last-child:nth-child(2n+1){
    grid-column:1 / -1 !important;
    justify-self:center !important;
    width:calc(50% - 12px) !important;
  }
}

@media (max-width:600px){
  .ast-blog-layout-4-grid .ast-row{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .ast-blog-layout-4-grid .ast-article-post:last-child{
    grid-column:auto !important;
    width:auto !important;
    justify-self:stretch !important;
  }
}
/* ===== ONE-101 follow-up: grid the infinite-scroll batches =====
   Jetpack Infinite Scroll loads page 2+ as you scroll and appends those
   posts into .infinite-wrap, which sits OUTSIDE the grid the block above
   fixes -- so they collapse to full width. This grids those batches too,
   matching the same 3 / 2 / 1 layout. Append AFTER the ONE-101 block. */
.ast-blog-layout-4-grid .infinite-wrap,
.site-main .infinite-wrap{
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:32px !important;
  margin:0 !important;
  padding:0 !important;
  align-items:stretch !important;
}
/* ============================================================
   ONE-104  "From the Journal" teaser
   Board-ready Customizer CSS (Appearance > Customize > Additional CSS)
   Palette: slate-charcoal #3D444C titles, grey-blue #65717F meta, white bg
   ============================================================ */

.otj{background:#ffffff;padding:72px 24px}
.otj--slim{padding:48px 24px}
.otj > *{max-width:1080px;margin-left:auto;margin-right:auto}

.otj__title{font-family:"Cormorant Garamond",Georgia,serif;font-weight:300;color:#3D444C;font-size:2.2rem;line-height:1.15;margin:0 0 12px;text-align:center}
.otj__intro{color:#65717F;font-size:1.05rem;line-height:1.7;max-width:48ch;margin:0 auto 44px;text-align:center}
.otj--slim .otj__title{margin-bottom:32px}

.otj__grid .wp-block-post-template{gap:40px}
.otj__grid.wp-block-query li{margin:0}

.otj__grid .wp-block-post-featured-image{margin:0 0 18px;border-radius:2px;overflow:hidden}
.otj__grid .wp-block-post-featured-image a,
.otj__grid .wp-block-post-featured-image img{display:block;width:100%}
.otj__grid .wp-block-post-featured-image img{aspect-ratio:3/2;height:auto;object-fit:cover}

.otj__grid .wp-block-post-title{font-family:"Cormorant Garamond",Georgia,serif;font-weight:400;font-size:1.35rem;line-height:1.28;margin:0 0 8px}
.otj__grid .wp-block-post-title a{color:#3D444C;text-decoration:none}
.otj__grid .wp-block-post-title a:hover{text-decoration:underline}

.otj__grid .wp-block-post-excerpt{color:#2A2A2A;font-size:.98rem;line-height:1.6;margin:0 0 12px}
.otj__grid .wp-block-post-excerpt p{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.otj__grid .wp-block-post-excerpt__more-text{display:none}

.otj__grid .wp-block-post-date{color:#65717F;font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;margin:0}

.otj__more{margin:44px 0 0;text-align:center}
.otj__more a{color:#65717F;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;border-bottom:1px solid rgba(101,113,127,.4);padding-bottom:2px;transition:color .15s,border-color .15s}
.otj__more a:hover{color:#3D444C;border-color:#3D444C}

@media (max-width:781px){
  .otj{padding:52px 20px}
  .otj--slim{padding:36px 20px}
  .otj__grid .wp-block-post-template{grid-template-columns:1fr !important;gap:34px}
}