@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1e2031;
  --muted: #51566b;
  --accent: #4035a6;
  --accent-dark: #302686;
  --line: #e1e2ed;
  --wash: #f4f3ff;
  --paper: #fbfbff;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid #5a4cc6; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2 { font: 400 2.55rem/1.08 var(--serif); letter-spacing: -.038em; }
h3 { line-height: 1.28; }
.container { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .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: fixed; z-index: 5; top: .5rem; left: .75rem; padding: .4rem .8rem; background: white; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 18px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); gap: .35rem; font-size: 1.1rem; font-weight: 750; white-space: nowrap; text-decoration: none; letter-spacing: -.04em; }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: .32rem; background: var(--accent); color: white; border-radius: 9px; font-size: 1.35rem; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.site-header nav a, .site-footer nav a { font-size: .92rem; font-weight: 550; color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; }

.home { padding-top: 40px; }
.hero { min-height: 430px; display: grid; grid-template-columns: 1.04fr 1fr; background: #eeedff; border: 1px solid #e4e2fc; border-radius: 18px; overflow: hidden; }
.hero-content { padding: clamp(32px, 4vw, 64px); align-self: center; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 760; letter-spacing: .11em; }
.eyebrow span { margin-right: .36em; font-size: 1em; }
.hero h1 { margin: .84rem 0 1.3rem; font-size: clamp(3.25rem, 6vw, 5.65rem); line-height: .94; letter-spacing: -.042em; }
.hero h1 em { color: var(--accent); display: block; }
.hero-description { max-width: 410px; font-size: 1.08rem; color: #464b64; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.64rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 8px; padding: .63rem 1rem; font-size: .9rem; font-weight: 680; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.35; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { border-color: #c4c0e8; color: var(--accent-dark); background: #ffffff96; }
.button.secondary:hover { border-color: var(--accent); background: #fff; }
.button.small { min-height: 39px; padding: .45rem .75rem; }
.hero-art { position: relative; background: #9ba8d6; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.guide-section { padding-block: 56px 0; scroll-margin-top: 13px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 24px; }
.section-header p, .home-callout p { margin-top: .5rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { padding: .42rem .76rem; min-height: 38px; color: #393d55; font-size: .88rem; font-weight: 570; border: 1px solid #dbdbea; border-radius: 999px; background: #fff; cursor: pointer; }
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] { color: var(--accent-dark); background: #efedff; border-color: #bfb8ef; }
.guide-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; min-height: 215px; }
.guide-card:hover, .guide-card:focus-within { border-color: #b3aaf0; box-shadow: 0 4px 16px #3b33850f; }
.card-top, .meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .83rem; }
.tag { display: inline-flex; width: max-content; border-radius: 5px; font-size: .875rem; align-items: center; gap: .34em; padding: .22rem .5rem; font-weight: 700; background: #f0effe; color: #4935a2; }
.tag.pdf { background: #fdeaf0; color: #902647; }
.tag.word { background: #eaf0ff; color: #2854a0; }
.tag.sheets { background: #e2f6ec; color: #136244; }
.tag.slides { background: #fcefe5; color: #8a3a0e; }
.guide-card h3 { margin-top: .86rem; font-size: 1.2rem; letter-spacing: -.025em; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card h3 a:focus-visible::after { outline: 3px solid #5a4cc6; outline-offset: 3px; }
.guide-card p { margin: .58rem 0 .94rem; font-size: .96rem; color: var(--muted); line-height: 1.5; }
.card-action { margin-top: auto; font-size: .9rem; font-weight: 690; color: var(--accent); }
.guide-card:hover .card-action { text-decoration: underline; }

.home-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin: 50px 0 64px; padding: clamp(24px, 4vw, 42px); border-radius: 14px; background: var(--wash); border: 1px solid var(--line); }
.home-callout h2 { font-size: 2rem; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; min-height: 116px; padding-block: 20px; }
.footer-inner p, .footer-inner small { color: var(--muted); font-size: .875rem; }
.footer-inner p { margin-top: .4rem; }

.content-page { padding: 28px 0 66px; }
.narrow { width: min(740px, calc(100% - 56px)); min-height: 66vh; }
.breadcrumbs { font-size: .875rem; margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25em .65em; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li { border-left: 1px solid var(--line); padding-left: .65em; }
.breadcrumbs a { color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(190px, 1fr); gap: clamp(32px, 6vw, 102px); }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.article-header h1, .text-header h1 { font-size: clamp(2.65rem, 5.6vw, 4.65rem); line-height: 1.02; margin: .55rem 0 .9rem; }
.article-header .meta { justify-content: flex-start; }
.standfirst, .text-header > p:not(.eyebrow) { color: #464b64; font-size: 1.15rem; }
.date-line { margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.article-layout article section { margin-top: 2rem; scroll-margin-top: 24px; }
.article-layout article section h2, .prose > h2 { margin: 0 0 .60rem; font-size: 1.95rem; }
.article-toc { position: sticky; top: 30px; align-self: start; border-left: 1px solid var(--line); padding: 10px 0 12px 21px; }
.article-toc h2 { font: 700 1rem/1.4 var(--sans); letter-spacing: normal; margin-bottom: .45rem; }
.article-toc ul, .mobile-contents ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.article-toc li, .mobile-contents li { margin: .28rem 0; }
.article-toc a, .mobile-contents a { font-size: .92rem; }
.mobile-contents { display: none; }
.source-list { padding-left: 1.3rem; }
.test-box { padding: 20px; margin-top: 1rem; border: 1px solid #d9d4f5; border-radius: 11px; background: var(--wash); }
.test-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; }
.test-head h3 { font-size: 1.07rem; }
.prompt { padding: .78rem .95rem; margin: .8rem 0; background: #fff; border-radius: 7px; border: 1px solid var(--line); }
.test-box details { margin-top: .8rem; }
.test-box summary { color: var(--accent); font-weight: 650; cursor: pointer; }
.test-box details p { margin: .45rem 0 0; }
.related { margin-top: 2.6rem; }
.related h2 { margin-bottom: .85rem; font-size: 1.95rem; }
.text-header { margin-bottom: 1.8rem; }
.prose > p { margin-bottom: 1.5rem; }
.checker { padding: clamp(16px, 4vw, 29px); background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.test-list { list-style: none; padding: 0; }
.test-list li { display: grid; justify-items: start; gap: .38rem; padding: 1.13rem 0; border-bottom: 1px solid var(--line); }
.test-list li:last-child { border: 0; padding-bottom: 0; }
.test-list p { color: var(--muted); }

@media (max-width: 925px) {
  .container { width: calc(100% - 48px); }
  .hero { min-height: 370px; }
  .section-header { align-items: start; flex-direction: column; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { gap: 24px; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 11px; }
  .brand { font-size: .95rem; gap: .25rem; }
  .brand-mark { width: 26px; height: 26px; font-size: 1.1rem; margin-right: .12rem; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: .875rem; }
  .home { padding-top: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 28px 22px; }
  .hero h1 { font-size: clamp(2.6rem, 9.5vw, 3.7rem); }
  .hero-art { aspect-ratio: 1.85; }
  .guide-section { padding-top: 40px; }
  .guide-grid, .article-layout { grid-template-columns: 1fr; }
  .guide-card { min-height: 190px; }
  .article-toc { display: none; }
  .mobile-contents { display: block; margin-top: 1.25rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
  .mobile-contents summary { cursor: pointer; font-weight: 650; }
  .mobile-contents ul { margin: .45rem 0 .2rem; }
  .home-callout, .footer-inner { align-items: flex-start; flex-direction: column; }
  .article-header h1, .text-header h1 { font-size: clamp(2.3rem, 9.8vw, 3.2rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.editorial-hero {
  min-height: 350px;
  grid-template-columns: 1.2fr 1fr;
}
.editorial-hero .hero-description { max-width: 475px; }
.hero-side {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 38px) clamp(20px, 3vw, 38px) clamp(20px, 3vw, 38px) 0;
}
.editorial-art { overflow: hidden; border: 1px solid #dcd8f6; border-radius: 12px; }
.editorial-art img { width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; object-position: 40% 53%; }
.hero-questions {
  padding: clamp(16px, 2.3vw, 26px);
  background: #fff;
  border: 1px solid #dcd8f6;
  border-radius: 12px;
}
.hero-questions h2 { font-size: 2rem; }
.hero-questions ul { list-style: none; padding: 0; margin-top: .65rem; }
.hero-questions li + li { border-top: 1px solid var(--line); }
.hero-questions a {
  display: block;
  padding: .65rem 0;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.hero-questions a:hover { color: var(--accent); text-decoration: underline; }
.topic-list { display: flex; flex-wrap: wrap; list-style: none; gap: .55rem; padding: 0; }
.topic-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  font-weight: 630;
  text-decoration: none;
}
.topic-list a:hover { border-color: var(--accent); text-decoration: underline; }
.guide-card { min-height: 0; }
.guide-card p { margin-bottom: 0; }
.tag.basics { color: #30506d; background: #edf3fa; }
.tag.chatgpt { color: #205b45; background: #e8f6ef; }
.tag.claude { color: #773b26; background: #f9ede4; }
.tag.gemini { color: #294f9b; background: #eaf0ff; }
.tag.creative { color: #613982; background: #f4ebfa; }
.tag.tools { color: #785331; background: #f9f0e6; }
.library-search { max-width: 34rem; margin-bottom: 1rem; }
.library-search label { display: block; margin-bottom: .35rem; font-weight: 680; }
.library-search input {
  width: 100%;
  min-height: 48px;
  padding: .6rem .8rem;
  border: 1px solid #c9c6da;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.library-status { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.library-results { margin-top: 1.5rem; }
.empty-results p { margin-bottom: .75rem; }
.article-header h1:first-child { margin-top: 0; }
.guide-art { margin: 1.35rem 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.guide-art img { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; }
.file-art { margin: 0 0 1.5rem; }
.file-use-note { margin-top: 1rem; color: var(--muted); }
.fixture-heading { margin: .9rem 0 .4rem; font-size: 2rem; }
.fixture-intro { color: var(--muted); }
.test-list .fixture-evidence { color: var(--ink); }
.fixture-evidence strong { margin-right: .35rem; }

@media (max-width: 650px) {
  .editorial-hero { min-height: 0; grid-template-columns: 1fr; }
  .editorial-hero .hero-content { padding-bottom: 4px; }
  .hero-side { padding: 20px 22px 22px; gap: 12px; }
  .editorial-art img, .guide-art img { aspect-ratio: 1.5; }
}
@media (max-width: 400px) {
  .header-inner { flex-wrap: wrap; gap: 0 .75rem; padding-block: .65rem; }
  .site-header nav { min-height: 32px; }
}
