/* ==========================================================================
   THE FINE DINING JOURNAL
   Georgia serif system — no external font dependencies
   ========================================================================== */


/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */

:root {
  --serif:   Georgia, "Times New Roman", serif;
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg:      #f7f3ec;
  --text:    #1f1f1c;
  --mid:     #6f6a60;
  --faint:   #a09588;
  --line:    #ded6c9;
  --accent:  #7c1c2e;

  --max:     1200px;
  --prose:   720px;
}


/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}


/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */

.outer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.outer--prose {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 2rem;
}


/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.site-logo {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #1f1f1c !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Desktop navigation ── */
.nav-primary {
  display: flex;
  align-items: center;
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

/* Force nav size regardless of Ghost injected styles */
.nav-primary ul li a,
a.nav-item {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #6f6a60 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-primary ul li a:hover,
.nav-primary ul li.nav-current a {
  color: #1f1f1c !important;
}

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: 0.2s ease;
}

/* ── Mobile nav ── */
.nav-mobile {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem 2.5rem 2rem;
}

.nav-mobile.is-open { display: block; }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.nav-mobile ul li a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #6f6a60 !important;
  text-decoration: none !important;
}

.nav-mobile ul li a:hover { color: #1f1f1c !important; }


/* --------------------------------------------------------------------------
   HOMEPAGE — INTRO
   -------------------------------------------------------------------------- */

.home-intro {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.home-intro p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--faint);
  font-style: normal;
  letter-spacing: 0.01em;
}


/* --------------------------------------------------------------------------
   SECTION LABELS
   -------------------------------------------------------------------------- */

.section-rule {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   FEATURED GRID  (2 large top + 2 smaller below)
   -------------------------------------------------------------------------- */

.featured-grid {
  max-width: var(--max);
  margin: 0.35rem auto 0;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.75rem 2.5rem;
}

/* Row 1: 2 hero posts, 3 cols each */
.featured-grid .post-card:nth-child(1),
.featured-grid .post-card:nth-child(2) {
  grid-column: span 3;
}

/* Row 2: 3 equal posts, 2 cols each */
.featured-grid .post-card:nth-child(3),
.featured-grid .post-card:nth-child(4),
.featured-grid .post-card:nth-child(5) {
  grid-column: span 2;
}

/* Top two cards: larger image */
/* Hero cards — beide komplett identisch */
.featured-grid .post-card:nth-child(1) .post-card__img,
.featured-grid .post-card:nth-child(2) .post-card__img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-grid .post-card:nth-child(1) .post-card__title,
.featured-grid .post-card:nth-child(2) .post-card__title {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.featured-grid .post-card:nth-child(1) .post-card__excerpt,
.featured-grid .post-card:nth-child(2) .post-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: 0.9rem;
}

/* Row 2: 3 vertical cards */
.featured-grid .post-card:nth-child(3),
.featured-grid .post-card:nth-child(4),
.featured-grid .post-card:nth-child(5) {
  display: flex;
  flex-direction: column;
  border-top: none;
  padding-top: 0;
}

.featured-grid .post-card:nth-child(3) .post-card__title,
.featured-grid .post-card:nth-child(4) .post-card__title,
.featured-grid .post-card:nth-child(5) .post-card__title {
  font-size: 1.15rem;
  line-height: 1.28;
}

.featured-grid .post-card:nth-child(3) .post-card__excerpt,
.featured-grid .post-card:nth-child(4) .post-card__excerpt,
.featured-grid .post-card:nth-child(5) .post-card__excerpt {
  font-size: 0.86rem;
  -webkit-line-clamp: 2;
}


/* --------------------------------------------------------------------------
   LATEST WRITINGS  (magazine contents list)
   -------------------------------------------------------------------------- */

.latest-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.75rem 2rem;
}

.latest-list .post-card {
  display: flex;
  flex-direction: column;
}

.latest-list .post-card__img-wrap {
  margin-bottom: 1.1rem;
}

.latest-list .post-card__img-wrap .post-card__img {
  aspect-ratio: 3 / 2;
  width: 100%;
}

.latest-list .post-card__title {
  font-size: 1.05rem;
  line-height: 1.26;
  margin-bottom: 0.6rem;
}

.latest-list .post-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: 0.85rem;
}


/* --------------------------------------------------------------------------
   POST CARD (shared)
   -------------------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
}

/* Image wrapper */
.post-card__img-wrap {
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.post-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__img {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Body */
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Tag */
.post-card__tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  display: block;
  opacity: 0.85;
}

/* Title */
.post-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.post-card__title a:hover { color: var(--accent); }

/* Excerpt */
.post-card__excerpt {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.post-card__meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  opacity: 0.8;
}

.post-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */

.pagination {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pagination a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.18s ease;
}

.pagination a:hover { color: var(--text); }

.pagination span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}


/* --------------------------------------------------------------------------
   ARTICLE PAGE
   -------------------------------------------------------------------------- */

/* Reading bar */
.reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 500;
  transition: width 0.1s linear;
}

/* Header */
.article-header {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
}

.article-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  opacity: 0.85;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-standfirst {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--line);
}

/* Byline */
.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.article-byline__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-byline__name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.article-byline__meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

/* Feature image */
.article-image {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.article-image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.article-image figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--faint);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* Body */
.article-body {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* Ghost content */
.gh-content {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
}

.gh-content > * + * { margin-top: 1.6rem; }

.gh-content p { margin-bottom: 0; }

.gh-content h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 4.5rem;
  margin-bottom: 0.9rem;
}

.gh-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.28;
  margin-top: 3.5rem;
  margin-bottom: 0.75rem;
}

.gh-content h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 2.5rem;
  margin-bottom: -0.75rem;
}

.gh-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

.gh-content a:hover { text-decoration-color: var(--accent); }

.gh-content strong { font-weight: 600; }
.gh-content em { font-style: italic; }

.gh-content ul,
.gh-content ol {
  list-style: revert;
  padding-left: 1.5rem;
}

.gh-content li + li { margin-top: 0.4rem; }

.gh-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--mid);
  font-size: 1.05rem;
}

.gh-content blockquote p { margin: 0; }

.gh-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.gh-content figure { margin: 2.5rem 0; }
.gh-content figure img { width: 100%; }

.gh-content figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--faint);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* Koenig wide/full images */
.kg-width-wide {
  position: relative;
  width: min(100vw - 4rem, 960px);
  margin-left: calc(50% - min(100vw - 4rem, 960px) / 2);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.kg-width-full img,
.kg-width-wide img { width: 100%; }

/* Article footer */
.article-footer {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-tag-pill {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  border: 1px solid var(--line);
  padding: 0.3em 0.9em;
  transition: border-color 0.18s, color 0.18s;
}

.article-tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Related posts */
.related {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 5rem;
}

.related__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.related__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related__grid .post-card__img {
  aspect-ratio: 16 / 9;
}

.related__grid .post-card__title { font-size: 1.05rem; }
.related__grid .post-card__excerpt { display: none; }


/* --------------------------------------------------------------------------
   STATIC PAGE
   -------------------------------------------------------------------------- */

.page-header {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-desc {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--mid);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.page-body {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}


/* --------------------------------------------------------------------------
   ARCHIVE (tag / author)
   -------------------------------------------------------------------------- */

.archive-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.archive-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2.5rem 2.5rem;
}

.archive-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 0.5rem;
}

.archive-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.archive-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mid);
  margin-top: 0.75rem;
}

.archive-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  margin-top: 0.5rem;
}

.archive-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2.5rem;
}

.archive-grid .post-card__img { aspect-ratio: 3 / 2; }
.archive-grid .post-card__excerpt { -webkit-line-clamp: 2; }


/* --------------------------------------------------------------------------
   AUTHOR PAGE
   -------------------------------------------------------------------------- */

.author-header {
  border-bottom: 1px solid var(--line);
}

.author-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.author-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.author-bio {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 540px;
}


/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: #1f1f1c;
  color: rgba(255,255,255,0.35);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 2.5rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.footer-nav-head {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.footer-nav-list a {
  font-family: var(--sans);
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.18s ease;
  letter-spacing: 0.01em;
}

.footer-nav-list a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-ghost {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.03em;
}

.footer-ghost a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-ghost a:hover { color: rgba(255,255,255,0.5); }


/* --------------------------------------------------------------------------
   ERROR PAGE
   -------------------------------------------------------------------------- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 5rem 2rem;
}

.error-code {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 400;
  color: var(--line);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.error-text {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 2rem;
}

.error-back {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.18s;
}

.error-back:hover { opacity: 0.65; }


/* --------------------------------------------------------------------------
   GHOST CARD ASSETS
   -------------------------------------------------------------------------- */

.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card,
.kg-callout-card { margin: 2.5rem 0; }

.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { border: 1px solid var(--line); }

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content { padding: 1.25rem; flex: 1; }

.kg-bookmark-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.kg-bookmark-description {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
}

.kg-bookmark-icon { width: 16px; height: 16px; }

.kg-bookmark-thumbnail { width: 130px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
  background: #f3efe8;
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.kg-callout-text {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  html { font-size: 17px; }

  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
  }

  .featured-grid .post-card:nth-child(1),
  .featured-grid .post-card:nth-child(2) {
    grid-column: span 2;
  }

  .featured-grid .post-card:nth-child(3),
  .featured-grid .post-card:nth-child(4),
  .featured-grid .post-card:nth-child(5) {
    grid-column: span 2;
  }

  .related__grid { grid-template-columns: repeat(2, 1fr); }

  .latest-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / 3; }

  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .outer { padding: 0 1.25rem; }
  .outer--prose { padding: 0 1.25rem; }

  /* Header */
  .site-header__row { padding: 0 1.25rem; height: 60px; }
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { padding: 1.25rem 1.25rem 1.75rem; }

  /* Homepage */
  .home-intro p { padding: 0 1.25rem; }
  .section-rule { padding: 0 1.25rem; margin-top: 2.5rem; }

  .featured-grid {
    padding: 0 1.25rem;
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .featured-grid .post-card:nth-child(n) {
    grid-column: 1;
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
    display: flex;
    flex-direction: column;
  }

  .featured-grid .post-card:nth-child(1) {
    border-top: none;
    padding-top: 0;
  }

  .featured-grid .post-card:nth-child(1) .post-card__title {
    font-size: 1.6rem;
  }

  .featured-grid .post-card:nth-child(n+2) .post-card__title {
    font-size: 1.2rem;
  }

  .latest-list { padding: 0 1.25rem 4rem; }

  .latest-list .post-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .latest-list {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 4rem;
    gap: 2.5rem;
  }

  /* Article */
  .article-header { padding: 2.5rem 1.25rem 2rem; }
  .article-image { padding: 0; margin: 2rem 0; }
  .article-image img { max-height: 280px; }
  .article-body { padding: 0 1.25rem 4rem; }
  .article-footer { padding: 1.5rem 1.25rem 3rem; }

  /* Archive */
  .archive-header__inner { padding: 2.5rem 1.25rem; }
  .archive-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 4rem;
  }

  /* Author */
  .author-header__inner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem 1.25rem;
  }

  /* Related */
  .related { padding: 2.5rem 0 4rem; }
  .related__inner { padding: 0 1.25rem; }
  .related__grid { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer__inner { padding: 3rem 1.25rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* Page */
  .page-header { padding: 2.5rem 1.25rem 1.5rem; }
  .page-body { padding: 0 1.25rem 4rem; }

  /* Pagination */
  .pagination { padding: 1.5rem 1.25rem 3rem; }
}
