/* ═══════════════════════════════════════════════
   HYTK — Have You Tried Kindness
   Ghost Theme Stylesheet — Brand Guidelines v2
   ═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Warm side */
  --bg:           #EDE8DF;
  --bg-card:      #F5F1EB;
  --white:        #FAF8F4;

  /* Cool side */
  --bg-cool:      #E8EAEB;
  --bg-inset:     #D8D2C6;

  /* Text */
  --text:         #1A1712;
  --text-mid:     #706B62;
  --text-light:   #A8A098;

  /* Accent — Petrol */
  --accent:       #1A7A9C;
  --accent-deep:  #125F7A;
  --accent-pale:  #CBE8F2;

  /* Structure */
  --rule:         #C8C0B4;
  --radius:       4px;
  --max-width:    860px;
  --body-width:   65ch;
  --base:         8px;
}


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


/* ── BASE ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-deep);
}

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


/* ── LAYOUT ── */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--base) * 5);
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
}


/* ── SITE HEADER ── */
.site-header {
  padding: calc(var(--base) * 4) 0;
  border-bottom: 1.5px solid var(--rule);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--base) * 3);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  padding: 6px 10px 5px;
  line-height: 1;
  text-decoration: none;
}

.site-logo .letters {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}

.site-logo:hover {
  background: var(--accent);
}

.site-logo:hover .letters {
  color: var(--white);
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 3);
}

.site-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--base);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1.5px solid var(--rule);
    flex-direction: column;
    padding: calc(var(--base) * 3) 20px;
    gap: calc(var(--base) * 2);
    z-index: 100;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }
}


/* ── SITE FOOTER ── */
.site-footer {
  border-top: 1.5px solid var(--rule);
  padding: calc(var(--base) * 5) 0;
  margin-top: calc(var(--base) * 10);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--base) * 2);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 1.5);
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.04em;
  border: 1.5px solid var(--accent);
  padding: 3px 6px 2px;
  line-height: 1;
  text-decoration: none;
}

.footer-name {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 300;
}

.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.footer-meta a {
  color: var(--text-light);
}

.footer-meta a:hover {
  color: var(--accent);
}


/* ── HOME / POST FEED ── */
.feed-header {
  padding: calc(var(--base) * 8) 0 calc(var(--base) * 5);
}

.feed-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: calc(var(--base) * 1);
}

.feed-header h1 em {
  color: var(--accent);
  font-style: italic;
}

.feed-header p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.7;
}

/* Post grid */
.post-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--base) * 2);
  padding-bottom: calc(var(--base) * 8);
}

@media (max-width: 700px) {
  .post-feed {
    grid-template-columns: 1fr;
  }
}

/* Featured post — full width */
.post-feed .post-card:first-child {
  grid-column: 1 / -1;
}

.post-feed .post-card:first-child .post-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.post-feed .post-card:first-child .post-card-image {
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 280px;
}

.post-feed .post-card:first-child .post-card-body {
  padding: calc(var(--base) * 5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-feed .post-card:first-child .post-card-title {
  font-size: 26px;
}

@media (max-width: 700px) {
  .post-feed .post-card:first-child .post-card-content {
    grid-template-columns: 1fr;
  }

  .post-feed .post-card:first-child .post-card-image {
    border-radius: var(--radius) var(--radius) 0 0;
    min-height: 200px;
  }
}


/* ── POST CARD ── */
.post-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-inset);
}

.post-card-body {
  padding: calc(var(--base) * 3);
}

.post-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: calc(var(--base) * 1.5);
}

.post-card-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: calc(var(--base) * 1);
}

.post-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: calc(var(--base) * 2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 1.5);
  padding-top: calc(var(--base) * 1.5);
  border-top: 1px solid var(--bg-inset);
}

.post-card-byline-avatars {
  display: flex;
}

.post-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.post-card-avatar:nth-child(1) {
  background: var(--accent);
  z-index: 2;
}

.post-card-avatar:nth-child(2) {
  background: var(--accent-deep);
  z-index: 1;
  margin-left: -6px;
}


/* ── SINGLE POST ── */
.post-template .site-content,
.page-template .site-content {
  background: var(--white);
}

.post-header {
  padding: calc(var(--base) * 8) 0 calc(var(--base) * 4);
  max-width: var(--body-width);
  margin: 0 auto;
}

.post-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: calc(var(--base) * 2);
}

.post-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: calc(var(--base) * 2);
}

.post-excerpt-header {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: calc(var(--base) * 3);
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 2);
  padding-bottom: calc(var(--base) * 3);
  border-bottom: 1px solid var(--bg-inset);
}

.byline-avatars {
  display: flex;
}

.byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.byline-avatar:nth-child(1) {
  background: var(--accent);
  z-index: 2;
}

.byline-avatar:nth-child(2) {
  background: var(--accent-deep);
  z-index: 1;
  margin-left: -6px;
}

.byline-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.byline-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.byline-text a {
  color: var(--text-mid);
}

/* Feature image */
.post-feature-image {
  max-width: var(--max-width);
  margin: calc(var(--base) * 4) auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-feature-image img {
  width: 100%;
  height: auto;
}

/* Post body — Ghost content */
.post-body {
  max-width: var(--body-width);
  margin: 0 auto;
  padding: calc(var(--base) * 4) 0 calc(var(--base) * 10);
}

.gh-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: calc(var(--base) * 6) 0 calc(var(--base) * 2);
  line-height: 1.2;
}

.gh-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: calc(var(--base) * 5) 0 calc(var(--base) * 1.5);
  line-height: 1.25;
}

.gh-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: calc(var(--base) * 4) 0 calc(var(--base) * 1);
}

.gh-content p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: calc(var(--base) * 3);
}

.gh-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-pale);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

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

.gh-content strong {
  font-weight: 500;
}

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

.gh-content ul,
.gh-content ol {
  padding-left: calc(var(--base) * 3);
  margin-bottom: calc(var(--base) * 3);
}

.gh-content li {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: calc(var(--base) * 0.5);
}

.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: calc(var(--base) * 2) calc(var(--base) * 3);
  margin: calc(var(--base) * 4) 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.gh-content blockquote p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 0;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: calc(var(--base) * 6) 0;
}

.gh-content figure {
  margin: calc(var(--base) * 4) 0;
}

.gh-content figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: calc(var(--base) * 1);
}

/* Ghost cards — wider than body */
.gh-content .kg-width-wide {
  max-width: var(--max-width);
  margin-left: calc(50% - var(--max-width) / 2);
  margin-right: calc(50% - var(--max-width) / 2);
}

.gh-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
  border-radius: var(--radius);
}

/* Code blocks */
.gh-content code {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--accent-deep);
}

.gh-content pre {
  background: var(--text);
  color: var(--bg);
  padding: calc(var(--base) * 3);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: calc(var(--base) * 4) 0;
}

.gh-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
}


/* ── TAG PAGE ── */
.tag-header {
  padding: calc(var(--base) * 8) 0 calc(var(--base) * 4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: calc(var(--base) * 5);
}

.tag-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: calc(var(--base) * 1.5);
}

.tag-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: calc(var(--base) * 1);
}

.tag-header p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 520px;
}

.tag-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}


/* ── AUTHOR PAGE ── */
.author-header {
  padding: calc(var(--base) * 8) 0 calc(var(--base) * 5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: calc(var(--base) * 5);
  display: flex;
  align-items: flex-start;
  gap: calc(var(--base) * 4);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h1 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 480px;
}

.author-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-top: calc(var(--base) * 1);
}

.author-meta a {
  color: var(--accent);
}

@media (max-width: 600px) {
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--base) * 3);
  padding: calc(var(--base) * 4) 0;
  border-top: 1px solid var(--rule);
}

.pagination a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: calc(var(--base) * 1) calc(var(--base) * 2);
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: all 0.15s ease;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--white);
}

.pagination .page-number {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.08em;
}


/* ── ERROR PAGE ── */
.error-page {
  text-align: center;
  padding: calc(var(--base) * 16) 0;
}

.error-code {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--bg-inset);
  line-height: 1;
  margin-bottom: calc(var(--base) * 2);
}

.error-page h1 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: calc(var(--base) * 1.5);
}

.error-page p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: calc(var(--base) * 4);
}

.error-page a.back-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: calc(var(--base) * 1.5) calc(var(--base) * 3);
  border-radius: 2px;
  transition: all 0.15s ease;
}

.error-page a.back-link:hover {
  background: var(--accent);
  color: var(--white);
}


/* ── COOL SECTION (functional content) ── */
.section-cool {
  background: var(--bg-cool);
  padding: calc(var(--base) * 6) 0;
  margin: calc(var(--base) * 6) 0;
}

.section-warm {
  background: var(--bg);
}


/* ── SUBSCRIBE FORM (Ghost built-in) ── */
.subscribe-form {
  background: var(--text);
  border-radius: var(--radius);
  padding: calc(var(--base) * 6) calc(var(--base) * 5);
  margin: calc(var(--base) * 6) 0;
  text-align: center;
}

.subscribe-form h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: calc(var(--base) * 1);
}

.subscribe-form p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-bottom: calc(var(--base) * 3);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form form {
  display: flex;
  gap: calc(var(--base) * 1);
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: calc(var(--base) * 1.5) calc(var(--base) * 2);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
}

.subscribe-form button {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: calc(var(--base) * 1.5) calc(var(--base) * 3);
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.subscribe-form button:hover {
  background: var(--accent-deep);
}

@media (max-width: 500px) {
  .subscribe-form form {
    flex-direction: column;
  }
}


/* ── GHOST PORTAL BUTTON OVERRIDE ── */
.gh-portal-triggerbtn-iframe {
  color-scheme: light;
}


/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}


/* ── FORMAT LABELS (post header) ── */
.format-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: calc(var(--base) * 1);
}

.format-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-inset);
  color: var(--text-mid);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: calc(var(--base) * 2);
}


/* ── BLUF BLOCK (rec posts) ── */
.bluf-block {
  background: var(--bg-cool);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: calc(var(--base) * 3) calc(var(--base) * 4);
  margin: calc(var(--base) * 3) 0 calc(var(--base) * 4);
  max-width: var(--body-width);
  margin-left: auto;
  margin-right: auto;
}

.bluf-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: calc(var(--base) * 1.5);
}

.bluf-block p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.6;
}


/* ── HYTK ASIDE (author disagreement callout) ── */
.hytk-aside {
  border-left: 2px solid var(--rule);
  padding: calc(var(--base) * 2) calc(var(--base) * 3);
  margin: calc(var(--base) * 4) 0;
  background: transparent;
}

.hytk-aside p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: calc(var(--base) * 1.5);
}

.hytk-aside p:last-child {
  margin-bottom: 0;
}

.hytk-aside p strong {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
}


/* ── HYTK PRODUCT CARD (rec posts — HTML card component) ── */
.hytk-product-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: calc(var(--base) * 3) calc(var(--base) * 4);
  margin: calc(var(--base) * 3) 0 calc(var(--base) * 4);
}

.hytk-product-card .product-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: calc(var(--base) * 0.5);
}

.hytk-product-card .product-name a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-pale);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.hytk-product-card .product-name a:hover {
  text-decoration-color: var(--accent);
}

.hytk-product-card .product-price {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: calc(var(--base) * 1.5);
}

.hytk-product-card .product-note {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}

.hytk-product-card + .hytk-product-card {
  margin-top: calc(var(--base) * 2);
}


/* ── MICRO POST BODY ── */
.micro-body {
  max-width: 55ch;
}


/* ── GUIDE LAYOUT ── */
.guide-header {
  max-width: var(--max-width);
}

.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: calc(var(--base) * 3) calc(var(--base) * 4);
  margin: calc(var(--base) * 4) 0;
  max-width: var(--body-width);
  margin-left: auto;
  margin-right: auto;
}

.guide-toc-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: calc(var(--base) * 2);
}

.guide-toc ol {
  list-style: decimal;
  padding-left: calc(var(--base) * 2.5);
  margin: 0;
}

.guide-toc li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: calc(var(--base) * 0.75);
}

.guide-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}

.guide-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.guide-related {
  margin: calc(var(--base) * 8) 0 calc(var(--base) * 4);
  border-top: 1px solid var(--rule);
  padding-top: calc(var(--base) * 5);
}

.guide-related-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: calc(var(--base) * 3);
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--base) * 2);
}

@media (max-width: 600px) {
  .guide-related-grid {
    grid-template-columns: 1fr;
  }
}


/* ── TAG PAGE: GUIDE FEATURE + FILTER PILLS ── */
.tag-guide-feature {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: calc(var(--base) * 5);
  margin-bottom: calc(var(--base) * 5);
}

.tag-guide-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: calc(var(--base) * 2);
  display: block;
}

.tag-guide-feature a {
  text-decoration: none;
  color: inherit;
}

.tag-guide-feature h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: calc(var(--base) * 1.5);
}

.tag-guide-feature p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0;
}

.tag-filter-pills {
  display: flex;
  gap: calc(var(--base) * 1);
  flex-wrap: wrap;
  margin-bottom: calc(var(--base) * 4);
}

.tag-filter-pill {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--rule);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.tag-filter-pill:hover,
.tag-filter-pill.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-pale);
}


/* ── POST CARD FORMAT BADGES ── */
.post-card-format-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: calc(var(--base) * 1);
  display: inline-block;
}

.format-guide {
  background: var(--accent-pale);
  color: var(--accent-deep);
}

.format-micro {
  background: var(--bg-inset);
  color: var(--text-mid);
}

/* Micro card: compact, no image */
.post-card-micro .post-card-body {
  padding: calc(var(--base) * 2.5);
}


/* ── AMAZON SINGLE PRODUCT CARD ── */
.hytk-amazon-card {
  max-width: 540px;
  margin: calc(var(--base) * 4) auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.hytk-amazon-card:hover {
  border-color: var(--accent);
}

.hytk-amazon-card__link {
  display: flex;
  align-items: stretch;
  text-decoration: none !important;
  color: inherit !important;
}

.hytk-amazon-card__image-wrap {
  flex: 0 0 140px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--base) * 2.5);
  border-right: 1px solid var(--rule);
}

.hytk-amazon-card__image {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.hytk-amazon-card__body {
  flex: 1;
  padding: calc(var(--base) * 3) calc(var(--base) * 4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--base) * 0.5);
}

.hytk-amazon-card__title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.hytk-amazon-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

.hytk-amazon-card__cta {
  display: inline-block;
  margin-top: calc(var(--base) * 1.5);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hytk-amazon-card:hover .hytk-amazon-card__cta {
  color: var(--accent-deep);
}

@media (max-width: 640px) {
  .hytk-amazon-card {
    max-width: 100%;
  }

  .hytk-amazon-card__link {
    flex-direction: column;
  }

  .hytk-amazon-card__image-wrap {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: calc(var(--base) * 3);
  }

  .hytk-amazon-card__image {
    max-height: 180px;
  }
}


/* ── MULTI-PRODUCT GRID ── */
.hytk-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--base) * 3);
  margin: calc(var(--base) * 4) auto;
  max-width: var(--max-width);
}

.hytk-product-grid__item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.hytk-product-grid__item:hover {
  border-color: var(--accent);
}

.hytk-product-grid__image-wrap {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--base) * 3);
  min-height: 160px;
  border-bottom: 1px solid var(--rule);
}

.hytk-product-grid__image {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.hytk-product-grid__body {
  padding: calc(var(--base) * 2.5) calc(var(--base) * 3) calc(var(--base) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 0.5);
  flex: 1;
}

.hytk-product-grid__title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.hytk-product-grid__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.hytk-product-grid__cta {
  display: inline-block;
  margin-top: calc(var(--base) * 1.5);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hytk-product-grid__item:hover .hytk-product-grid__cta {
  color: var(--accent-deep);
}

@media (max-width: 640px) {
  .hytk-product-grid {
    grid-template-columns: 1fr;
  }
}


/* ── UTILITIES ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
