/* To try a different maroon, change --accent. */
:root {
  --accent: #722436;
  --bg: #fbf8f4;
  --ink: #1d1a19;
  --muted: #6e6762;
  --line: #e6dfd8;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* header */
header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px 24px;
  padding-top: 40px; padding-bottom: 40px;
}
.name {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.name:hover { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a {
  font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); padding: 8px 11px;
}
nav a:hover, nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* main page */
.photo { margin: 0 0 36px; }
.photo img { display: block; width: 100%; height: auto; }
.prose p { margin: 0 0 20px; }
.prose .hi { margin-top: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 18px; }

.quote { margin: 36px 0 0; padding: 0; }
.quote p { margin: 0 0 6px; font-size: 16.5px; font-style: italic; line-height: 1.6; color: var(--muted); }
.quote cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* two-column main page */
.wrap.wide { max-width: 1000px; }
.two-col {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "side text"; gap: 56px; align-items: start;
}
.two-col .side { grid-area: side; position: sticky; top: 32px; }
.two-col .photo { margin: 6px 0 28px; }
.two-col .prose { grid-area: text; max-width: 600px; }

/* work page */
.work > * { max-width: 680px; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 32px; }
.group { margin: 0 0 40px; }
.group h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.group li:last-child { border-bottom: 0; }
.group .meta { display: block; color: var(--muted); font-size: 14.5px; }

/* footer */
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 56px; padding-top: 20px; padding-bottom: 48px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); font-weight: 500; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; grid-template-areas: "photo" "text"; gap: 0; }
  .two-col .side { display: contents; }
  .two-col .photo { grid-area: photo; max-width: 420px; margin: 0 0 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  header .wrap { padding-top: 28px; padding-bottom: 28px; }
  .prose .hi { font-size: 24px; }
}
