:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #65706d;
  --line: #dde4df;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --accent: #b23a48;
  --accent-2: #16666b;
  --soft: #eef5f1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--accent-2); }
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  background: var(--white);
}
nav a.active {
  color: white;
  border-color: var(--accent-2);
  background: var(--accent-2);
}
main {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0 14px 56px;
}
.hero {
  padding: 28px 0 12px;
}
.hero p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}
.notion {
  padding-bottom: 24px;
}
h2, h3, h4 {
  margin: 28px 0 10px;
  line-height: 1.18;
  letter-spacing: 0;
}
h2 {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 25px;
}
h3 { font-size: 20px; }
h4 { font-size: 17px; color: var(--accent-2); }
p, li { font-size: 16px; }
p { margin: 0 0 12px; }
ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
li { margin: 0 0 8px; }
figure {
  margin: 16px 0 20px;
}
.diary-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0 4px;
}
.diary-gallery figure {
  margin: 0;
}
img, video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: #e9ece8;
}
figcaption, .muted, footer {
  color: var(--muted);
  font-size: 13px;
}
blockquote, .callout, details.entry, pre {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
blockquote {
  border-left: 4px solid var(--accent);
}
.callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.callout p { margin: 0; }
summary {
  cursor: pointer;
  font-weight: 700;
}
details.city {
  margin: 16px 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
}
details.city > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  list-style: none;
}
details.city > summary h2 {
  margin: 0;
  padding: 0;
  border-top: 0;
}
details.city > summary::marker,
details.city > summary::-webkit-details-marker {
  display: none;
  content: "";
}
details.city > summary::before {
  content: ">";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  transition: transform .16s ease;
}
details.city[open] > summary::before {
  transform: rotate(90deg);
}
pre {
  overflow-x: auto;
  background: #18201f;
  color: #f7f5ef;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}
.todo {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
}
.link-card {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 0;
}
.city-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.city-card::after {
  content: ">";
  color: var(--accent);
}
footer {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0 14px 28px;
}
@media (min-width: 720px) {
  .top { justify-content: center; }
  h1 { font-size: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .diary-gallery { grid-template-columns: repeat(2, 1fr); }
}
