/*
Theme Name: Amenochi Journal
Theme URI: https://example.com/amenochi-journal
Author: Amenochi
Description: 雨上がりの静けさと、暮らしの小さな発見を綴る「あめのち」のためのブログテーマ。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: amenochi
*/

:root {
  --ink: #283737;
  --muted: #687878;
  --rain: #7895a0;
  --rain-dark: #526f79;
  --sky: #dce9e9;
  --mist: #f3f6f2;
  --paper: #fbfaf5;
  --sun: #e5b76b;
  --line: rgba(72, 102, 105, .18);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --content: 1160px;
  --reading: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .045em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--rain); text-underline-offset: .25em; }
a:hover { color: var(--rain-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link:focus { position:fixed; z-index:9999; top:1rem; left:1rem; width:auto; height:auto; padding:.7rem 1rem; clip:auto; background:#fff; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(251,250,245,.92); }
.header-inner { max-width: var(--content); margin: auto; min-height: 112px; padding: 24px 28px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.brand { display:flex; align-items:center; gap:15px; text-decoration:none; }
.brand-mark { position:relative; width:44px; height:44px; border:1px solid var(--rain); border-radius:50% 50% 52% 48%; }
.brand-mark::before { content:""; position:absolute; width:14px; height:20px; left:8px; top:9px; border-radius: 60% 40% 55% 45%; background:var(--sky); transform:rotate(25deg); }
.brand-mark::after { content:""; position:absolute; width:10px; height:10px; right:8px; bottom:8px; border-radius:50%; background:var(--sun); }
.brand-copy { display:grid; line-height:1.2; }
.site-title { font-family:var(--serif); font-size:1.5rem; letter-spacing:.2em; }
.site-tagline { margin-top:.45rem; color:var(--muted); font-size:.67rem; letter-spacing:.15em; }
.custom-logo { max-height:58px; width:auto; }
.nav-list { display:flex; align-items:center; gap:2rem; margin:0; padding:0; list-style:none; font-size:.8rem; letter-spacing:.12em; }
.nav-list a { text-decoration:none; }
.nav-list a::after { content:""; display:block; width:0; height:1px; background:var(--rain); transition:width .25s; }
.nav-list a:hover::after, .current-menu-item > a::after { width:100%; }
.menu-toggle { display:none; border:0; background:none; color:var(--ink); padding:.5rem; }

.hero { position:relative; min-height:510px; overflow:hidden; background:linear-gradient(155deg, #edf3f0 0%, #dce9e9 58%, #f8ead2 115%); }
.hero::before { content:""; position:absolute; inset:0; opacity:.22; background-image:radial-gradient(ellipse at 20% 10%, #fff 0 1px, transparent 2px),radial-gradient(ellipse at 70% 30%, #fff 0 1px, transparent 2px); background-size:43px 71px, 61px 89px; transform:rotate(-8deg) scale(1.2); }
.hero::after { content:""; position:absolute; width:430px; height:430px; right:-80px; bottom:-200px; border-radius:50%; background:rgba(255,241,201,.62); box-shadow:0 0 80px rgba(242,205,139,.35); }
.hero-inner { position:relative; z-index:1; max-width:var(--content); margin:auto; padding:100px 28px 86px; }
.eyebrow { color:var(--rain-dark); font-size:.7rem; font-weight:600; letter-spacing:.26em; text-transform:uppercase; }
.hero-title { margin:.5rem 0 1.5rem; font-family:var(--serif); font-weight:400; font-size:clamp(2.5rem, 6vw, 5.5rem); line-height:1.35; letter-spacing:.12em; }
.hero-title span { display:block; margin-left:clamp(3rem, 16vw, 12rem); color:var(--rain-dark); }
.hero-copy { max-width:540px; margin-left:clamp(1rem, 8vw, 6rem); color:#536767; font-family:var(--serif); }
.drop { display:inline-block; width:7px; height:10px; margin:0 .5rem; border-radius:60% 40% 55% 45%; background:var(--rain); transform:rotate(25deg); }

.wrap { max-width:var(--content); margin:auto; padding:80px 28px 110px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:42px; }
.section-title { margin:0; font-family:var(--serif); font-size:1.8rem; font-weight:400; letter-spacing:.14em; }
.section-title small { display:block; margin-bottom:.35rem; color:var(--rain); font-family:var(--sans); font-size:.65rem; letter-spacing:.2em; text-transform:uppercase; }
.text-link { color:var(--muted); font-size:.78rem; }
.post-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:40px 28px; }
.post-card { min-width:0; }
.card-image { display:block; position:relative; aspect-ratio:4/3; overflow:hidden; margin-bottom:22px; background:var(--sky); text-decoration:none; }
.card-image img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.post-card:hover .card-image img { transform:scale(1.025); }
.image-placeholder { width:100%; height:100%; display:grid; place-items:center; background:linear-gradient(145deg, #e5eeee, #f1ecdf); }
.image-placeholder .brand-mark { transform:scale(1.35); opacity:.7; }
.post-meta { display:flex; gap:14px; align-items:center; margin-bottom:7px; color:var(--muted); font-size:.68rem; letter-spacing:.1em; }
.post-category a { color:var(--rain-dark); text-decoration:none; }
.card-title { margin:0 0 10px; font-family:var(--serif); font-size:1.22rem; font-weight:500; line-height:1.65; letter-spacing:.08em; }
.card-title a { text-decoration:none; }
.card-excerpt { margin:0; color:var(--muted); font-size:.82rem; line-height:1.85; }

.content-layout { display:grid; grid-template-columns:minmax(0, 1fr) 280px; gap:80px; align-items:start; }
.archive-header { margin-bottom:50px; padding-bottom:25px; border-bottom:1px solid var(--line); }
.archive-title { margin:.3rem 0; font-family:var(--serif); font-size:2rem; font-weight:400; }
.archive-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:48px 28px; }
.sidebar { position:sticky; top:30px; }
.widget { margin-bottom:45px; }
.widget-title { margin:0 0 18px; padding-bottom:10px; border-bottom:1px solid var(--line); font-family:var(--serif); font-size:.95rem; font-weight:500; letter-spacing:.14em; }
.widget ul { margin:0; padding:0; list-style:none; font-size:.8rem; }
.widget li { padding:.5rem 0; border-bottom:1px dotted var(--line); }
.widget a { text-decoration:none; }
.profile-card { padding:28px; background:#eef2ee; text-align:center; }
.profile-avatar { width:88px; height:88px; margin:0 auto 18px; overflow:hidden; border-radius:50%; background:var(--sky); }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-name { margin:0 0 10px; font-family:var(--serif); letter-spacing:.12em; }
.profile-copy { margin:0; color:var(--muted); font-size:.75rem; line-height:1.8; text-align:left; }

.article { max-width:var(--reading); margin:auto; }
.article-header { margin-bottom:45px; text-align:center; }
.article-title { margin:12px 0 18px; font-family:var(--serif); font-size:clamp(1.8rem, 4vw, 2.7rem); font-weight:400; line-height:1.55; letter-spacing:.1em; }
.article-thumbnail { margin:0 0 60px; }
.article-body { font-family:var(--serif); font-size:1.02rem; line-height:2.15; }
.article-body > * { margin-top:0; margin-bottom:1.8em; }
.article-body h2 { margin-top:3em; padding-bottom:.5em; border-bottom:1px solid var(--line); font-size:1.55rem; font-weight:500; }
.article-body h3 { margin-top:2.4em; font-size:1.25rem; font-weight:500; }
.article-body blockquote { margin:2.5em 0; padding:1.5em 2em; border-left:2px solid var(--rain); color:var(--muted); background:var(--mist); }
.article-body a { color:var(--rain-dark); }
.article-body img { margin:2.5em auto; }
.article-footer { margin-top:60px; padding-top:25px; border-top:1px solid var(--line); font-size:.78rem; color:var(--muted); }
.post-nav { display:grid; grid-template-columns:1fr 1fr; gap:25px; max-width:var(--reading); margin:70px auto 0; }
.post-nav a { display:block; padding:20px; border:1px solid var(--line); text-decoration:none; font-family:var(--serif); font-size:.85rem; }
.nav-next { text-align:right; }

.pagination { margin-top:60px; }
.pagination .nav-links { display:flex; justify-content:center; gap:8px; }
.page-numbers { display:grid; min-width:38px; min-height:38px; place-items:center; border:1px solid var(--line); text-decoration:none; font-size:.75rem; }
.page-numbers.current { color:#fff; background:var(--rain-dark); border-color:var(--rain-dark); }
.search-form { display:flex; }
.search-field { min-width:0; width:100%; border:1px solid var(--line); background:#fff; padding:.65rem .8rem; }
.search-submit { border:0; background:var(--rain-dark); color:#fff; padding:.65rem 1rem; }
.comments-area { max-width:var(--reading); margin:70px auto 0; padding-top:40px; border-top:1px solid var(--line); }
.comment-list { padding-left:1.4rem; }
textarea, input[type="text"], input[type="email"], input[type="url"] { width:100%; border:1px solid var(--line); background:#fff; padding:.75rem; }
.submit { border:0; background:var(--rain-dark); color:#fff; padding:.7rem 1.5rem; }

.site-footer { position:relative; overflow:hidden; color:#e8eeee; background:#344b4e; }
.footer-inner { max-width:var(--content); margin:auto; padding:68px 28px 28px; }
.footer-top { display:flex; justify-content:space-between; gap:50px; padding-bottom:60px; }
.footer-message { max-width:450px; font-family:var(--serif); font-size:1.25rem; line-height:2; letter-spacing:.12em; }
.footer-menu { display:flex; flex-wrap:wrap; gap:12px 28px; margin:0; padding:0; list-style:none; font-size:.75rem; }
.footer-menu a { text-decoration:none; }
.copyright { padding-top:22px; border-top:1px solid rgba(255,255,255,.15); color:#afc0c0; font-size:.65rem; letter-spacing:.13em; }
.empty-state { padding:80px 0; text-align:center; }

@media (max-width: 900px) {
  .menu-toggle { display:block; }
  .main-navigation { display:none; position:absolute; top:100%; left:0; right:0; padding:20px 28px; border-bottom:1px solid var(--line); background:var(--paper); }
  .main-navigation.is-open { display:block; }
  .nav-list { align-items:stretch; flex-direction:column; gap:10px; }
  .post-grid { grid-template-columns:repeat(2, 1fr); }
  .content-layout { grid-template-columns:1fr; gap:70px; }
  .sidebar { position:static; display:grid; grid-template-columns:repeat(2, 1fr); gap:28px; }
}
@media (max-width: 620px) {
  body { font-size:15px; }
  .header-inner { min-height:88px; padding:18px 20px; }
  .site-tagline { display:none; }
  .hero { min-height:430px; }
  .hero-inner { padding:80px 22px 60px; }
  .hero-title { font-size:2.55rem; }
  .hero-title span { margin-left:2.5rem; }
  .hero-copy { margin-left:1.5rem; }
  .wrap { padding:60px 20px 85px; }
  .post-grid, .archive-grid, .sidebar { grid-template-columns:1fr; }
  .post-grid { gap:48px; }
  .section-head { align-items:start; flex-direction:column; }
  .article-body { font-size:1rem; }
  .footer-top { flex-direction:column; }
  .post-nav { grid-template-columns:1fr; }
}

/* Amenochi official visual language — blog adaptation */
:root {
  --blue: #0877e8;
  --blue2: #38c9ff;
  --orange: #ff8a45;
  --orange2: #ffc36d;
  --navy: #142033;
  --sky: #e5f5ff;
  --paper: #fff;
  --ink: #142033;
  --muted: #5f6f85;
  --line: rgba(20,32,51,.11);
  --grad-main: linear-gradient(110deg,#0877e8 0%,#38c9ff 45%,#ff8a45 100%);
  --sans: "Noto Sans JP", "Yu Gothic", sans-serif;
  --serif: "Noto Sans JP", "Yu Gothic", sans-serif;
}

body {
  color: var(--navy);
  background: #fff;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.85;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 9% 16%, rgba(80,201,255,.22), transparent 19%),
    radial-gradient(circle at 86% 10%, rgba(255,150,95,.18), transparent 18%),
    linear-gradient(90deg, rgba(8,119,232,.04) 1px, transparent 1px),
    linear-gradient(rgba(8,119,232,.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 28px));
  min-height: 92px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(20,32,51,.12);
  backdrop-filter: blur(18px);
}
.header-inner { width: 100%; min-height: 92px; padding: 10px 18px 10px 26px; }
.brand img, .custom-logo { width: auto; height: 72px; max-height: 72px; }
.nav-list { gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: 0; }
.nav-list a { display: inline-flex; padding: 9px 14px; border-radius: 999px; color: #12314f; }
.nav-list a::after { display: none; }
.nav-list a:hover, .current-menu-item > a { color: var(--blue); background: var(--sky); }
.nav-list li:last-child a { color: #fff; background: var(--grad-main); }

.hero.blog-hero { position: relative; height: 460px; min-height: 0; padding: 126px 18px 52px; display: grid; place-items: center; overflow: hidden; background: #63c6eb; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08); }
.hero-pattern { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,rgba(11,58,92,.58),rgba(11,58,92,.20)),repeating-linear-gradient(135deg,rgba(255,255,255,.10) 0 10px,transparent 10px 34px); }
.hero.blog-hero::before, .hero.blog-hero::after { content:""; position:absolute; z-index:2; pointer-events:none; background:rgba(255,255,255,.22); }
.hero.blog-hero::before { left:7vw; top:140px; width:110px; height:110px; border-radius:36px; transform:rotate(16deg); animation:ameno-shape-a 7s ease-in-out infinite alternate; }
.hero.blog-hero::after { right:8vw; bottom:52px; width:180px; height:66px; border-radius:999px; transform:rotate(-18deg); animation:ameno-shape-b 9s ease-in-out infinite alternate; }
.hero-inner { position: relative; z-index: 3; width: min(1180px,100%); padding: 0; color: #fff; text-align: center; }
.hero-label { display: inline-flex; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero-title { margin: 0 auto; color:#fff; font-family:var(--sans); font-size:clamp(30px,4.3vw,54px); font-weight:700; line-height:1.42; letter-spacing:.02em; }
.hero-title span { display:block; margin:0; color:#fff; }
.hero-title::after { content:""; display:block; width:min(430px,64vw); height:6px; margin:18px auto 0; border-radius:999px; background:var(--grad-main); animation:ameno-line 1.2s .3s both; }
.hero-lead { width:min(680px,100%); margin:16px auto 0; color:#fff; font-size:clamp(14px,1.25vw,17px); font-weight:700; line-height:1.85; text-shadow:0 2px 14px rgba(0,0,0,.18); }
.character-layer { position:absolute; z-index:4; top:405px; right:max(-50px,calc(50% - 710px)); width:clamp(190px,20vw,300px); pointer-events:none; }
.character-layer img { width:100%; filter:drop-shadow(0 20px 28px rgba(20,32,51,.14)); }

.wrap { width:min(1180px,calc(100% - 32px)); padding-top:72px; }
.front-page .wrap, body.home .wrap { position:relative; overflow:hidden; margin-top:28px; padding:76px clamp(24px,5vw,70px); border-radius:18px; background:rgba(255,255,255,.96); }
.front-page .wrap::before, body.home .wrap::before { content:""; position:absolute; z-index:0; left:-22vw; top:20%; width:min(900px,78vw); height:340px; border-radius:999px; background:#e5f5ff; animation:capsule-drift 10s ease-in-out infinite alternate; }
.front-page .wrap > *, body.home .wrap > * { position:relative; z-index:1; }
.section-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:end; margin-bottom:42px; }
.section-title { color:var(--navy); font-family:var(--sans); font-size:clamp(32px,5vw,64px); font-weight:900; line-height:1.2; letter-spacing:.01em; }
.section-title small, .eyebrow { margin-bottom:8px; color:var(--blue); font-family:var(--sans); font-size:13px; font-weight:900; letter-spacing:.18em; }
.text-link { display:inline-flex; align-items:center; gap:12px; color:var(--blue); font-size:14px; font-weight:900; text-decoration:none; }
.text-link::after { content:""; width:58px; height:3px; border-radius:99px; background:var(--blue); }

.post-grid, .archive-grid { gap:20px; }
.post-card { position:relative; padding:18px; border-radius:24px; background:#fff; box-shadow:0 12px 30px rgba(20,32,51,.08); transition:transform .22s,box-shadow .22s; }
.post-card:hover { transform:translateY(-8px); box-shadow:0 19px 38px rgba(20,32,51,.13); }
.card-image { margin-bottom:18px; border-radius:18px; background:var(--sky); }
.card-image img { width:100%; height:100%; object-fit:cover; }
.image-placeholder { background:linear-gradient(135deg,#e5f5ff,#fff0e7); }
.image-placeholder img { width:min(210px,70%); height:auto; object-fit:contain; }
.post-meta { margin-bottom:8px; color:#36516a; font-size:12px; font-weight:900; }
.post-category a { display:inline-flex; padding:2px 10px; border-radius:999px; color:var(--navy); background:#fff06d; }
.card-title { color:var(--navy); font-family:var(--sans); font-size:21px; font-weight:900; line-height:1.55; }
.card-excerpt { color:#34445a; font-size:14px; font-weight:700; }

.content-layout { gap:54px; }
.archive-header, .page-title { position:relative; overflow:hidden; padding:42px; border:0; border-radius:18px; background:#fff; box-shadow:0 12px 34px rgba(20,32,51,.07); }
.archive-header::after { content:""; position:absolute; right:-50px; bottom:-54px; width:180px; height:100px; border-radius:999px; background:linear-gradient(135deg,var(--blue2),var(--orange)); opacity:.35; transform:rotate(-14deg); }
.archive-title { color:var(--navy); font-family:var(--sans); font-size:clamp(36px,5vw,64px); font-weight:900; }
.sidebar { top:135px; }
.profile-card { padding:24px; border-radius:24px; background:#fff; box-shadow:0 12px 30px rgba(20,32,51,.08); }
.profile-avatar { width:150px; height:150px; background:var(--sky); border-radius:50%; }
.profile-name { color:var(--navy); font-family:var(--sans); font-size:19px; font-weight:900; }
.profile-copy { color:#34445a; font-weight:700; }
.widget { padding:22px; border-radius:18px; background:rgba(255,255,255,.88); }
.widget-title { color:var(--blue); font-family:var(--sans); font-weight:900; }

.article { max-width:920px; padding:clamp(24px,5vw,64px); border-radius:24px; background:#fff; box-shadow:0 16px 45px rgba(20,32,51,.08); }
.article-header { text-align:left; }
.article-title { color:var(--navy); font-family:var(--sans); font-size:clamp(32px,5vw,64px); font-weight:900; line-height:1.35; letter-spacing:.01em; }
.article-thumbnail img, .article-thumbnail { border-radius:30px; }
.article-body { color:#24384d; font-family:var(--sans); font-size:clamp(16px,1.3vw,19px); font-weight:600; line-height:2.15; }
.article-body h2, .article-body h3 { color:var(--navy); font-weight:900; }
.article-body h2 { border:0; padding:18px 0 14px; background:linear-gradient(90deg,var(--sky),transparent); }
.article-body blockquote { border-left:6px solid var(--orange); border-radius:0 18px 18px 0; background:#f4fbff; }
.article-body img { border-radius:24px; }
.post-nav a, .page-numbers { border:0; border-radius:999px; background:#fff; box-shadow:0 8px 22px rgba(20,32,51,.07); font-weight:800; }
.page-numbers.current, .submit, .search-submit { background:var(--grad-main); }

.site-footer { margin-top:96px; color:#fff; background:var(--navy); }
.footer-inner { padding:72px max(28px,calc((100vw - 1120px)/2)) 34px; }
.footer-top { display:grid; grid-template-columns:minmax(220px,420px) minmax(280px,1fr); align-items:center; }
.footer-brand { display:grid; gap:12px; }
.footer-brand img { width:min(340px,100%); }
.footer-brand p { margin:0; font-weight:800; }
.footer-menu { justify-content:flex-end; }
.footer-menu a { display:inline-flex; padding:7px 14px; border-radius:999px; background:rgba(255,255,255,.1); font-weight:900; }
.copyright { color:rgba(255,255,255,.65); }
.reveal { opacity:0; transform:translateY(28px); transition:opacity .8s ease,transform .8s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@keyframes ameno-shape-a { to { transform:translate(28px,18px) rotate(30deg); border-radius:70px; } }
@keyframes ameno-shape-b { to { transform:translate(-34px,-20px) rotate(-5deg); width:260px; } }
@keyframes ameno-line { from { transform:scaleX(0); opacity:0; } to { transform:scaleX(1); opacity:1; } }
@keyframes capsule-drift { to { transform:translate(48px,22px); } }

@media (max-width: 900px) {
  .site-header { top:10px; min-height:68px; border-radius:20px; }
  .header-inner { min-height:68px; padding:9px 10px 9px 16px; }
  .brand img, .custom-logo { height:48px; max-height:48px; max-width:240px; }
  .menu-toggle { display:grid; width:48px; height:48px; margin-left:auto; place-content:center; gap:5px; border-radius:50%; background:var(--blue); }
  .menu-toggle span { display:block; width:21px; height:2px; border-radius:99px; background:#fff; transition:transform .25s,opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .main-navigation { top:calc(100% + 8px); padding:18px; border:0; border-radius:20px; background:#fff; box-shadow:0 18px 34px rgba(20,32,51,.14); }
  .nav-list a { width:100%; }
  .character-layer { display:none; }
  .footer-top { grid-template-columns:1fr; text-align:center; justify-items:center; }
  .footer-brand { justify-items:center; }
  .footer-menu { justify-content:center; }
}
@media (max-width: 620px) {
  .hero.blog-hero { height:340px; min-height:0; padding:96px 16px 30px; }
  .hero-label { margin-bottom:10px; }
  .hero-title { font-size:clamp(25px,8vw,36px); line-height:1.42; }
  .hero-title::after { height:5px; margin-top:13px; }
  .hero-lead { margin-top:12px; font-size:12px; line-height:1.7; }
  .hero.blog-hero::before { top:105px; left:-18px; width:74px; height:74px; border-radius:24px; }
  .hero.blog-hero::after { right:-24px; bottom:30px; width:120px; height:44px; }
  .section-head { grid-template-columns:1fr; }
  .front-page .wrap, body.home .wrap { margin-top:18px; padding:58px 20px; }
  .archive-header { padding:28px 22px; }
  .article { padding:28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; }
  .reveal { opacity:1; transform:none; }
}

/* Blog information architecture inspired by full-featured publishing themes */
.breadcrumbs { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 24px; color:var(--muted); font-size:12px; font-weight:700; }
.breadcrumbs a { color:var(--blue); text-decoration:none; }
.breadcrumbs span[aria-current="page"] { max-width:44ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.main-column { min-width:0; }
.single-layout { grid-template-columns:minmax(0,820px) 280px; gap:48px; }
.single-layout .article { max-width:none; }
.reading-time { display:inline-flex; margin-top:4px; padding:5px 12px; border-radius:999px; color:#36516a; background:var(--sky); font-size:12px; font-weight:800; }
.card-footer { display:flex; justify-content:space-between; gap:12px; margin-top:18px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; font-weight:800; }

.table-of-contents { margin:38px 0; overflow:hidden; border-radius:18px; background:#f3f8fb; box-shadow:inset 5px 0 0 var(--blue); }
.toc-toggle { display:flex; width:100%; align-items:center; justify-content:space-between; padding:20px 24px; border:0; color:var(--navy); background:transparent; text-align:left; cursor:pointer; }
.toc-toggle span { font-size:19px; font-weight:900; }
.toc-toggle small { display:block; color:var(--blue); font-size:10px; letter-spacing:.18em; text-transform:uppercase; }
.toc-toggle b { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; color:#fff; background:var(--blue); font-size:20px; }
.toc-list { margin:0; padding:0 28px 22px 52px; }
.toc-list li { padding:5px 0; color:#34445a; font-size:14px; font-weight:700; }
.toc-list li::marker { color:var(--blue); font-weight:900; }
.toc-list .toc-level-3 { margin-left:18px; font-size:13px; }
.toc-list a { text-decoration:none; }
.toc-list a:hover { color:var(--blue); }

.tag-list { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tag-list strong { margin-right:5px; color:var(--blue); text-transform:uppercase; }
.tag-list a { padding:4px 11px; border-radius:999px; background:var(--sky); text-decoration:none; font-weight:800; }
.share-box { margin-top:30px; padding:26px; border-radius:18px; background:#f3f6f8; }
.share-box p { margin:0 0 12px; color:var(--navy); font-weight:900; }
.share-buttons { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.share-buttons a, .share-buttons button { display:grid; min-height:43px; place-items:center; border:0; border-radius:10px; color:#fff; text-decoration:none; font-size:12px; font-weight:900; cursor:pointer; }
.share-x { background:#142033; }.share-facebook { background:#1877f2; }.share-line { background:#18a84b; }.share-buttons .copy-url { background:#687b8a; }

.author-box { display:grid; grid-template-columns:120px 1fr; gap:26px; align-items:center; margin-top:34px; padding:30px; border-radius:24px; background:linear-gradient(135deg,#e5f5ff,#fff 52%,#fff0e7); box-shadow:0 12px 34px rgba(20,32,51,.07); }
.author-avatar img { width:120px; height:120px; object-fit:cover; border:6px solid #fff; border-radius:50%; }
.author-label { color:var(--blue); font-size:11px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.author-box h2 { margin:2px 0 7px; font-size:23px; font-weight:900; }
.author-description p { margin:0 0 8px; color:#34445a; font-size:14px; font-weight:700; }
.author-box a { color:var(--blue); font-size:13px; font-weight:900; text-decoration:none; }
.related-posts { margin-top:74px; }
.related-posts .section-head { margin-bottom:26px; }
.related-posts .section-title { font-size:clamp(28px,4vw,42px); }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.related-grid .post-card { padding:13px; border-radius:18px; }
.related-grid .card-image { border-radius:12px; margin-bottom:12px; }
.related-grid .card-title { font-size:15px; }
.related-grid .card-excerpt, .related-grid .card-footer { display:none; }
.related-grid .post-meta { font-size:10px; }
.related-grid .post-meta .updated { display:none; }

.recent-widget ul { display:grid; gap:13px; }
.recent-widget li { padding:0; border:0; }
.recent-widget li a { display:grid; grid-template-columns:78px 1fr; gap:10px; align-items:center; }
.recent-widget img { width:78px; height:58px; object-fit:cover; border-radius:9px; background:var(--sky); }
.recent-widget span { min-width:0; }
.recent-widget time { display:block; color:var(--muted); font-size:10px; font-weight:800; }
.recent-widget strong { display:-webkit-box; overflow:hidden; color:var(--navy); font-size:12px; font-weight:900; line-height:1.5; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.home-more { display:grid; place-items:center; margin-top:44px; }
.big-button { display:inline-flex; align-items:center; gap:24px; min-height:58px; padding:0 28px; border-radius:999px; color:#fff; background:var(--grad-main); box-shadow:0 12px 26px rgba(8,119,232,.22); text-decoration:none; font-weight:900; transition:transform .2s; }
.big-button:hover { color:#fff; transform:translateY(-4px); }
.big-button span { font-size:21px; }
.comments-area { padding:34px; border:0; border-radius:24px; background:#fff; box-shadow:0 12px 34px rgba(20,32,51,.07); }

@media (max-width: 1060px) {
  .single-layout { grid-template-columns:minmax(0,1fr) 250px; gap:28px; }
  .single-layout .profile-avatar { width:110px; height:110px; }
}
@media (max-width: 900px) {
  .single-layout { grid-template-columns:1fr; }
  .single-layout .sidebar { display:grid; }
  .related-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 620px) {
  .breadcrumbs { margin-left:4px; }
  .share-buttons { grid-template-columns:repeat(2,1fr); }
  .author-box { grid-template-columns:1fr; text-align:center; }
  .author-avatar { display:grid; place-items:center; }
  .related-grid { grid-template-columns:1fr; }
  .related-grid .post-card { display:grid; grid-template-columns:110px 1fr; gap:12px; }
  .related-grid .card-image { grid-row:1/4; margin:0; }
  .related-grid .post-meta { align-self:end; }
  .toc-list { padding-left:44px; }
}
