:root {
  --ink-950: #03070a;
  --ink-900: #081118;
  --ink-850: #0d171d;
  --ink-800: #111d24;
  --paper-100: #f2ead7;
  --paper-200: #ddd3ba;
  --paper-400: #b8b2a6;
  --gold-300: #c4a261;
  --gold-500: #a88749;
  --vermillion-500: #a92a24;
  --vermillion-400: #c53b30;
  --indigo-700: #1b2b34;
  --line: rgb(241 234 216 / 14%);
  --line-strong: rgb(215 188 120 / 42%);
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-roman: Baskerville, "Times New Roman", serif;
  --shell: 1280px;
  --reading: 760px;
  --header-height: 78px;
  --section-space: clamp(5rem, 10vw, 10rem);
  --shadow-deep: 0 32px 90px rgb(0 0 0 / 42%);
  --shadow-card: 0 18px 54px rgb(0 0 0 / 22%);
  --ease-film: cubic-bezier(.2, .72, .15, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink-950);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgb(45 68 77 / 20%), transparent 31rem),
    linear-gradient(100deg, transparent 0 52%, rgb(255 255 255 / 1.2%) 52% 52.08%, transparent 52.08%),
    var(--ink-900);
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 1%) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / 2%) 0 1px, transparent 1.5px);
  background-size: 100% 5px, 7px 7px;
  content: "";
  opacity: .55;
  pointer-events: none;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

a:hover {
  color: var(--gold-300);
}

button,
input,
textarea,
select {
  border-radius: 0;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
}

::selection {
  background: var(--vermillion-500);
  color: #fff;
}

.shell {
  width: min(calc(100% - clamp(28px, 6vw, 80px)), var(--shell));
  margin-inline: auto;
}

.reading-column {
  width: min(100%, var(--reading));
  margin-inline: auto;
}

.reading-column--wide {
  width: min(100%, 980px);
}

.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: var(--paper-100);
  clip: auto;
  clip-path: none;
  color: var(--ink-950);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: .55rem 1rem;
  background: var(--paper-100);
  color: var(--ink-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-main {
  min-height: calc(100vh - var(--header-height));
  overflow: clip;
}

.alignwide {
  width: min(100%, 1120px);
  max-width: none;
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.wp-caption-text,
figcaption {
  color: var(--paper-400);
  font-size: .75rem;
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }
}
