/* =============================================================
   Forks Inc. — forks.tokyo LP
   tarosite-media と親和するデザイントークン
   （白背景 / 近黒 / ディープネイビー1色 / Inter + Noto Sans JP）
   ============================================================= */
:root {
  --bg: #ffffff;
  --ink: #111418;
  --ink-2: #44474d;
  --ink-3: #6b6f76;
  --ink-block: #0f1115;
  --line: #e8e9ec;
  --line-strong: #d2d4d9;
  --surface: #f5f6f8;
  --accent: #1f3a5f;
  --accent-ink: #142a47;
  --accent-tint: rgba(31, 58, 95, .05);
  --r-sm: 3px;
  --r-md: 6px;
  --maxw: 1080px;
  --gap: 28px;
  --f-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-display: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --f-header-typewriter: "Courier New", Courier, ui-monospace, monospace;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); line-height: 1.2; }
.global-nav { margin-left: auto; display: flex; gap: 24px; }
.global-nav a { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--ink-2); position: relative; padding: 4px 0; }
.global-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.global-nav a:hover { color: var(--ink); }
.global-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  font-family: var(--f-display); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 9px 20px; transition: background .15s;
}
.header-cta:hover { background: var(--accent-ink); }

/* ---------- shared typewriter header ---------- */
.brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 40px;
  padding-left: 50px;
  font-family: var(--f-header-typewriter);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: url("../images/forks-symbol.svg") center / contain no-repeat;
  transform: translateY(-50%);
}
.brand small {
  font-family: var(--f-header-typewriter);
  font-weight: 400;
  letter-spacing: .12em;
}
.global-nav a,
.mobile-navigation a,
.header-cta {
  font-family: var(--f-header-typewriter);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 72px) 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.4; letter-spacing: .01em; margin: 0 0 14px; }
.hero-title .accent { color: var(--accent); }
.hero-title .nb { display: inline-block; }
.hero-sub {
  font-family: var(--f-display); font-size: clamp(14px, 1.6vw, 17px); font-weight: 600;
  letter-spacing: .02em; color: var(--ink-3); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero-sub::after { content: ""; flex: 1; max-width: 64px; height: 1px; background: var(--line-strong); }
.hero-lead { font-size: 16.5px; color: var(--ink-2); margin: 0 0 30px; max-width: 33em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 14.5px; font-weight: 700;
  padding: 13px 30px; border-radius: 999px; border: 1px solid var(--accent);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--r-md); aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.hero-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); z-index: -1; }
.hero-visual::after { content: ""; position: absolute; width: 72px; height: 72px; right: -14px; top: -14px; background: var(--accent); opacity: .08; border-radius: 50%; }

/* ---------- section 基本 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-head { margin-bottom: 40px; }
.section-eyebrow { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; line-height: 1.4; margin: 0; letter-spacing: .01em; }
.section-sub {
  font-family: var(--f-display); font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 10px 0 0;
  display: flex; align-items: center; gap: 10px;
}
.section-sub::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-lead { font-size: 15.5px; color: var(--ink-2); max-width: 42em; margin: 16px 0 0; }

/* ---------- philosophy ---------- */
.philosophy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.philosophy-visual img { border-radius: var(--r-md); aspect-ratio: 3/4; object-fit: cover; }
.philosophy-visual { position: relative; }
.philosophy-visual::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; background: var(--accent-tint); border-radius: var(--r-md); z-index: -1; }
.philosophy-body .section-sub { margin-bottom: 24px; text-transform: none; letter-spacing: .03em; font-size: 13.5px; }
.philosophy-body p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 18px; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-md); background: var(--bg); padding: 30px 26px; }
.service-num { font-family: var(--f-display); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 12px; }
.service-card h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.service-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.works-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 26px; background: var(--bg); }
.works-card h3 { font-family: var(--f-display); font-size: 15px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.works-card h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
.works-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 2.1; }

/* ---------- founder ---------- */
.founder-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.founder-visual img { border-radius: var(--r-md); aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.founder-visual { position: relative; }
.founder-visual::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 96px; height: 96px; border: 2px solid var(--accent); opacity: .25; border-radius: var(--r-md); z-index: -1; }
.founder-name { font-family: var(--f-display); font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.founder-role { font-size: 13.5px; color: var(--ink-3); margin: 0 0 20px; }
.founder-bio p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.founder-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  font-family: var(--f-display); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

/* ---------- company ---------- */
.company-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.company-table th, .company-table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.company-table th { width: 160px; font-family: var(--f-display); font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.company-table td { color: var(--ink-2); }

/* ---------- contact ---------- */
.section-contact { background: var(--ink-block); color: #fff; text-align: center; }
.section-contact .section-sub { justify-content: center; color: #9db4d4; }
.section-contact .section-sub::before { background: #9db4d4; }
.section-contact .section-title { color: #fff; }
.section-contact p { color: rgba(255, 255, 255, .75); font-size: 15px; max-width: 36em; margin: 18px auto 32px; }
.section-contact .btn-primary { border-color: #fff; background: #fff; color: var(--ink); }
.section-contact .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-block); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-family: var(--f-display); font-weight: 800; color: #fff; font-size: 15px; }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a { font-size: 12.5px; color: rgba(255, 255, 255, .6); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { flex-basis: 100%; font-size: 11.5px; letter-spacing: .04em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .philosophy-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-visual { max-width: 300px; }
  .global-nav { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 56px; }
}

/* ---------- WPテーマ用ユーティリティ ---------- */
.founder-name-en { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.link-accent { color: var(--accent); }

/* =============================================================
   Forks Tokyo 2.0 — multi-page and block editor
   ============================================================= */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px; background: #fff; color: var(--ink); z-index: 1000; }
.site-main:not(.front-page) { padding-top: var(--header-h); min-height: 70vh; }
.content-container { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 88px; }
.article-container { max-width: 790px; margin: 0 auto; padding: 72px 24px 96px; }

/* Navigation */
.global-nav .menu { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; }
.global-nav .menu > li { position: relative; }
.global-nav .menu a { display: block; }
.global-nav .sub-menu { display: none; position: absolute; left: -18px; top: calc(100% + 10px); min-width: 250px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 14px 36px rgba(15,17,21,.1); }
.global-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.global-nav .menu-item-has-children:hover > .sub-menu,
.global-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.global-nav .sub-menu a { padding: 9px 10px; line-height: 1.45; }
.global-nav .sub-menu a::after { display: none; }
.global-nav .sub-menu a:hover { background: var(--surface); border-radius: var(--r-sm); }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.custom-logo { max-height: 42px; width: auto; }

/* Editable home sections */
.front-page-content > .wp-block-group { margin: 0; }
.front-page-content > .wp-block-group > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.home-hero { padding: calc(var(--header-h) + 68px) 24px 72px; overflow: hidden; }
.page-hero, .profile-hero { padding: 68px 24px 72px; overflow: hidden; }
.home-hero > .wp-block-columns, .profile-hero > .wp-block-columns { max-width: var(--maxw); gap: 54px; margin: 0 auto; }
.home-hero h1, .page-hero h1, .profile-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.28; letter-spacing: .01em; margin: 0 0 20px; }
.home-hero h1 strong { color: var(--accent); }
.home-hero .lead, .page-hero .lead, .profile-hero .lead { max-width: 38em; }
.home-hero figure, .profile-hero figure { margin: 0; position: relative; }
.home-hero img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); filter: grayscale(1) contrast(1.03); }
.profile-hero img { aspect-ratio: 3/2; object-fit: cover; object-position: center; border-radius: var(--r-md); }
.profile-hero h1 { font-size: clamp(32px, 3.5vw, 42px); }
.eyebrow { font-family: var(--f-display); font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); margin: 0 0 12px; text-transform: uppercase; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.8; color: var(--ink-2); }
.content-section { padding: 78px 24px; }
.content-section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.content-section > .wp-block-columns { max-width: var(--maxw); gap: 26px; }
.content-section > h2 { font-size: clamp(27px, 3.8vw, 40px); line-height: 1.4; margin-top: 0; }
.section-alt { background: var(--surface); }
.content-section .wp-block-column { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-md); background: var(--bg); padding: 28px 26px; }
.content-section .wp-block-column h2, .content-section .wp-block-column h3 { line-height: 1.45; margin-top: 0; }
.content-section a, .entry-content a, .article-content a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.profile-feature .wp-block-column { border: 0; background: transparent; padding: 0; }
.profile-feature img { border-radius: var(--r-md); aspect-ratio: 3/2; object-fit: cover; }
.contact-band { padding: 80px 24px; text-align: center; background: var(--ink-block); color: #fff; }
.contact-band > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.contact-band h2 { font-size: clamp(26px, 4vw, 40px); }
.contact-band p { color: rgba(255,255,255,.72); }
.contact-band .wp-element-button { background: #fff; color: var(--ink); }

/* Core blocks */
.wp-block-buttons { margin-top: 28px; gap: 12px; }
.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; border: 1px solid var(--accent); border-radius: 999px; padding: 12px 25px; background: var(--accent); color: #fff !important; font-family: var(--f-display); font-weight: 700; text-decoration: none !important; }
.is-style-outline .wp-block-button__link { color: var(--accent) !important; background: transparent; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { padding: 15px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table th { width: 170px; color: var(--ink-3); }
.entry-content > h1:first-child { font-size: clamp(34px, 5vw, 54px); margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; font-size: clamp(24px, 3vw, 32px); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.page-id-0 .entry-content { max-width: 780px; }

/* Cards and archives */
.post-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 34px; }
.post-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 23px 21px; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); font-family: var(--f-display); letter-spacing: .02em; }
.post-card-meta span { color: var(--accent); font-weight: 700; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.55; margin: 10px 0; }
.post-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.text-link { margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 700; }
.empty-message { padding: 30px; border: 1px dashed var(--line-strong); color: var(--ink-3); text-align: center; background: #fff; }
.archive-header { max-width: 760px; margin-bottom: 42px; }
.archive-header h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 12px; }
.archive-description { color: var(--ink-2); font-size: 17px; }
.archive-cta { margin-top: 62px; padding: 40px; background: var(--surface); text-align: center; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.nav-links .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }

/* Article */
.article-kicker a { color: var(--accent); font-family: var(--f-display); font-size: 13px; font-weight: 700; }
.article-header h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.35; margin: 12px 0 18px; }
.article-meta { display: flex; gap: 16px; color: var(--ink-3); font-size: 13px; }
.article-featured { margin: 34px 0; }
.article-featured img { width: 100%; border-radius: var(--r-md); }
.prose { font-size: 17px; line-height: 2; }
.prose h2 { margin-top: 2.4em; line-height: 1.5; }
.prose h3 { margin-top: 2em; }
.article-footer { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-tax { margin: 8px 0; font-size: 13px; }
.article-tax strong { margin-right: 10px; color: var(--ink-3); }
.article-tax a { color: var(--accent); }
.author-box { margin-top: 28px; padding: 25px; background: var(--surface); border-left: 3px solid var(--accent); }
.author-box p { font-size: 14px; color: var(--ink-2); }
.author-box a { color: var(--accent); font-weight: 700; }

/* Contact */
.forks-contact-wrap { max-width: 780px; margin-top: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid p { margin: 0; }
.form-wide { grid-column: 1 / -1; }
.forks-contact-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.forks-contact-form label span { color: #a33838; }
.forks-contact-form input[type="text"], .forks-contact-form input[type="email"], .forks-contact-form input[type="url"], .forks-contact-form select, .forks-contact-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; }
.forks-contact-form textarea { resize: vertical; }
.forks-contact-form input:focus, .forks-contact-form select:focus, .forks-contact-form textarea:focus { outline: 2px solid rgba(31,58,95,.25); border-color: var(--accent); }
.form-consent label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.form-consent input { margin-top: 7px; }
.form-honeypot { position: absolute !important; left: -9999px !important; }
.forks-contact-form .btn { margin-top: 28px; cursor: pointer; }
.form-notice { padding: 15px 18px; margin-bottom: 24px; border-radius: var(--r-sm); }
.form-notice.success { color: #1f5c36; background: #edf8f0; border: 1px solid #b9dfc4; }
.form-notice.error { color: #833; background: #fff0f0; border: 1px solid #e6bcbc; }

/* Footer v2 */
.footer-inner { align-items: flex-start; padding-top: 46px; padding-bottom: 38px; }
.footer-intro { max-width: 380px; }
.footer-intro p { margin: 8px 0 0; font-size: 13px; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 7px 25px; }
.footer-external { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.footer-links a, .footer-external a { color: rgba(255,255,255,.65); }
.footer-links a:hover, .footer-external a:hover { color: #fff; }
.footer-copy { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.error-main { padding: calc(var(--header-h) + 60px) 0 80px; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 32px; }
  .header-inner { gap: 12px; }
  .mobile-nav { display: block; margin-left: auto; }
  .global-nav { display: none; }
  .mobile-navigation { position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto; margin: 0; padding: 18px 24px 28px; background: #fff; border-bottom: 1px solid var(--line); }
  .admin-bar .mobile-navigation { top: var(--header-h); max-height: calc(100vh - var(--header-h) - 32px); }
  .mobile-navigation .menu, .mobile-navigation .sub-menu { list-style: none; margin: 0; padding: 0; }
  .mobile-navigation .menu > li { border-bottom: 1px solid var(--line); }
  .mobile-navigation a { display: block; padding: 12px 0; font-family: var(--f-header-typewriter); font-size: 14px; font-weight: 700; }
  .mobile-navigation .sub-menu { padding: 0 0 8px 18px; }
  .mobile-navigation .sub-menu a { padding: 7px 0; font-size: 13px; color: var(--ink-2); }
  .header-cta { padding: 8px 15px; }
  .home-hero > .wp-block-columns, .profile-hero > .wp-block-columns { gap: 32px; }
  .post-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-section .wp-block-columns { flex-wrap: wrap !important; }
  .content-section .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-navigation { top: var(--header-h); max-height: calc(100vh - var(--header-h) - 46px); }
}

@media (max-width: 640px) {
  .header-inner { padding-inline: 16px; gap: 8px; }
  .brand { min-height: 34px; padding-left: 42px; font-size: 15px; }
  .brand::before { width: 34px; height: 34px; }
  .brand small { font-size: 9px; letter-spacing: .1em; }
  .mobile-nav summary { width: 38px; height: 38px; padding: 8px; }
  .header-cta { padding: 7px 9px; font-size: 11px; }
  .content-container, .article-container { padding-top: 48px; padding-bottom: 64px; }
  .home-hero { padding-top: calc(var(--header-h) + 42px); padding-bottom: 50px; }
  .page-hero, .profile-hero { padding-top: 42px; padding-bottom: 50px; }
  .home-hero > .wp-block-columns, .profile-hero > .wp-block-columns { display: flex; flex-direction: column-reverse; }
  .profile-hero > .wp-block-columns { flex-direction: column; }
  .content-section { padding: 56px 20px; }
  .post-card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .wp-block-table { overflow-x: auto; }
  .wp-block-table th { width: 115px; }
  .footer-links { margin-left: 0; flex-basis: 100%; }
}
