:root {
  --ink: #242424;
  --body: #555;
  --muted: #7a7a7a;
  --paper: #f1f1f1;
  --surface: #fff;
  --header: #323232;
  --header-muted: #a6a6a6;
  --line: #e7e7e7;
  --accent: #087c98;
  --accent-bright: #8fd5e6;
  --accent-soft: #e9f6f9;
  --frame: 62.5rem;
  --reading: 43.75rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-block: 1.875rem;
  color: var(--body);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .015em;
  font-kerning: normal;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { color: #055c71; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.shell {
  width: min(calc(100% - 3rem), var(--reading));
  margin-inline: auto;
}
.site-header,
.site-main,
.site-footer {
  width: min(calc(100% - 2rem), var(--frame));
  margin-inline: auto;
}
.site-main {
  min-height: 60vh;
  background: var(--surface);
}
.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: .55rem .9rem;
  clip: auto;
  color: var(--ink);
  background: white;
}

.site-header {
  color: white;
  background: var(--header);
}
.site-header .shell,
.site-footer .shell { width: 100%; }
.header-inner {
  display: flex;
  min-height: 11.55rem;
  padding: 2.1rem 1.875rem 0;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.site-branding { margin-block: auto; }
.site-name {
  display: inline-block;
  color: white;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  text-decoration: none;
}
.site-name:hover { color: white; }
.site-description {
  margin: .55rem 0 0;
  color: var(--header-muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}
.site-header nav {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 5vw, 3rem);
}
.site-header nav a {
  color: #d2d2d2;
  font-size: .88rem;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--accent-bright); }

.post-list { padding-bottom: 0; }
.card-grid {
  display: block;
  background: var(--surface);
}
.article-card {
  padding: clamp(3.6rem, 8vw, 5rem) 0 clamp(3.5rem, 8vw, 4.75rem);
  text-align: center;
}
.article-card + .article-card { border-top: 1px solid var(--line); }
.article-card h2 {
  margin: 0 auto 1.15rem;
  color: var(--ink);
  font-size: clamp(2rem, 5.2vw, 3rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.article-card h2 a {
  color: inherit;
  text-decoration: none;
}
.article-card h2 a:hover { color: var(--accent); }
.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: .2rem .45rem;
  color: #949494;
  font-size: .78rem;
  line-height: 1.7;
}
.card-meta a { color: inherit; text-decoration: none; }
.card-meta a:hover { color: var(--accent); }
.card-excerpt {
  max-width: 39rem;
  margin: 2rem auto 0;
  text-align: left;
}
.read-more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.archive-link {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.archive-link a {
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

.page-header,
.article { width: min(calc(100% - 3rem), var(--reading)); }
.page-header {
  padding-block: clamp(3.5rem, 8vw, 5rem) 2.75rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-header h1,
.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.page-description {
  max-width: 34rem;
  margin: 1.2rem auto 0;
}
.section-block { padding-block: 0; }
.section-block .card-grid { margin-top: 0; }

.article { padding-block: clamp(3.7rem, 8vw, 5.2rem) 6rem; }
.article-header {
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.lede {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
}
.taxonomy-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: 1.45rem;
}
.taxonomy-row a {
  color: #929292;
  font-size: .76rem;
  text-decoration: none;
}
.taxonomy-row a:hover { color: var(--accent); }

.prose {
  padding-top: 2.75rem;
  color: var(--body);
  font-size: 1.025rem;
  line-height: 1.95;
}
.prose h2,
.prose h3,
.prose h4 {
  margin: 2.4em 0 .8em;
  color: #383838;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.prose h2 { font-size: clamp(1.55rem, 4vw, 1.9rem); }
.prose h3 { font-size: clamp(1.3rem, 3vw, 1.55rem); }
.prose h4 { font-size: 1.15rem; }
.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose figure,
.prose blockquote,
.prose table { margin-block: 1.55rem; }
.prose ul,
.prose ol { padding-left: 1.45em; }
.prose li + li { margin-top: .45rem; }
.prose figure { margin-inline: 0; }
.prose .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.prose .blocks-gallery-item,
.prose .blocks-gallery-item figure { margin: 0; }
.prose .blocks-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prose pre {
  overflow-x: auto;
  padding: 1.15rem;
  border-radius: .2rem;
  color: #e9f3f5;
  background: #262b2d;
  line-height: 1.65;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.prose :not(pre) > code {
  padding: .12rem .32rem;
  border-radius: .15rem;
  color: #3d4648;
  background: #edf1f2;
}
.prose blockquote {
  margin-inline: 0;
  padding: .15rem 0 .15rem 1.2rem;
  border-left: .25rem solid var(--accent);
  color: var(--muted);
}
.prose figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
  text-align: center;
}
.prose hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid var(--line);
}
.inline-note {
  padding-inline: .2em;
  border-bottom: 2px dotted var(--accent);
  background: var(--accent-soft);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.post-navigation-link {
  display: flex;
  min-height: 6rem;
  padding: 1rem;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.post-navigation-link:hover {
  border-color: #acdce7;
  background: var(--accent-soft);
}
.post-navigation-link span {
  color: var(--muted);
  font-size: .72rem;
}
.post-navigation-link strong {
  margin-top: .3rem;
  font-size: .88rem;
  line-height: 1.65;
}
.post-navigation-link--older {
  grid-column: 2;
  text-align: right;
}

.ad-slot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* AdSense reserves a fixed height for some unfilled requests. */
.adsbygoogle[data-ad-status="unfilled"],
.ad-slot:has(> .adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

.page-bottom-ad {
  padding-bottom: 5rem;
}

.archive-index { padding-block: 2.75rem 5rem; }
.archive-month + .archive-month { margin-top: 2.5rem; }
.archive-month h2 {
  margin: 0 0 .8rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}
.archive-month ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.archive-month li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
}
.archive-month time {
  color: var(--muted);
  font-size: .78rem;
}
.archive-month a { color: var(--ink); text-decoration: none; }
.archive-month a:hover { color: var(--accent); }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}
.prose .contact-list > li { margin: 0; }
.contact-card {
  display: flex;
  height: 100%;
  min-height: 5rem;
  padding: 1rem;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
a.contact-card:hover {
  border-color: #acdce7;
  background: var(--accent-soft);
}
.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: 50%;
}
span.contact-icon {
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  font: 700 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
img.contact-icon { object-fit: contain; background: transparent; }
.contact-card strong,
.contact-card small { display: block; }
.contact-card small { color: var(--muted); }

.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.pagination a {
  display: block;
  padding: .38rem .7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .8rem;
  text-decoration: none;
}
.not-found { min-height: 60vh; }
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--accent);
  text-decoration: none;
}

.site-footer {
  color: var(--header-muted);
  background: var(--header);
}
.footer-inner {
  display: flex;
  min-height: 5rem;
  padding-inline: 1.875rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner p { margin: 0; font-size: .78rem; }
.footer-inner a { color: var(--accent-bright); font-size: .78rem; text-decoration: none; }
.footer-links { display: flex; gap: 1rem; }

@media (max-width: 44rem) {
  body { padding-block: 0; }
  .site-header,
  .site-main,
  .site-footer { width: 100%; }
  .shell,
  .page-header,
  .article { width: min(calc(100% - 2rem), var(--reading)); }
  .header-inner {
    width: 100%;
    min-height: 9.5rem;
    padding-top: 1.2rem;
    padding-inline: 1rem;
  }
  .site-header nav { gap: 1.7rem; }
  .article-card { padding-block: 3.2rem; }
  .card-excerpt { margin-top: 1.6rem; }
  .prose .wp-block-gallery { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation-link--older { grid-column: 1; text-align: left; }
  .archive-month li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; }
  .footer-inner { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
