/* Journal styles (index + single post). Enqueued only on journal views.
   The journal uses a slightly different palette to the homepage, scoped here. */
body.ktc-journal {
  --deep-forest: #2C4A3E;
  --warm-cream: #FAF7F2;
  --cotswold-stone: #D4C5A9;
  --aged-brass: #9A7B4F;
  --soft-charcoal: #4A4A48;
  --white: #FFFFFF;
}

/* skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2200; background: var(--deep-forest); color: var(--warm-cream); padding: 10px 16px; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }

/* breadcrumbs */
.breadcrumbs { background: var(--warm-cream); padding: 88px 0 0; }
.breadcrumbs .container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--aged-brass); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumbs a { color: var(--aged-brass); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--deep-forest); }

/* journal index */
.journal-hero { background: var(--warm-cream); padding: 32px clamp(20px, 5vw, 80px) 8px; text-align: center; }
.journal-hero__inner { max-width: 720px; margin: 0 auto; }
.journal-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--deep-forest); line-height: 1.15; }
.journal-hero p { font-size: 1.05rem; color: var(--soft-charcoal); margin-top: 16px; }
.journal-hero__line { width: 80px; height: 1px; background: var(--cotswold-stone); margin: 32px auto 0; }
.journal-wrap { max-width: 1180px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 80px) 96px; }
.journal-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }
.journal-card { display: flex; flex-direction: column; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44, 74, 62, 0.16); }
.journal-card__img { aspect-ratio: 3/2; overflow: hidden; background: rgba(0, 0, 0, 0.05); }
.journal-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.journal-card:hover .journal-card__img img { transform: scale(1.04); }
.journal-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.journal-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aged-brass); }
.journal-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(44, 74, 62, 0.08); color: var(--deep-forest); font-size: 0.68rem; letter-spacing: 0.08em; }
.journal-card__body h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.4rem; color: var(--deep-forest); line-height: 1.25; }
.journal-card__body p { font-size: 0.95rem; color: var(--soft-charcoal); }
.journal-card__link { margin-top: auto; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-forest); transition: color 0.2s ease; }
.journal-card__link:hover { color: var(--aged-brass); }
.journal-empty { grid-column: 1 / -1; text-align: center; color: var(--aged-brass); font-style: italic; padding: 40px 0; font-size: 1rem; }

/* single post */
.post-hero { width: 100%; max-height: 56vh; overflow: hidden; margin-top: 18px; }
.post-hero img { width: 100%; height: 56vh; object-fit: cover; object-position: center; }
.post { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 40px) 24px; }
.post__eyebrow { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aged-brass); }
.post h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); color: var(--deep-forest); line-height: 1.18; margin-top: 12px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; font-size: 0.82rem; color: var(--aged-brass); letter-spacing: 0.03em; }
.post__meta .journal-tag { text-transform: none; letter-spacing: 0.04em; }
.post__rule { width: 100%; height: 1px; background: var(--cotswold-stone); margin: 28px 0 8px; opacity: 0.7; }
.post__body { font-size: 1.06rem; line-height: 1.78; color: var(--soft-charcoal); }
.post__body p { margin: 1.1em 0; }
.post__body h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--deep-forest); margin: 1.4em 0 0.5em; line-height: 1.25; }
.post__body h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.3rem; color: var(--deep-forest); margin: 1.2em 0 0.4em; }
.post__body a { color: var(--deep-forest); text-decoration: underline; text-decoration-color: var(--cotswold-stone); }
.post__body a:hover { color: var(--aged-brass); }
.post__body ul, .post__body ol { margin: 1.1em 0 1.1em 1.4em; }
.post__body li { margin: 0.4em 0; }
.post__body img { border-radius: 4px; margin: 1.4em 0; }
.post__body blockquote { border-left: 3px solid var(--cotswold-stone); padding-left: 20px; margin: 1.4em 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--deep-forest); }

/* event cards (whats_on / things_to_do) */
.events { max-width: 760px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 40px) 24px; }
.events h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--deep-forest); margin-bottom: 24px; }
.event-card { background: var(--white); border-radius: 4px; padding: 24px 26px; margin-bottom: 18px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); border-left: 3px solid var(--cotswold-stone); }
.event-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.35rem; color: var(--deep-forest); }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 0.84rem; color: var(--aged-brass); letter-spacing: 0.02em; }
.event-card__meta strong { color: var(--deep-forest); font-weight: 500; }
.event-card p { font-size: 0.98rem; color: var(--soft-charcoal); margin-top: 12px; }
.event-card__link { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--deep-forest); transition: color 0.2s ease; }
.event-card__link:hover { color: var(--aged-brass); }

/* spotlight image grid + lightbox */
.photo-grid-section { padding: 8px clamp(20px, 5vw, 40px) 8px; }
.pg__inner { max-width: 1100px; margin: 0 auto; }
.pg__title { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--deep-forest); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 24px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pg__item { padding: 0; border: none; cursor: pointer; overflow: hidden; background: rgba(0, 0, 0, .05); aspect-ratio: 4/3; border-radius: 2px; display: block; }
.pg__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg__item:hover img { transform: scale(1.06); }
.pg__item:focus-visible { outline: 3px solid var(--aged-brass); outline-offset: 2px; }
.lightbox button:focus-visible { outline: 2px solid var(--warm-cream); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pg__item img { transition: none; } .pg__item:hover img { transform: none; } }
.lightbox { position: fixed; inset: 0; background: rgba(20, 28, 22, .93); display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: none; color: var(--warm-cream); cursor: pointer; font-family: 'Cormorant Garamond', serif; line-height: 1; }
.lightbox__close { top: 14px; right: 24px; font-size: 2.8rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 22px; }
.lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; } .lightbox__prev, .lightbox__next { font-size: 2.4rem; padding: 0 12px; } }

/* CTA */
.journal-cta { background: var(--deep-forest); padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 40px); margin-top: 40px; text-align: center; }
.journal-cta__inner { max-width: 640px; margin: 0 auto; }
.journal-cta h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--warm-cream); }
.journal-cta p { color: var(--cotswold-stone); margin-top: 12px; font-size: 1rem; }
.journal-cta__btn { display: inline-block; margin-top: 28px; background: var(--aged-brass); color: var(--warm-cream); font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0.06em; font-size: 0.85rem; text-transform: uppercase; padding: 14px 30px; border-radius: 3px; transition: background 0.25s ease; }
.journal-cta__btn:hover { background: var(--cotswold-stone); color: var(--deep-forest); }

/* ============================================================
   JOURNAL MAGAZINE INDEX (featured + grid + tabs + search + see-more)
   ============================================================ */
.mag { max-width: 1180px; margin: 0 auto; padding: 28px clamp(20px,5vw,80px) 96px; }

/* controls: filter tabs + search */
.mag__controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: clamp(28px,4vw,44px); border-bottom: 1px solid rgba(184,149,106,.28); }
.mag__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mag__tab { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--soft-charcoal); padding: 9px 16px; border-radius: 999px;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; min-height: 40px; display: inline-flex; align-items: center; }
.mag__tab:hover { color: var(--deep-forest); background: rgba(44,74,62,.06); }
.mag__tab.is-active { background: var(--deep-forest); color: var(--warm-cream); }
.mag__tab:focus-visible { outline: 2px solid var(--aged-brass); outline-offset: 2px; }
.mag__search { display: flex; align-items: center; gap: 0; background: var(--white); border: 1px solid rgba(184,149,106,.5);
  border-radius: 999px; padding: 2px 2px 2px 16px; min-width: 220px; flex: 0 1 320px; }
.mag__search input[type="search"] { border: none; background: none; outline: none; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; color: var(--soft-charcoal); padding: 9px 8px; flex: 1; min-width: 0; }
.mag__search input::placeholder { color: var(--cotswold-stone); }
.mag__search button { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--deep-forest); color: var(--warm-cream); display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.mag__search button:hover { background: var(--aged-brass); }
.mag__search:focus-within { border-color: var(--aged-brass); }
.mag__search button:focus-visible { outline: 2px solid var(--aged-brass); outline-offset: 2px; }

/* featured hero card (larger scale than the grid cards) */
.mag-feature { display: grid; grid-template-columns: 1fr; background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06); margin-bottom: clamp(28px,4vw,44px); transition: transform .4s ease, box-shadow .4s ease; }
.mag-feature:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(44,74,62,.18); }
.mag-feature:focus-visible { outline: 3px solid var(--aged-brass); outline-offset: 3px; }
.mag-feature__img { min-height: 260px; background-size: cover; background-position: center; }
.mag-feature__body { padding: clamp(28px,4vw,52px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.mag-feature__eyebrow { display: flex; align-items: center; gap: 12px; }
.mag-feature__flag { font-family: 'DM Sans', sans-serif; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aged-brass); }
.mag-feature__title { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--deep-forest);
  font-size: clamp(1.8rem,3.4vw,2.8rem); line-height: 1.12; }
.mag-feature__excerpt { font-size: 1.05rem; line-height: 1.7; color: var(--soft-charcoal); max-width: 60ch; }
.mag-feature__meta { font-family: 'DM Sans', sans-serif; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cotswold-stone); }
.mag-feature__cta { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: .85rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--aged-brass); margin-top: 4px; }
@media (min-width: 900px) {
  .mag-feature { grid-template-columns: 1.15fr 1fr; }
  .mag-feature__img { min-height: 440px; }
}

/* grid cards */
.mag-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px)  { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }
.mag-card { display: flex; flex-direction: column; background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: transform .4s ease, box-shadow .4s ease; }
.mag-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,74,62,.16); }
.mag-card:focus-visible { outline: 3px solid var(--aged-brass); outline-offset: 3px; }
.mag-card__img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.mag-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mag-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--aged-brass); }
.mag-card__title { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--deep-forest); font-size: 1.4rem; line-height: 1.22; }
.mag-card__excerpt { font-size: .95rem; line-height: 1.6; color: var(--soft-charcoal); flex: 1; }
.mag-card__readtime { font-family: 'DM Sans', sans-serif; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cotswold-stone); margin-top: auto; }

/* see more */
.mag__more { text-align: center; margin-top: clamp(36px,5vw,56px); }
.mag__more-btn { display: inline-block; background: var(--deep-forest); color: var(--warm-cream); font-family: 'DM Sans', sans-serif;
  font-weight: 500; letter-spacing: .06em; font-size: .85rem; text-transform: uppercase; padding: 15px 36px; border-radius: 3px;
  cursor: pointer; transition: background .25s ease; min-height: 44px; }
.mag__more-btn:hover { background: var(--aged-brass); }
.mag__more-btn:focus-visible { outline: 2px solid var(--aged-brass); outline-offset: 3px; }
.mag__more-btn.is-loading { opacity: .7; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .mag-feature, .mag-card { transition: none; }
  .mag-feature:hover, .mag-card:hover { transform: none; }
}
