:root {
  --brand-orange: #fa7902;
  --brand-yellow: #ffd111;
  --text: #302b26;
  --muted: #6b6259;
  --link: #a94700;
  --border: #e8e2db;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 5px; }
.notice { padding: 10px; text-align: center; background: #fff8da; color: var(--muted); font-size: 12px; }
header, main, footer { max-width: 940px; margin: auto; padding: 24px; }
header {
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--brand-orange);
  border-image: linear-gradient(90deg, var(--brand-orange) 75%, var(--brand-yellow) 75%) 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: .02em;
}
.brand-logo { display: flex; flex: 0 0 auto; }
.brand-logo svg { display: block; width: 50px; height: 50px; }
header a { text-decoration: none; }
main { padding-top: 32px; max-width: 840px; }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.6; letter-spacing: .02em; margin: 16px 0 32px; }
h2 { font-size: 23px; line-height: 1.6; margin-top: 48px; }
.card h3, h1 { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
article { font-size: 17px; line-height: 2.1; color: var(--text); }
article p { margin: 24px 0; }
article blockquote { border-left: 3px solid var(--brand-yellow); padding-left: 20px; color: var(--muted); }
.intro { font-size: 18px; line-height: 1.9; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--link); }
figure { margin: 36px auto; }
figure img { width: 100%; height: auto; display: block; border-radius: 4px; }
figcaption { font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; margin-top: 12px; }
.image-wide { width: 100%; }
.image-normal { width: 75%; }
.image-small { width: 50%; }
.video { display: block; padding: 24px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand-yellow); margin: 48px 0; color: var(--text); text-decoration: none; }
a.video:hover { border-color: var(--brand-orange); }
.video h2 { margin: 8px 0 18px; font-size: 21px; }
.tags { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-top: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 24px 0; }
.card { padding: 24px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--brand-orange); border-radius: 8px; text-decoration: none; }
.card h3 { line-height: 1.8; font-size: 19px; color: var(--text); }
.card p { font-size: 14px; line-height: 1.8; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.card > span:last-child { font-size: 13px; }
.card:hover { border-color: var(--brand-orange); }
.video-card { border-top-color: var(--brand-yellow); }
.theme-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.theme-links a { display: block; background: #fff; border: 1px solid var(--brand-yellow); padding: 12px 18px; border-radius: 6px; text-decoration: none; }
.theme-links a:hover { border-color: var(--brand-orange); }
main > section { margin-top: 48px; scroll-margin-top: 24px; }
main > .visually-hidden + section, main > .visually-hidden + section > h2 { margin-top: 0; }
footer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 64px; }
code { background: #fff8da; padding: 2px 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

@media (max-width: 600px) {
  .brand { gap: 10px; font-size: clamp(18px, 5vw, 25px); }
  .brand-logo svg { width: 40px; height: 40px; }
  main { padding-top: 20px; }
  .image-normal { width: 90%; }
  .image-small { width: 70%; }
}

article .image-placeholder{box-sizing:border-box;border:2px dashed #a4b594;background:#f7f9f2;padding:30px 20px;text-align:center;color:#637954;min-height:140px;display:flex;flex-direction:column;justify-content:center;gap:8px;overflow-wrap:anywhere}
article .image-placeholder strong{font-size:14px;font-weight:600}
article .image-placeholder figcaption{white-space:pre-wrap;margin:0;font-size:13px;color:#748465}

.article-dates { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 12px; line-height: 1.8; margin: -12px 0 28px; }
