/* Layout: one narrow reading column on white, in a single light look by
   choice. Space does the separating; one hairline above the footer. */
:root {
  --bg: #FFFFFF;
  --ink: #1B2027;
  --muted: #647082;
  --line: #E4E8ED;
  --tint: #EEF1F5;
  --link: #1F3A5F;

  --sans: "Aptos", "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.page {
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: clamp(20px, 6vw, 32px);
  padding-block: 2rem 4rem;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--sans); font-weight: 600; margin: 0; text-wrap: balance; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.4rem 2rem;
  font-family: var(--sans);
  padding-bottom: 3.5rem;
}
.top .name { font-weight: 600; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.top ul { display: flex; gap: 1.5rem; }
.top nav a { font-size: 0.9375rem; color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }

.view { display: flex; flex-direction: column; gap: 3.25rem; }
.block { display: flex; flex-direction: column; gap: 1rem; }
.block > h2 { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }

/* Home */
.intro { display: flex; flex-direction: column; gap: 2rem; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.photo {
  width: 8.5rem; height: auto; aspect-ratio: 4 / 5; border-radius: 6px;
  object-fit: cover; background: var(--tint); display: block; flex: none;
}
.lead { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.lead h1 { font-weight: 600; font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
.lead .tagline { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.about { display: flex; flex-direction: column; gap: 1rem; }

.head h1 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.8rem); line-height: 1.25; }
.empty { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }
.contact { font-family: var(--sans); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.contact .addr { overflow-wrap: anywhere; }

/* Writing list */
.list { display: flex; flex-direction: column; gap: 1.1rem; }
.item { display: flex; justify-content: space-between; align-items: baseline; gap: 0.15rem 1.5rem; }
.item .t { min-width: 0; line-height: 1.45; }
.item .t a { color: var(--ink); text-decoration: none; font-weight: 500; }
.item .t a:hover { color: var(--link); text-decoration: underline; }
.item .d { font-size: 0.875rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Post */
.post { gap: 2rem; }
.back { font-size: 0.9375rem; }
.head { display: flex; flex-direction: column; gap: 0.6rem; }
.head .sub { font-size: 1.125rem; color: var(--muted); }
.head .meta { font-size: 0.9375rem; color: var(--muted); }
.note { font-size: 0.9375rem; color: var(--muted); font-style: italic; }
.article { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.article h2 { font-size: 1.3rem; line-height: 1.3; margin-top: 1.4rem; }
.article h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin: 0.6rem 0 0; }
.article ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.article li::marker { color: var(--muted); }
.article a { overflow-wrap: anywhere; }
.article figure { margin: 0.5rem auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; }
.article figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 4px; }
.article figcaption { font-size: 0.875rem; color: var(--muted); text-align: center; }
.tablewrap { overflow-x: auto; margin: 0.25rem 0; display: flex; }
.tablewrap > table { margin-inline: auto; }
.article table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
.article table.narrow { max-width: 30rem; margin-inline: auto; }
.article th, .article td { text-align: left; vertical-align: top; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--line); }
.article th { font-weight: 600; border-bottom-color: var(--muted); }
.article th:last-child, .article td:last-child { padding-right: 0; }
.article .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article tr.total td { font-weight: 600; border-bottom: 0; }
.tablewrap table:not(.narrow) { min-width: 30rem; }
.refs { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; }
.refs h2 { font-size: 1rem; margin: 0; }
.refs ul { list-style: none; padding: 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); gap: 0.6rem; }

footer {
  margin-top: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.8125rem; color: var(--muted);
}
@media (max-width: 30rem) {
  .top { padding-bottom: 2.5rem; }
  .item { flex-direction: column; }
  .hero { flex-direction: column-reverse; align-items: flex-start; }
}

.item .t a { display: inline; }
