@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500&display=swap');

:root {
  --paper: #f4ede2;
  --paper-deep: #ebe1d1;
  --ink: #3a2a1f;
  --ink-soft: #7a6352;
  --line: #d8cbb7;
  --moss: #5f6f47;
  --moss-soft: #8a9870;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* top bar on inner pages */
.bar {
  padding: 32px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.bar a:hover { color: var(--moss); }

/* homepage */
.home {
  flex: 1;
  display: flex;
  align-items: center;
}
.home h1 {
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.home .is { color: var(--ink); }
.home ul { list-style: none; margin-top: 28px; }
.home li { font-size: clamp(26px, 4vw, 34px); line-height: 1.5; }
.home li a {
  font-style: italic;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.home li a:hover { color: var(--moss); border-color: var(--moss-soft); }
.home li a::after { content: '…'; color: var(--line); }
.home .note {
  margin-top: 36px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 440px;
}

/* interactive cover */
.cover { position: relative; overflow-x: hidden; }
.cover main, .cover footer { position: relative; z-index: 2; }
.glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 160, 112, 0.14), rgba(138, 152, 112, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.typed {
  font-style: italic;
  color: var(--ink-soft);
  transition: color .3s;
}
.typed.linked { color: var(--moss); }
.caret {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  margin-left: 4px;
  vertical-align: -0.05em;
  background: var(--moss-soft);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .glow { display: none; }
}

/* inner pages */
.page { padding: 72px 0 96px; flex: 1; }
.page h1 {
  font-weight: 400;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.15;
}
.page h1 span { font-style: italic; color: var(--moss); }
.page .intro {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* reading */
.books { list-style: none; margin-top: 56px; }
.book {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.book:last-child { border-bottom: 1px solid var(--line); }
.book h2 { font-weight: 500; font-size: 26px; line-height: 1.25; }
.book .author {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--moss);
  margin-top: 4px;
}
.book p { margin-top: 12px; }

/* looking */
.photos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.photos figure { margin: 0; display: flex; flex-direction: column; }
.photos figure > img, .photos figure > .ph { flex: 1; }
.photos .tall { grid-row: span 2; }
.photos img, .photos .ph {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.photos .ph { background: var(--paper-deep); }
.photos .ph.b { background: #ddd0bb; }
.photos .ph.g { background: #cfd3bd; }
.photos figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

footer {
  padding: 32px 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .photos { grid-template-columns: 1fr; }
  .photos .tall { grid-row: auto; }
}
