:root {
  color-scheme: light;
  --paper: #faf8f2;
  --panel: #eae5d7;
  --ink: #202d27;
  --muted: #566059;
  --rule: #c8c9ba;
  --accent: #88492b;
  --sans: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Baskerville", "Iowan Old Style", "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 1rem }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid #a65726; outline-offset: 4px }
img { max-width: 100%; display: block; height: auto }
.wrap { width: min(1280px, 89%); margin-inline: auto }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; z-index: 2; padding: .4rem 1rem }
.skip:focus { top: 1rem }
.bar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem }
.wordmark { display: inline-block; font-family: "Arial Black", "Helvetica Neue", sans-serif; font-weight: 950; font-size: 2.05rem; line-height: 1; letter-spacing: -.09em; text-decoration: none }
.wordmark span { color: var(--accent) }
nav { display: flex; align-items: center; flex-wrap: wrap }
.bar nav { gap: clamp(1rem, 2.8vw, 2.9rem); font-weight: 600; font-size: .82rem }
.bar nav a { text-decoration: none }
.bar nav a:hover, footer nav a:hover { color: var(--accent); text-decoration: underline }
.search-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50% }
.glass { width: 13px; height: 13px; border: 1.6px solid; border-radius: 100%; position: relative; margin: -2px 2px 0 0 }
.glass::after { position: absolute; content: ""; width: 6px; height: 1.6px; background: currentColor; transform: rotate(45deg); right: -4.5px; bottom: -2px }
.hero { display: grid; grid-template-columns: 56% 44%; min-height: 410px; border-radius: 2px; overflow: hidden; background: var(--panel) }
.hero-photo { position: relative; min-width: 0 }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 52% }
.hero-copy { padding: clamp(2.5rem, 4.2vw, 4.9rem); align-self: center }
.hero h1 { margin: 0; font: 500 clamp(3.5rem, 5.7vw, 6rem)/.94 var(--serif); letter-spacing: -.055em }
.hero h1 em { font-weight: 500; color: #804b32 }
.hero p { font-size: clamp(.85rem, 1vw, 1rem); line-height: 1.9; margin: 1.7rem 0 1.45rem; max-width: 25em }
.story-link { display: inline-flex; align-items: center; padding-bottom: .2rem; border-bottom: 1px solid currentColor; gap: 1.8rem; text-decoration: none; font-weight: 650; font-size: .8rem }
.story-link span { font: 1.1rem/1 var(--sans) }
.archive { padding-block: clamp(3rem, 6vw, 6rem) 5rem; min-height: 50vh }
.section-title { border-bottom: 1px solid var(--ink); padding-bottom: .8rem; display: flex; align-items: baseline; justify-content: space-between }
.section-title h1, .section-title h2, .narrow h1, .related h2 { margin: 0; font: 600 clamp(1.75rem, 3.2vw, 3.4rem)/1.3 var(--serif); letter-spacing: -.045em }
.section-title > span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums }
.topics { margin: 1.05rem 0 1.9rem; gap: .45rem }
.topics a { border: 1px solid var(--rule); border-radius: 2rem; min-height: 32px; padding: .34rem .94rem; text-decoration: none; font-size: .7rem; line-height: 1.5; font-weight: 650; letter-spacing: .035em }
.topics a[aria-current="page"], .topics a:hover { color: var(--paper); background: var(--ink); border-color: var(--ink) }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.7rem clamp(1rem, 2.3vw, 2.1rem) }
.grid article { min-width: 0 }
.card { display: block; text-decoration: none }
.cover { aspect-ratio: 1.66; background: var(--panel); overflow: hidden }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.card:hover img { transform: scale(1.025) }
.card:hover h3 { text-decoration: underline }
.blank { display: grid; place-items: center; height: 100%; font: italic 2.8rem var(--serif) }
.meta { display: flex; align-items: center; gap: .72rem; margin: .8rem 0 .42rem; font-variant-numeric: tabular-nums; font-size: .69rem; letter-spacing: .065em }
.meta span { color: var(--accent); font-weight: 800 }
.meta time { color: var(--muted) }
.card h3 { margin: 0; font: 650 clamp(1rem, 1.4vw, 1.32rem)/1.55 var(--serif); overflow-wrap: anywhere }
.pagination { justify-content: center; margin-top: 3rem; gap: .5rem }
.pagination a { border: 1px solid var(--rule); min-width: 2.5rem; padding: .35rem; text-align: center; text-decoration: none }
.pagination a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper) }
.reading, .narrow { width: min(740px, 89%); margin-inline: auto }
.article-head { padding: clamp(2rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--rule) }
.article-head h1 { font: 600 clamp(1.9rem, 3.7vw, 3.6rem)/1.38 var(--serif); letter-spacing: -.035em; margin: .55rem 0 0; overflow-wrap: anywhere }
.article-photo { width: 100%; max-height: 440px; object-fit: contain; background: var(--panel) }
.back, .return { display: inline-block; color: var(--muted); font-size: .83rem }
.back { margin-bottom: 1.1rem }
.return { margin: 2.2rem 0 4rem }
.prose { line-height: 1.95; overflow-wrap: anywhere; margin-top: 1.9rem }
.prose h2, .prose h3, .prose h4, .comments h2 { font-family: var(--serif); line-height: 1.55; margin: 1.8em 0 .7em }
.prose h2 { padding-bottom: .3rem; border-bottom: 1px solid var(--rule); font-size: clamp(1.4rem, 3vw, 2rem) }
.prose p { margin: 1.2em 0 }
.prose p:empty { display: none }
.prose a { color: var(--accent) }
.prose figure { margin: 2rem 0; max-width: 100% }
.prose img { margin-inline: auto; object-fit: contain }
.prose figcaption { margin-top: .4rem; font-size: .83rem; color: var(--muted) }
.prose video, .prose iframe { max-width: 100%; border: 0 }
.prose iframe[src*="youtube"] { aspect-ratio: 16 / 9; width: 100%; height: auto }
.prose video { height: auto }
.prose table { border-collapse: collapse; display: block; overflow-x: auto }
.prose th, .prose td { border: 1px solid var(--rule); padding: .4rem .65rem }
.prose img[width="16"], .prose img[width="32"] { display: inline-block }
.prose blockquote, .product, .comments article { border-left: 2px solid var(--accent); padding: .1rem 1rem; margin-inline: 0; background: #f0ede3 }
.prose .photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem }
.photos figure { margin: 0 }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.prose .action, .action { padding: .65rem 1rem; display: inline-block; color: white; background: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem }
.related { padding: 1.2rem 0 4.5rem }
.related h2 { font-size: 1.6rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-bottom: 1.5rem }
.tags { gap: 1rem; font-size: .85rem }
.search-form { margin: 2rem 0 1rem }
.search-form label { font-size: .9rem; font-weight: 650 }
.search-form > div { display: flex; margin-top: .35rem }
.search-form input, .search-form button { font: inherit; padding: .65rem; border: 1px solid var(--rule) }
.search-form input { min-width: 0; flex: 1 }
.search-form button { background: var(--ink); color: white; cursor: pointer; padding-inline: 1.5rem }
.search-results a { display: block; border-top: 1px solid var(--rule); text-decoration: none; font-weight: 600; padding: 1rem .15rem }
.search-results small { display: block; color: var(--muted); font-weight: 400 }
footer { background: var(--ink); color: var(--paper); padding: 3rem 0 }
footer .wordmark span { color: #c48866 }
.foot { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 2rem }
.foot p { font: italic 1rem var(--serif); margin: .4rem 0 0 }
.foot nav { gap: 1rem; font-size: .77rem }
.foot nav a { text-decoration: none }
.foot small { font-size: .7rem; color: #c7cec2 }
@media (max-width: 850px) {
  .hero { grid-template-columns: 52% 48%; min-height: 360px }
  .hero-copy { padding: 2.1rem }
  .hero h1 { font-size: clamp(3.1rem, 6.5vw, 4.6rem) }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 600px) {
  .wrap, .reading, .narrow { width: 90% }
  .bar { min-height: 65px; gap: .6rem }
  .bar nav { gap: .85rem; font-size: .75rem }
  .bar .contact-nav { display: none }
  .wordmark { font-size: 1.65rem }
  .search-link { width: 31px; height: 31px }
  .hero { display: flex; flex-direction: column; min-height: auto }
  .hero-photo { aspect-ratio: 1.65 }
  .hero-copy { width: 100%; padding: 1.45rem }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 3.7rem) }
  .hero h1 br:first-of-type { display: none }
  .hero h1 br:first-of-type::after { content: " " }
  .hero h1 { line-height: 1.02 }
  .hero p { margin: .9rem 0; font-size: .82rem }
  .archive { padding-block: 2.4rem 3.5rem }
  .topics { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; margin-bottom: 1.2rem }
  .topics a { white-space: nowrap; padding-inline: .75rem }
  .grid { column-gap: .8rem; row-gap: 1.5rem }
  .meta { gap: .35rem; font-size: .63rem; letter-spacing: 0 }
  .card h3 { font-size: .93rem; line-height: 1.6 }
  .foot { display: grid; gap: 1.4rem }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr }
  .bar nav { gap: .5rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important }
}
