:root {
  --page: #f6e9dc;
  --ink: #261f1d;
  --mark: #4c326d;
  --hair: #cdbbab;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  color: var(--ink);
  font: 1.05rem/1.55 Georgia, "Iowan Old Style", serif;
}

a { color: var(--mark); }

.open, .next, .end {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.top, .end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 2rem));
  min-height: 4.05rem;
  margin-inline: auto;
  padding: 0;
  border-bottom: 1px solid var(--hair);
}

.name { color: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; }
.name span { color: var(--mark); }

nav { display: flex; align-items: center; gap: 1rem; font: 1rem/1.2 system-ui, sans-serif; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

.label {
  margin: 0;
  font: 700 0.7rem/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 { margin: 0.3rem 0 0.4rem; font-size: 3.15rem; font-weight: 500; line-height: 0.98; }
.summary { max-width: 38rem; font-size: 1.16rem; }
.open { padding: 2.15rem 0 0.2rem; }

.file {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.5rem;
  width: min(1080px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 2rem 0;
  background: #fff8f1;
}

pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow: auto;
  background: #fff;
  border-left: 3px solid var(--mark);
  font: 0.9rem/1.45 ui-monospace, Consolas, monospace;
}

.go {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.65rem 0.95rem;
  background: var(--mark);
  color: var(--page);
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
}

.next {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.75rem;
  padding: 2rem 0 2.2rem;
}

.end { font: 0.9rem/1.4 "Segoe UI", sans-serif; }

@media (max-width: 800px) {
  .file, .next, .top { display: grid; grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
}
