/*
Theme Name: Auto Story Map
Description: A demo-first landing page and blog theme for Auto Story Map.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: auto-story-map
*/
:root {
  color-scheme: light;
  --ink: #211b35; --muted: #5d5670; --violet: #5229bf; --lavender: #eee7ff;
  --line: #e0dbed; --paper: #fbfafd; --panel: #fff;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", "Aptos", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.55 var(--sans); background: var(--paper); }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, section:focus-visible { outline: 3px solid #7f54e7; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 34px; height: 34px; display: grid; grid-template: repeat(2, 5px) / repeat(2, 5px); place-content: center; gap: 3px; background: var(--violet); border-radius: 8px; }
.brand-icon i { display: block; border-radius: 1px; background: white; }
.brand-icon i:nth-child(2) { opacity: .55; }
.brand-icon i:nth-child(3) { opacity: .75; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 620; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--violet); }
.nav .git { border: 1px solid var(--line); padding: 7px 13px; border-radius: 8px; }
.hero { background: radial-gradient(ellipse at 85% 42%, #eae1ff 0, transparent 58%), linear-gradient(155deg,#fcfbff,#f5f0ff); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(300px, .93fr) minmax(0, 1.45fr); gap: clamp(30px, 4vw, 68px); padding: 78px 0 74px; align-items: center; }
.hero-copy { padding: 0 0 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3.1rem, 4.45vw, 4.75rem); font-weight: 760; line-height: .99; letter-spacing: -.081em; }
h1 { text-wrap: balance; }
h1 span { display: block; color: var(--violet); }
.hero-copy p { max-width: 380px; margin: 25px 0 27px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.62; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; background: var(--violet); color: white; padding: 10px 16px; border-radius: 9px; font-weight: 690; border: 1px solid var(--violet); text-decoration: none; font-size: 14px; }
.cta:hover { background: #422195; }
.cta.secondary { color: var(--ink); background: #ffffffaf; border-color: #d8cdec; }
.cta.secondary:hover { background: white; border-color: var(--violet); }
.hero-copy .note { margin: 17px 0 0; font-size: 14px; }
.map-column { min-width: 0; }
.board { background: white; border: 1px solid #d7cbee; border-radius: 17px; overflow: hidden; box-shadow: 0 22px 48px #39226e1b, 0 2px 5px #39226e0d; }
.board-top { min-height: 61px; padding: 12px 17px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fefcff; }
.path { display: flex; align-items: center; gap: 8px; font: 13px/1.5 var(--mono); color: #48405d; overflow-wrap: anywhere; }
.path-icon { width: 13px; height: 15px; border: 1.5px solid #765ea4; border-radius: 3px; flex: 0 0 13px; position: relative; }
.path-icon::after { content: ""; position: absolute; width: 5px; border-bottom: 1.5px solid #765ea4; top: 5px; left: 2.5px; box-shadow: 0 3px #765ea4; }
.board-tools { display: flex; gap: 9px; align-items: center; }
.board-tools select { appearance: none; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 6px 25px 6px 9px; min-height: 34px; font-size: 14px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 11px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid #665886; border-bottom: 1.5px solid #665886; transform: rotate(45deg); pointer-events: none; }
.board-body { padding: 15px 15px 16px; }
.map-title { font-size: 18px; letter-spacing: -.035em; font-weight: 750; }
.grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 7px; }
.columns { margin-top: 12px; }
.col { padding: 6px 9px; border-radius: 6px; background: #eee7fc; color: #4c3880; font-size: 13px; line-height: 1.4; font-weight: 720; }
.lane { margin-top: 10px; border-radius: 8px; border: 1px solid #ede7f4; background: #faf9fc; padding: 7px; }
.lane-head { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.lane-title { border: 0; padding: 1px 3px; background: transparent; font-size: 14px; line-height: 1.35; text-align: left; font-weight: 720; border-radius: 4px; }
.lane-title:hover { color: var(--violet); text-decoration: underline; }
.release-version { color: #5e4792; font-family: var(--mono); font-size: 12px; margin-right: 6px; }
.state { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; line-height: 1.2; font-weight: 700; white-space: nowrap; padding: 3px 6px; border-radius: 4px; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.shipped { color: #206247; background: #e8f6ed; }
.merged { color: #59339f; background: #f0e8ff; }
.planned { color: #605376; background: #eeebf3; }
.card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; width: 100%; min-height: 61px; border-radius: 6px; border: 1px solid #e5ddef; border-left: 3px solid #c9b7eb; padding: 5px 7px; background: white; text-align: left; font-size: 13px; line-height: 1.22; font-weight: 650; }
.card[data-status="shipped"] { border-left-color: #7fc69e; }
.card[data-status="merged"] { border-left-color: #a783e7; }
.card:hover, .card.is-highlighted { background: #f5efff; border-color: #a588dc; }
.card-code { color: #655478; font: 11px/1.2 var(--mono); }
.map-caption { margin: 13px 2px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.map-caption a { color: #5229a8; }
.filter-empty { padding: 23px 4px 9px; color: var(--muted); }
.section { padding: 62px 0; scroll-margin-top: 18px; }
.section-title { font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.06; letter-spacing: -.065em; }
.section-intro { margin-top: 10px; color: var(--muted); }
.steps { display: grid; grid-template-columns: 1.17fr 1fr 1fr; gap: 18px; margin-top: 25px; }
.step { padding: 22px; border: 1px solid var(--line); background: white; border-radius: 13px; min-width: 0; }
.step h3 { font-size: 18px; font-weight: 735; letter-spacing: -.028em; }
.step p { font-size: 15px; color: var(--muted); margin-top: 7px; }
.step a { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--violet); text-underline-offset: 3px; font-weight: 670; }
.terminal { display: flex; align-items: flex-start; gap: 5px; justify-content: space-between; background: #242034; color: #f5edff; padding: 12px; border-radius: 7px; margin-top: 13px; }
.terminal code { white-space: pre-line; overflow-wrap: anywhere; font: 12px/1.65 var(--mono); min-width: 0; }
.copy { background: #3b3153; color: white; border: 1px solid #605176; border-radius: 5px; padding: 3px 7px; font-size: 12px; flex-shrink: 0; }
.copy:hover { background: #51406e; }
.workflow { border-block: 1px solid var(--line); background: #f0eafb; }
.workflow .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.workflow p { color: var(--muted); margin: 12px 0; max-width: 420px; }
.workflow a { color: #4b219c; font-weight: 670; text-underline-offset: 3px; }
.change { background: white; border: 1px solid #dbd0ed; border-radius: 12px; padding: 20px; }
.change h3 { font-size: 16px; }
.change p { font-size: 14px; color: var(--muted); }
.change-data { color: #4d386e; font: 13px/1.6 var(--mono); padding: 12px; background: #f6f0fd; border-radius: 6px; }
footer { padding: 29px 0; background: #fff; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
dialog { border: 1px solid #d5c6ee; border-radius: 15px; width: min(480px, calc(100% - 38px)); max-height: calc(100dvh - 32px); padding: 25px; color: var(--ink); box-shadow: 0 20px 65px #22153636; }
dialog::backdrop { background: #241a39aa; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.dialog-id { font: 13px var(--mono); color: var(--violet); }
.close { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 14px; }
dialog h2 { font-size: 26px; line-height: 1.12; letter-spacing: -.04em; }
dialog .dialog-meta { margin-top: 11px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
dialog p { margin: 15px 0; color: var(--muted); }
dialog a { color: var(--violet); font-weight: 650; text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 54px); }
  .hero .wrap { grid-template-columns: minmax(264px, .76fr) minmax(0, 1.25fr); gap: 23px; padding-block: 54px; }
  h1 { font-size: clamp(2.95rem, 6.1vw, 4.2rem); }
  .board-top { padding-inline: 12px; }
  .board-body { padding-inline: 10px; }
  .steps { gap: 10px; }
  .step { padding: 16px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .top .wrap { min-height: 62px; gap: 14px; }
  .nav { gap: 12px; }
  .nav .optional { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; padding-block: 43px 34px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3rem, 10vw, 4.75rem); }
  .hero-copy p { margin-block: 17px 20px; }
  .section { padding-block: 40px; }
  .steps, .workflow .wrap { grid-template-columns: 1fr; }
  .workflow .wrap { gap: 15px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 26px); }
  .nav .git { padding: 6px 9px; }
  .brand { gap: 7px; }
  .board-top { flex-wrap: wrap; }
  .card { font-size: 12px; padding-inline: 4px; min-height: 68px; }
  .grid { gap: 4px; }
  .col { padding-inline: 5px; }
  .lane { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.detail-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(550px, 100%);
  max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh;
  padding: clamp(18px, 5vw, 35px); overflow: auto;
  border: 0; border-left: 1px solid #d7cbee; border-radius: 0; background: #fff;
}
.detail-drawer .dialog-top { margin-bottom: 17px; }
.detail-drawer h2 { font-size: clamp(1.65rem, 4vw, 2.1rem); letter-spacing: -.045em; }
.detail-drawer .detail-summary { font-size: 16px; margin: 15px 0 20px; }
.detail-facts { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: #faf7fe; }
.detail-facts div { display: grid; grid-template-columns: minmax(70px, .32fr) 1fr; gap: 9px; padding: 6px 0; align-items: baseline; font-size: 14px; }
.detail-facts dt { color: var(--muted); font-weight: 620; }
.detail-facts dd { margin: 0; }
.detail-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 16px; }
.detail-section .detail-notes { white-space: pre-line; margin: 6px 0 0; }
.detail-jobs, .detail-sources { list-style: none; margin: 7px 0 0; padding: 0; }
.detail-jobs li { background: #f7f2fe; padding: 10px 12px; border-radius: 6px; margin-bottom: 7px; }
.detail-jobs p { margin: 3px 0 0; font-size: 14px; }
.detail-sources a { display: inline-block; padding-block: 3px; font-size: 14px; overflow-wrap: anywhere; }
body:has(.detail-drawer[open]) { overflow: hidden; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; transform: translateY(-200%); background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { transform: none; }
#main-content { min-height: 60vh; }
.custom-logo-link { display: flex; }
.custom-logo { width: auto; max-width: 200px; height: auto; max-height: 44px; }
.primary-menu, .primary-menu .sub-menu { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px 20px; }
.primary-menu a { display: block; padding: 5px 0; }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu { position: absolute; min-width: 175px; z-index: 2; right: 0; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.primary-menu .sub-menu .sub-menu { position: static; margin-left: 8px; padding: 0; border: 0; }
.primary-menu .sub-menu { display: none; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.site-footer a { text-underline-offset: 3px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-heading a { color: var(--violet); font-weight: 680; text-underline-offset: 3px; }
.updates { border-bottom: 1px solid var(--line); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.post-card { background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.post-image { display: block; background: #e9dff9; }
.post-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 19px 20px; }
.post-card h2 { font-size: 20px; font-weight: 740; letter-spacing: -.025em; margin: 4px 0 7px; line-height: 1.25; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-date, .post-meta { color: var(--muted); font-size: 14px; }
.post-excerpt { color: var(--muted); font-size: 15px; }
.pagination, .comments-pagination { margin-top: 26px; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.page-numbers { display: inline-block; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--lavender); color: var(--violet); font-weight: 720; }
.article, .comments-area { max-width: 760px; margin-inline: auto; }
.article-header .section-title { margin-top: 12px; }
.article-header .back-link { color: var(--violet); font-weight: 680; }
.article-header .post-meta { margin-top: 10px; }
.article-image { margin-top: 26px; }
.article-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-content { margin-top: 24px; line-height: 1.7; overflow-wrap: anywhere; }
.article-content > * + *, .article-content li > p + p { margin-top: 1em; }
.article-content h2 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.035em; }
.article-content h3 { font-size: 1.25rem; line-height: 1.3; }
.article-content a, .post-tags a { color: var(--violet); text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; }
.article-content figure { margin-inline: 0; }
.article-content pre { padding: 15px; background: #242034; color: white; border-radius: 8px; overflow-x: auto; }
.article-content pre code { font: 14px/1.6 var(--mono); }
.article-content blockquote { border-left: 3px solid #a783e7; margin-inline: 0; padding-inline-start: 17px; }
.article-content table { border-collapse: collapse; }
.article-content td, .article-content th { border: 1px solid var(--line); padding: 8px; }
.article-content .wp-block-table { overflow-x: auto; }
.post-tags { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { background: var(--lavender); border-radius: 6px; padding: 3px 8px; }
.comments-area { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 23px; }
.comment-list, .comment-list .children { list-style: none; padding-inline-start: 16px; }
.comment-body, .comment-form > p { margin-block: 12px; }
.comment-form textarea, .comment-form input:not([type=checkbox]), .search-form input { max-width: 100%; font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 850px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .posts-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { align-items: flex-start; flex-wrap: wrap; }
  .primary-menu { gap: 5px 10px; }
}
