/*
Theme Name: Swords of the East
Theme URI: https://www.swordsoftheeast.com/
Author: Kei Brennan
Author URI: https://www.swordsoftheeast.com/about/
Description: Custom editorial theme for Swords of the East — an independent journal on Japanese swords, blade-making history, and martial arts weapons.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swordsoftheeast
Tags: custom-menu, featured-images, custom-post-types
*/

/* Fonts: Zodiak (Fontshare) + Crimson Pro + Public Sans (Bunny CDN) */
@import url('https://api.fontshare.com/v2/css?f[]=zodiak@400,500,700,900&display=swap');
@import url('https://fonts.bunny.net/css?family=crimson-pro:300,400,400i,500,600,700|public-sans:300,400,600,700&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --sote-paper:    #FDFCF8;
  --sote-ink:      #121212;
  --sote-ink-mid:  #3a3a3a;
  --sote-muted:    #6b6b6b;
  --sote-rule:     #d4d0c8;
  --sote-red:      #9B1C1C;
  --sote-red-hover:#7a1515;
  --sote-white:    #ffffff;

  --sote-font-display: 'Zodiak', Georgia, serif;
  --sote-font-body:    'Crimson Pro', Georgia, serif;
  --sote-font-label:   'Public Sans', system-ui, sans-serif;

  --sote-max-w: 1440px;
  --sote-gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sote-font-body);
  background-color: var(--sote-paper);
  color: var(--sote-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Helpers ────────────────────────────────── */
.sote-display {
  font-family: var(--sote-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.sote-label {
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.sote-red   { color: var(--sote-red); }
.sote-muted { color: var(--sote-muted); }

/* ── Layout ────────────────────────────────────────────── */
.sote-container {
  max-width: var(--sote-max-w);
  margin-inline: auto;
  padding-inline: var(--sote-gutter);
}

/* ── Rules ─────────────────────────────────────────────── */
.sote-hr        { border: none; border-top: 1px solid var(--sote-rule); }
.sote-hr-ink    { border: none; border-top: 1px solid var(--sote-ink); }
.sote-hr-double { border: none; border-top: 3px double var(--sote-ink); }

/* ── Masthead ──────────────────────────────────────────── */
.sote-masthead {
  background-color: var(--sote-ink);
  color: var(--sote-white);
  padding-top: 2rem;
  padding-bottom: 1rem;
  text-align: center;
}

.sote-masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sote-masthead-meta span {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.sote-site-title {
  font-family: var(--sote-font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sote-white);
  display: block;
  margin-bottom: 0.5rem;
}

.sote-site-title:hover { color: var(--sote-white); }

.sote-tagline {
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

/* ── Primary Nav ───────────────────────────────────────── */
.sote-primary-nav {
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-block: 0.75rem;
}

.sote-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}

.sote-primary-nav a {
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.sote-primary-nav a:hover { color: #f87171; }

/* ── Hero Section ──────────────────────────────────────── */
.sote-hero {
  padding-block: 3.5rem;
}

.sote-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .sote-hero-grid { grid-template-columns: 8fr 4fr; }
}

.sote-hero-label {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sote-red);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.sote-hero-headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 2rem;
}

.sote-hero-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .sote-hero-body { flex-direction: row; }
  .sote-hero-body > * { flex: 1; }
}

.sote-hero-pullquote {
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--sote-ink);
}

.sote-hero-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--sote-ink-mid);
}

.sote-hero-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid var(--sote-ink);
  filter: grayscale(100%);
  margin-bottom: 0.5rem;
}

.sote-img-caption {
  font-family: var(--sote-font-label);
  font-size: 0.5625rem;
  color: var(--sote-muted);
  font-style: italic;
}

/* ── Hero Sidebar ──────────────────────────────────────── */
.sote-hero-aside {
  border-left: 1px solid var(--sote-rule);
  padding-left: 2.5rem;
}

@media (max-width: 1023px) {
  .sote-hero-aside { border-left: none; border-top: 1px solid var(--sote-rule); padding-left: 0; padding-top: 2rem; }
}

.sote-aside-label {
  font-family: var(--sote-font-label);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sote-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.sote-aside-item { margin-bottom: 2rem; }
.sote-aside-item + .sote-aside-item { padding-top: 2rem; border-top: 1px solid var(--sote-rule); }

.sote-aside-title {
  font-size: 1.75rem;
  color: var(--sote-ink);
  transition: color 0.2s;
}

.sote-aside-title:hover { color: var(--sote-red-hover); }

.sote-aside-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sote-muted);
  margin-top: 0.5rem;
}

/* ── Category Strip ────────────────────────────────────── */
.sote-cat-strip {
  padding-block: 0.25rem;
}

.sote-cat-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 3px double var(--sote-ink);
  border-bottom: 3px double var(--sote-ink);
}

@media (min-width: 768px) {
  .sote-cat-strip-inner { grid-template-columns: repeat(5, 1fr); }
}

.sote-cat-link {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--sote-rule);
  transition: background 0.15s;
}

.sote-cat-link:last-child { border-right: none; }
.sote-cat-link:hover { background: #fdf4f4; }

.sote-cat-name {
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.sote-cat-sub {
  font-family: var(--sote-font-body);
  font-size: 0.625rem;
  font-style: italic;
  color: var(--sote-muted);
}

/* ── Featured Articles ─────────────────────────────────── */
.sote-featured {
  padding-block: 5rem;
}

.sote-section-header {
  border-bottom: 2px solid var(--sote-ink);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.sote-section-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.sote-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .sote-articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.sote-article-card {}

.sote-article-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid var(--sote-ink);
  filter: grayscale(100%);
  margin-bottom: 1.25rem;
  transition: filter 0.3s;
}

.sote-article-card:hover .sote-article-card-img { filter: grayscale(100%); }

.sote-article-cat {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sote-red);
}

.sote-article-title {
  font-size: 1.75rem;
  margin-top: 0.625rem;
  margin-bottom: 0.875rem;
  transition: color 0.2s;
}

.sote-article-card:hover .sote-article-title { color: var(--sote-red-hover); }

.sote-article-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sote-ink-mid);
}

.sote-read-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--sote-ink);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.sote-read-more:hover { color: var(--sote-red); border-color: var(--sote-red); }

/* ── Author Block ──────────────────────────────────────── */
.sote-author-section {
  background-color: var(--sote-ink);
  color: var(--sote-white);
  padding-block: 4rem;
}

.sote-author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sote-author-grid { grid-template-columns: 280px 1fr; }
}

.sote-author-portrait {
  width: 224px;
  height: 288px;
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid rgba(255,255,255,0.2);
  margin-inline: auto;
}

.sote-author-role {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f87171;
  display: block;
  margin-bottom: 0.5rem;
}

.sote-author-name {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.sote-author-bio {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  columns: 1;
}

@media (min-width: 768px) {
  .sote-author-bio { columns: 2; column-gap: 3rem; }
}

.sote-author-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sote-author-links a {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.sote-author-links a:hover { color: #f87171; }

/* ── Secondary Articles ────────────────────────────────── */
.sote-secondary {
  padding-block: 5rem;
}

.sote-secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}

@media (min-width: 640px)  { .sote-secondary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sote-secondary-grid { grid-template-columns: repeat(4, 1fr); } }

.sote-secondary-cat {
  font-family: var(--sote-font-label);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sote-red);
  font-weight: 700;
}

.sote-secondary-title {
  font-size: 1.35rem;
  margin-top: 0.5rem;
  transition: text-decoration 0.15s;
}

.sote-secondary-item:hover .sote-secondary-title { text-decoration: underline; }

.sote-secondary-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sote-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Single Post ───────────────────────────────────────── */
.sote-single-header {
  padding-block: 3rem;
  border-bottom: 1px solid var(--sote-rule);
  margin-bottom: 3rem;
}

.sote-single-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.sote-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sote-muted);
}

.sote-single-meta .sote-red { color: var(--sote-red); }

.sote-single-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid var(--sote-ink);
  margin-bottom: 2rem;
}

.sote-single-content {
  max-width: 740px;
  font-size: 1.15rem;
  line-height: 1.75;
}

.sote-single-content h2 {
  font-family: var(--sote-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sote-single-content h3 {
  font-family: var(--sote-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.sote-single-content p { margin-bottom: 1.25rem; }

.sote-single-content a { color: var(--sote-red); text-decoration: underline; }
.sote-single-content a:hover { color: var(--sote-red-hover); }

.sote-single-content ul, .sote-single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.sote-single-content ul { list-style: disc; }
.sote-single-content ol { list-style: decimal; }

.sote-single-content li { margin-bottom: 0.4rem; }

.sote-single-content blockquote {
  border-left: 3px solid var(--sote-red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sote-ink-mid);
}

.sote-single-content img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  border: 1px solid var(--sote-ink);
  margin-block: 2rem;
}

/* ── EEAT Block ────────────────────────────────────────── */
.sote-eeat {
  border: 1px solid var(--sote-rule);
  padding: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #f9f8f4;
}

.sote-eeat-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  flex-shrink: 0;
}

.sote-eeat-name {
  font-family: var(--sote-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sote-eeat-credentials {
  font-family: var(--sote-font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sote-muted);
  margin-bottom: 0.5rem;
}

.sote-eeat-bio {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sote-ink-mid);
}

/* ── Archive ───────────────────────────────────────────── */
.sote-archive-header {
  padding-block: 3rem;
  border-bottom: 3px double var(--sote-ink);
  margin-bottom: 3rem;
}

.sote-archive-label {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sote-red);
  display: block;
  margin-bottom: 0.5rem;
}

.sote-archive-title { font-size: clamp(2rem, 5vw, 3rem); }
.sote-archive-desc { font-size: 1.1rem; color: var(--sote-ink-mid); margin-top: 1rem; max-width: 600px; }

/* ── 404 ───────────────────────────────────────────────── */
.sote-404 { padding-block: 6rem; text-align: center; }
.sote-404-code { font-size: 8rem; font-family: var(--sote-font-display); font-weight: 900; opacity: 0.08; line-height: 1; }
.sote-404-msg  { font-size: 1.5rem; margin-top: -2rem; margin-bottom: 1.5rem; }

/* ── Footer ────────────────────────────────────────────── */
.sote-footer {
  background: var(--sote-white);
  border-top: 4px solid var(--sote-ink);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.sote-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .sote-footer-grid { grid-template-columns: 5fr 3fr 4fr; }
}

.sote-footer-brand-title {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.sote-footer-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--sote-muted);
  margin-bottom: 1.75rem;
  max-width: 380px;
}

.sote-footer-col-title {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sote-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.sote-footer-nav { display: flex; flex-direction: column; gap: 0.625rem; }

.sote-footer-nav a {
  font-family: var(--sote-font-label);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sote-ink-mid);
  transition: color 0.2s;
}

.sote-footer-nav a:hover { color: var(--sote-red); }

.sote-footer-legal {
  border-top: 3px double var(--sote-ink);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sote-footer-legal span {
  font-family: var(--sote-font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sote-muted);
}

/* ── Pagination ────────────────────────────────────────── */
.sote-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 3rem;
  font-family: var(--sote-font-label);
  font-size: 0.75rem;
}

.sote-pagination a,
.sote-pagination span {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--sote-rule);
  transition: background 0.15s;
}

.sote-pagination a:hover { background: var(--sote-ink); color: var(--sote-white); border-color: var(--sote-ink); }
.sote-pagination .current { background: var(--sote-ink); color: var(--sote-white); border-color: var(--sote-ink); }

/* ── The Practice Hall ───────────────────────────────────── */
.sote-practice-hall {
  padding: 2.5rem 0;
  background: var(--sote-paper);
  border-top: 1px solid var(--sote-rule);
  border-bottom: 1px solid var(--sote-rule);
}
@media (min-width: 768px) {
  .sote-practice-hall { padding: 4rem 0; }
}
.sote-section-sub {
  font-family: var(--sote-font-label);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sote-muted);
  margin-top: .35rem;
}

/* Mobile-first: single column, horizontal card rows */
.sote-practice-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.75rem;
}
.sote-practice-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sote-rule);
  border-left: 3px solid var(--sote-rule);
  transition: border-left-color .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--sote-ink);
}
.sote-practice-card:hover {
  border-left-color: var(--sote-red);
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.sote-practice-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--sote-red);
  margin-top: .1rem;
}
.sote-practice-icon svg { width: 100%; height: 100%; }
.sote-practice-body { display: flex; flex-direction: column; gap: .2rem; }
.sote-practice-type {
  font-family: var(--sote-font-label);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sote-red);
  font-weight: 600;
}
.sote-practice-title {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}
.sote-practice-desc {
  font-size: .85rem;
  color: var(--sote-ink-mid);
  line-height: 1.5;
  margin: .1rem 0 0;
}
.sote-practice-cta {
  font-family: var(--sote-font-label);
  font-size: .75rem;
  font-weight: 600;
  color: var(--sote-red);
  margin-top: .3rem;
  letter-spacing: .03em;
}
.sote-practice-card:hover .sote-practice-cta { text-decoration: underline; }

/* Tablet: 2-column vertical cards */
@media (min-width: 640px) {
  .sote-practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .sote-practice-card {
    flex-direction: column;
    border-left: 1px solid var(--sote-rule);
    border-top: 3px solid var(--sote-rule);
    padding: 1.4rem 1.25rem 1.1rem;
  }
  .sote-practice-card:hover {
    border-left-color: var(--sote-rule);
    border-top-color: var(--sote-red);
  }
  .sote-practice-icon { width: 40px; height: 40px; margin-bottom: .25rem; }
}

/* Desktop: 5 columns */
@media (min-width: 1024px) {
  .sote-practice-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

/* ── Masthead seal ───────────────────────────────────────── */
.sote-masthead-meta {
  align-items: center;
}
.sote-masthead-seal {
  width: 36px;
  height: 44px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Video embed ─────────────────────────────────────────── */
.sote-video-embed {
    margin: 2.5rem auto;
    border-top: 1.5px solid var(--sote-rule, #d4d0c8);
    padding-top: 1.5rem;
    display: block;
    width: 100%;
    clear: both;
}
.sote-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    display: block;
}
.sote-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    display: block;
}
.sote-video-caption {
    font-family: var(--sote-font-label, 'Public Sans', system-ui, sans-serif);
    font-size: .75rem;
    color: var(--sote-muted, #6b6b6b);
    margin-top: .5rem;
    text-align: center;
}

/* ── Vocabulary page ─────────────────────────────────────── */
.sote-vocab-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 780px;
  margin: 0 0 2.5rem;
}
.sote-vocab-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0 0 3rem;
  padding: 1.25rem 1.5rem;
  background: #f5f4ef;
  border-radius: 4px;
  border: 1px solid var(--sote-rule);
}
.sote-vocab-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  font-family: var(--sote-font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--sote-ink);
  text-decoration: none;
  border-radius: 3px;
  transition: background .12s, color .12s;
}
.sote-vocab-alpha-nav a:hover {
  background: var(--sote-red);
  color: #fff;
}
.sote-vocab-alpha-nav .sote-vocab-alpha-empty {
  opacity: .3;
  pointer-events: none;
}
.sote-vocab-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0 0 2.5rem;
  font-family: var(--sote-font-label);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sote-vocab-legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sote-vocab-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.sote-vocab-section { margin-top: 3rem; }
.sote-vocab-letter-head {
  font-family: var(--sote-font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--sote-red);
  border-bottom: 3px solid var(--sote-red);
  padding-bottom: .2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sote-vocab-letter-count {
  font-size: .8rem;
  font-weight: 400;
  font-family: var(--sote-font-label);
  color: var(--sote-muted);
  letter-spacing: .03em;
}
.sote-vocab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
@media (min-width: 560px) {
  .sote-vocab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sote-vocab-grid { grid-template-columns: repeat(3, 1fr); }
}
.sote-vocab-card {
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--sote-rule);
  border-top: 3px solid var(--sote-rule);
  background: #fff;
  border-radius: 3px;
  transition: border-top-color .15s, box-shadow .15s;
}
.sote-vocab-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.sote-vocab-card.cat-blade    { border-top-color: #1a1a1a; }
.sote-vocab-card.cat-kendo    { border-top-color: #9B1C1C; }
.sote-vocab-card.cat-iaido    { border-top-color: #2c4a7c; }
.sote-vocab-card.cat-dojo     { border-top-color: #2d5a2d; }
.sote-vocab-card.cat-steel    { border-top-color: #7a5c2a; }
.sote-vocab-card.cat-history  { border-top-color: #5a3a70; }
.sote-vocab-card-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .45rem;
  flex-wrap: wrap;
}
.sote-vocab-romaji {
  font-family: var(--sote-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sote-ink);
}
.sote-vocab-kanji {
  font-size: 1.05rem;
  color: var(--sote-muted);
  font-family: 'Noto Serif JP', 'Yu Mincho', 'MS Mincho', serif;
  flex-shrink: 0;
}
.sote-vocab-badge {
  font-family: var(--sote-font-label);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: 2px;
  margin-left: auto;
  white-space: nowrap;
  align-self: center;
}
.badge-blade   { background: #1a1a1a; color: #fff; }
.badge-kendo   { background: #9B1C1C; color: #fff; }
.badge-iaido   { background: #2c4a7c; color: #fff; }
.badge-dojo    { background: #2d5a2d; color: #fff; }
.badge-steel   { background: #7a5c2a; color: #fff; }
.badge-history { background: #5a3a70; color: #fff; }
.sote-vocab-def {
  font-family: var(--sote-font-body);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--sote-ink-mid);
  margin: 0;
}
/* Cat strip: allow 6 items */
@media (min-width: 640px) {
  .sote-cat-strip-inner { flex-wrap: wrap; }
}

/* ── Centered article column (single posts + pages) ──────────
   The reading column (header, hero, body, EEAT) was flush-left
   inside the 1440px .sote-container; center it so the layout sits
   in the middle of the page. The full-width "Further Reading"
   grid is intentionally left untouched. */
.single .sote-single-header,
.single .sote-single-content,
.single .sote-single-hero-img,
.single .sote-eeat,
.page   .sote-single-header,
.page   .sote-single-content,
.page   .sote-single-hero-img,
.page   .sote-eeat {
  max-width: 740px;
  margin-inline: auto;
}
