:root {
  color-scheme: light;
  --ink: #202c26;
  --muted: #535e56;
  --line: #c6ccc3;
  --paper: #fafaf6;
  --forest: #263f35;
  --accent: #c84d31;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { color: #14271d; background: #dce7bf; }
.wrap { width: min(68rem, calc(100% - clamp(2.5rem, 10vw, 8rem))); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2;
  padding: .5rem 1rem;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.masthead {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.075em;
}
.brand-mark {
  display: inline-block;
  width: .8rem;
  height: 1.3rem;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
nav a, .back-link {
  display: inline-block;
  padding-block: .55rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
nav a { text-decoration: none; }
nav a:hover, .back-link:hover { color: #a43d25; text-decoration: underline; }
.intro {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-block: clamp(2.5rem, 5.5vw, 5rem);
}
h1, h2, h3, p { margin: 0; }
.intro h1, .article h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.085em;
}
.intro h1 { font-size: clamp(3.1rem, 6.25vw, 5.4rem); line-height: 1.15; }
.full-stop { color: var(--accent); }
.intro-copy p { margin-top: 1.4rem; color: var(--muted); line-height: 1.85; }

/* An open ruled notebook printed in three inks. */
.print {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.75;
  background-color: var(--forest);
  background-image: radial-gradient(#90a38a55 .6px, transparent .85px);
  background-size: 5px 5px;
}
.book {
  position: absolute;
  width: 64%;
  height: 53%;
  top: 31%;
  left: 18%;
  transform: rotate(-9deg);
  filter: drop-shadow(6px 10px 0 rgb(7 29 23 / 42%));
}
.leaf {
  position: absolute;
  width: 50%;
  height: 100%;
  border: 1px solid #e5e4c7;
  box-shadow: 0 2px #888d73, 0 4px #e3dfbf, 0 6px #8d947b, 0 8px #e3dfbf, 0 11px #182c25;
}
.leaf-left {
  left: 0;
  transform-origin: right center;
  transform: skewY(13deg);
  border-radius: 5% 24% 0 3% / 3% 9% 0 2%;
  background: linear-gradient(90deg, #f2efd9 65%, #d1d1b4);
}
.leaf-right {
  right: 0;
  transform-origin: left center;
  transform: skewY(-13deg);
  border-radius: 24% 5% 3% 0 / 9% 3% 2% 0;
  background: linear-gradient(90deg, #d9d8bd, #fbf6df 15%);
}
.ruling {
  position: absolute;
  inset: 18% 12% 12%;
  background: repeating-linear-gradient(to bottom, #89907c 0 1px, transparent 1px 12%);
  opacity: .65;
}
.ribbon {
  position: absolute;
  top: -1%;
  right: 20%;
  width: 13%;
  height: 116%;
  background: #e26342;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 94%, 0 100%);
}

.entries { scroll-margin-top: 1.5rem; margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-head, .entry { display: flex; justify-content: space-between; gap: 1rem; }
.section-head {
  align-items: baseline;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.04em; }
.section-head span, time, .status-code {
  color: var(--muted);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.entry {
  align-items: baseline;
  padding-block: clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.entry h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; letter-spacing: -.065em; }
.entry p { margin-top: .35rem; color: var(--muted); }
.entry time { flex-shrink: 0; }
.entry:hover h3, .entry:focus-visible h3 { color: #a43d25; text-decoration: underline; text-underline-offset: .2em; }
.reading { flex: 1; }
.article { max-width: 40rem; margin: clamp(3.25rem, 8vw, 7rem) auto; }
.article h1 { margin-block: .8rem 2rem; font-size: clamp(2.45rem, 5.7vw, 4.1rem); line-height: 1.28; }
.prose { padding-top: 1.8rem; border-top: 1px solid var(--line); }
.prose p { margin-bottom: 1.2rem; font-size: 1.09rem; line-height: 1.95; }
.back-link { margin-top: 1.2rem; }
footer { margin-top: auto; border-top: 1px solid var(--line); padding-block: 1.2rem; color: var(--muted); }
footer small { font-size: .8125rem; }

@media (max-width: 43rem) {
  .masthead { min-height: 4rem; }
  .intro { grid-template-columns: 1fr; gap: 1.7rem; margin-block: 2.25rem; }
  .intro-copy p { margin-top: .9rem; }
  .wide-break { display: none; }
  .print { aspect-ratio: 2.15; }
  .book { width: 55%; left: 22.5%; }
  .entry { flex-direction: column; gap: .65rem; }
}
