/*
Theme Name: Kinkisharyo Fleet
Description: Independent editorial theme for kinkisharyo.net.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kinki-publication-fleet
License: GPL-2.0-or-later
*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 1rem/1.6 var(--body-font, "Inter", system-ui, sans-serif);
}
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--link); }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--headline); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 4px;
}
.frame { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
    position: absolute; z-index: 3; top: 1rem; left: 1rem;
    background: var(--ink); color: var(--page); padding: .5rem 1rem;
}
.masthead { background: var(--mast); color: var(--mast-ink); border-bottom: 4px solid var(--accent); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; padding-block: .8rem; }
.masthead-title { display: flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1.05; }
.masthead-title strong, .masthead-title small { display: block; }
.masthead-title strong { font: 850 1.15rem/1.05 var(--headline); }
.masthead-title small { margin-top: .3rem; font-size: .7rem; font-weight: 650; }
.masthead-mark { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; flex: none; color: var(--badge-ink); background: var(--accent); font: 850 1rem/1 var(--headline); }
.masthead-title:hover, .masthead-nav a:hover { color: inherit; text-decoration: underline; }
.masthead-nav, .masthead-nav ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.masthead-nav ul { list-style: none; margin: 0; padding: 0; }
.masthead-nav a { font-size: .85rem; font-weight: 700; text-decoration: none; }
.site-search { display: flex; min-width: 0; }
.site-search input { min-width: 0; width: 6.5rem; padding: .3rem .5rem; background: var(--page); color: var(--ink); border: 1px solid var(--ink); }
.site-search button { border: 0; padding: .3rem .55rem; background: var(--accent); color: var(--badge-ink); font-weight: 750; cursor: pointer; }
.home, .single, .archive, .empty-state { padding-block: clamp(1.5rem, 5vw, 4.5rem); }
.kicker { font: 800 .76rem/1.2 var(--body-font, "Inter", system-ui, sans-serif); text-transform: uppercase; letter-spacing: .09em; }
.feature-copy h1 { margin-block: .8rem; font-size: clamp(2.15rem, 5.1vw, 5rem); }
.feature-deck { font-size: clamp(1rem, 1.6vw, 1.22rem); }
.feature-link { display: inline-block; margin-top: 1.4rem; font-size: .9rem; font-weight: 850; }
.feature-image img, .article-image img { width: 100%; }
.home-section { padding-top: clamp(2rem, 5vw, 4rem); }
.home-section > h2 { margin-bottom: 1.15rem; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.home-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.story { padding: 1.05rem; background: var(--surface); border-top: 2px solid var(--accent); }
.story time, .article-heading time { color: var(--muted); font-size: .78rem; }
.story h3 { margin-block: .45rem .55rem; font-size: 1.15rem; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p { color: var(--muted); font-size: .92rem; }
.article-heading { max-width: 840px; margin: 0 auto 1.5rem; }
.article-heading h1, .archive h1, .empty-state h1 { font-size: clamp(2rem, 5.4vw, 4.1rem); margin-block: .55rem .85rem; }
.article-image { max-width: 920px; margin: 0 auto 2rem; }
.article-image figcaption { margin-top: .6rem; color: var(--muted); font-size: .82rem; }
.article-body { max-width: 720px; margin-inline: auto; font-size: clamp(1rem, 2vw, 1.15rem); }
.article-body :where(p, ul, ol) { margin-block: .9rem; }
.article-body h2 { margin-block: 1.8rem .65rem; font-size: 1.55em; }
.article-body a { color: var(--link); overflow-wrap: anywhere; }
.footer-inner { display: flex; gap: .8rem; justify-content: space-between; padding-block: 1.4rem; font-size: .85rem; }
.footer-title { font-weight: 850; text-decoration: none; }
.site-footer { border-top: 2px solid var(--accent); color: var(--mast-ink); background: var(--mast); }

@media (max-width: 820px) {
    .home-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .masthead-inner { flex-wrap: wrap; gap: .75rem 1rem; }
}
@media (max-width: 540px) {
    .frame { width: calc(100% - 2rem); }
    .masthead-title { flex-basis: 100%; }
    .home-stories { grid-template-columns: minmax(0, 1fr); }
    .footer-inner { flex-direction: column; gap: .2rem; }
}
:root {
    --page: #ecf1f8; --ink: #11264b; --muted: #455775; --surface: #fff;
    --mast: #123166; --mast-ink: #fff; --accent: #ff941f; --badge-ink: #251202;
    --link: #164a9f; --headline: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
.masthead-mark { transform: skewX(-7deg); }
.fleet-lead {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: #163c78; color: #fff; border-top: .4rem solid #ff941f;
}
.fleet-lead .feature-image { align-self: center; padding: 1rem; }
.fleet-lead .feature-copy { padding: clamp(1.3rem, 4vw, 3rem); }
.fleet-lead .feature-copy h1 { font-size: clamp(2.1rem, 4vw, 3.7rem); text-transform: uppercase; }
.fleet-lead .feature-link:hover { color: #ffbb6c; }
.fleet-lead .kicker { color: #ffbb6c; }
.story { border-top: 0; border-inline-start: .23rem solid #ff941f; box-shadow: 0 .3rem 1rem #10234b18; }
.home-section > h2 { border-bottom: 1px solid #a9bad3; padding-bottom: .5rem; }
@media (max-width: 740px) { .fleet-lead { grid-template-columns: minmax(0, 1fr); } }
