* { box-sizing: border-box; }

:root {
  font-family: Georgia, "Times New Roman", serif;
  color: #171717;
  background: #e7dfc8;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.28), transparent 22rem),
    #e7dfc8;
}

a { color: inherit; }

.kilroy-nav,
.kilroy-footer {
  border-color: #171717;
  border-style: solid;
  background: rgba(255,255,255,.16);
}

.kilroy-nav {
  border-width: 0 0 2px;
  padding: .8rem 1rem;
  text-align: center;
}

.kilroy-nav a {
  display: inline-block;
  margin: 0 .25rem;
  padding: .3rem .45rem;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.kilroy-nav a:hover,
.kilroy-nav a:focus {
  border-color: #171717;
}

.kilroy-nav a[aria-current="page"] {
  background: #171717;
  color: #e7dfc8;
  border-color: #171717;
}

.kilroy-nav .kilroy-site-mark {
  display: block;
  width: fit-content;
  margin: 0 auto .55rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
}

.page-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.prose-page h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.tagline {
  max-width: 680px;
  margin: 1.5rem auto;
  font-size: 1.15rem;
  line-height: 1.55;
}

.kilroy-text {
  display: inline-block;
  margin: 1rem 0 0;
  padding: .35rem .55rem;
  border: 3px solid #171717;
  transform: rotate(-2deg);
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: .12em;
}

.tiny-kilroy {
  clear: both;
  margin: .75rem 0 1.25rem;
  line-height: 0;
}

.tiny-kilroy img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}

.tiny-kilroy-left img { margin-right: auto; }
.tiny-kilroy-right img { margin-left: auto; }

.cards,
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card,
.chapter-card {
  border: 2px solid #171717;
  padding: 1.25rem;
  background: rgba(255,255,255,.18);
}

.card h2,
.chapter-card h2,
.prose-page h2 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
}

.chapter-card .chapter-number {
  margin: 0 0 .45rem;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.chapter-card p { flex: 1; }

.button,
.coming-soon,
.chapter-link {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem .75rem;
  border: 2px solid #171717;
  font-weight: 700;
  text-decoration: none;
}

.coming-soon { border-style: dashed; }

.prose-page {
  max-width: 780px;
  line-height: 1.65;
}

.history-intro {
  font-size: 1.12rem;
  line-height: 1.7;
}

.chapter-deck {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
}

.chapter-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  margin: 2.75rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid #171717;
  font-weight: 700;
}

.prose-page > .chapter-nav:first-child {
  margin: 0 0 2.75rem;
  padding: 0 0 1rem;
  border-top: 0;
  border-bottom: 2px solid #171717;
}

.chapter-nav a { text-decoration: none; }
.chapter-nav .next { text-align: right; }
.chapter-nav .contents { text-align: center; }

.evidence-box,
.folklore-box {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 2px solid #171717;
  background: rgba(255,255,255,.17);
}

.evidence-box strong,
.folklore-box strong {
  display: block;
  margin-bottom: .35rem;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.folklore-box { border-style: dashed; }

.source-list li { margin-bottom: .9rem; }
.source-note { font-size: .92rem; }

.note {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 5px solid #171717;
  font-style: italic;
}

.resume-actions {
  max-width: 820px;
  margin: 0 auto 1rem;
  text-align: right;
}

.resume-sheet {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.25rem;
  border: 2px solid #171717;
  background: rgba(255,255,255,.34);
  box-shadow: 8px 8px 0 rgba(23,23,23,.14);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.45;
}

.resume-sheet h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4.25rem);
  line-height: 1;
  letter-spacing: .06em;
}

.resume-sheet > p:first-of-type {
  margin: .65rem 0 1.4rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #171717;
  text-align: center;
  font-weight: 700;
}

.resume-sheet > p:nth-of-type(2) {
  margin: 0 0 1.5rem;
  padding: .75rem 0;
  border-top: 1px solid #171717;
  border-bottom: 1px solid #171717;
  text-align: center;
}

.resume-sheet h2 {
  margin: 1.65rem 0 .55rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid #171717;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.resume-sheet h3 {
  margin: 1.15rem 0 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.resume-sheet h3 + p { margin: .15rem 0 .4rem; }
.resume-sheet ul { margin-top: .35rem; padding-left: 1.35rem; }
.resume-sheet li { margin-bottom: .3rem; }

.resume-editorial-note {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding-top: .8rem;
  border-top: 2px dashed #171717;
  font-size: .9rem;
  font-style: italic;
}

.resume-index-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.resume-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border: 2px solid #171717;
  padding: 1.25rem;
  background: rgba(255,255,255,.22);
}

.resume-card h2 {
  margin: 0 0 .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.resume-card > p { flex: 1; }

.resume-card > .button {
  display: block;
  width: 100%;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  border-radius: 0;
}

.resume-format-links {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid #171717;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.8;
}

.resume-source-link { margin-top: .45rem; }

.kilroy-footer {
  border-width: 2px 0 0;
  padding: 1rem;
  text-align: center;
  font-size: .9rem;
}

@media (max-width: 520px) {
  .kilroy-nav a {
    display: inline-block;
    margin: .25rem .2rem;
  }

  .page-shell { padding-top: 2rem; }

  .resume-sheet {
    padding: 1.25rem;
    box-shadow: 5px 5px 0 rgba(23,23,23,.14);
  }

  .resume-actions { text-align: left; }

  .chapter-nav {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-nav .contents {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
