:root {
  --paper: #f4f1e9;
  --panel: #fffdf8;
  --ink: #17202a;
  --muted: #66717b;
  --line: #cfd5d7;
  --strong-line: #8fa0a8;
  --accent: #0e7185;
  --accent-soft: rgba(14, 113, 133, 0.11);
  --navy: #07131d;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: "SFMono-Regular", "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(180deg, #f8f6f0 0, var(--paper) 210px);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

.fiction-bar {
  padding: 9px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.fiction-bar a { color: #fff; text-underline-offset: 3px; }

.index-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}
.index-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  gap: 30px;
}
.index-wordmark {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.index-name {
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.index-tagline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-return {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.archive-return:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.index-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 50px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 94px;
}
.index-contents {
  align-self: start;
  position: sticky;
  top: 24px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.index-contents-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.index-contents nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.index-contents a {
  padding: 7px 0 7px 14px;
  color: var(--muted);
  line-height: 1.35;
  text-decoration: none;
}
.index-contents a:hover { color: var(--accent); }

.index-article {
  min-width: 0;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(39, 49, 55, 0.06);
}
.index-article-head {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--strong-line);
}
.index-context {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.index-article-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.3vw, 58px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.index-short-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.index-body {
  max-width: 960px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}
.index-body > p,
.index-body section > p { margin: 0 0 1em; }
.index-body section { scroll-margin-top: 24px; }
.index-body section h2 {
  margin: 38px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.index-profile-card {
  float: right;
  width: 300px;
  margin: 0 0 28px 38px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: #f6f7f4;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}
.index-profile-card h2 {
  margin: 0 !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  font-family: var(--sans) !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  text-align: left;
}
.index-profile-card img {
  display: block;
  width: 166px;
  height: 166px;
  margin: 0 auto 10px;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 50%;
  clip-path: circle(48.5% at 50% 50%);
  object-fit: cover;
  background: #f2f4f5;
}
.profile-caption {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.index-profile-card dl { margin: 0; }
.index-profile-card dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.index-profile-card dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.index-profile-card dd { margin: 0; }

.index-references ol {
  margin: 0;
  padding-left: 24px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
}
.index-references li { margin-bottom: 8px; }
.reference-publication { font-style: italic; }

.index-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.index-footer-inner {
  display: flex;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
  gap: 20px;
}

@media (max-width: 900px) {
  .index-shell { grid-template-columns: 1fr; gap: 0; }
  .index-contents { display: none; }
}

@media (max-width: 620px) {
  .fiction-bar { padding-inline: 14px; font-size: 8px; }
  .index-header-inner,
  .index-shell,
  .index-footer-inner { width: calc(100% - 30px); }
  .index-header-inner { min-height: 74px; }
  .index-name { font-size: 18px; }
  .archive-return { font-size: 11px; }
  .index-shell { padding-top: 30px; }
  .index-article { padding: 24px 20px 34px; }
  .index-body { font-size: 16px; }
  .index-profile-card {
    float: none;
    width: 100%;
    margin: 0 0 28px;
  }
  .index-profile-card img { width: 150px; height: 150px; }
  .index-footer-inner { flex-direction: column; }
}
