:root {
  --royal-blue: #223673;
  --navy:       #1a2332;
  --gold:       #b8965a;
  --gold-light: #d4ae78;
  --text:       #1e160a;
  --text-mid:   #3a2f20;
  --text-light: #7a6e5a;
  --rule:       #c0b49a;
  --link:       #2e4e7a;
  --paper:      #f5f0e8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text);
  background-color: #e8e0d0;
  background-attachment: fixed;
  background-size: cover;
}

/* NAV */
nav {
  background: var(--royal-blue);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
nav.nav-visible { transform: translateY(0); }

.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 52px;
}
.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 600;
}
/* BANNER */
.banner {
  background: var(--royal-blue);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,150,90,0.14) 0%, transparent 68%);
  pointer-events: none;
}
.banner-ornament {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  margin-bottom: 1.2rem;
  opacity: 0.65;
}
.banner h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #f0e8d8;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.banner-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* PAGE CARD — parchment sheet over satin */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}
.card {
  background: var(--paper);
  background-image:
	repeating-linear-gradient(
	  0deg,
	  rgba(0,0,0,0.012) 0px,
	  rgba(0,0,0,0.012) 1px,
	  transparent 1px,
	  transparent 3px
	),
	linear-gradient(180deg, #f8f3ea 0%, #f2ece0 100%);
  margin: 2.5rem auto 3rem;
  padding: 3.5rem 4rem 4rem;
  box-shadow:
	0 2px 6px rgba(0,0,0,0.18),
	0 10px 38px rgba(0,0,0,0.14),
	inset 0 1px 0 rgba(255,255,255,0.55);
  border: 1px solid rgba(175,155,115,0.3);
}

/* BODY TEXT */
p {
  font-size: 1.02rem;
  color: var(--text-mid);
  margin-bottom: 0.9em;
}
p:last-child { margin-bottom: 0; }

/* Drop cap on opening paragraph */
.lead-para::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  font-weight: 600;
  float: left;
  line-height: 0.78;
  margin: 0.1em 0.07em 0 0;
  color: var(--royal-blue);
}

/* Indented italic pull for the definition */
.pull {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.16rem;
  color: var(--text);
  line-height: 1.72;
  padding: 0.15rem 0 0.15rem 1.6rem;
  border-left: 2px solid var(--gold);
  margin: 0 0 1.6rem 0;
}

/* RAZOR BULLET LIST */
.razor-list {
  list-style: disc;
  margin: 0.8rem 0 0.8rem 1.4rem;
  padding: 0;
}
.razor-list li {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.75em;
  padding-left: 0.3rem;
}
.razor-list li:last-child { margin-bottom: 0; }
.razor-list .razor-name {
  font-weight: 600;
  color: var(--royal-blue);
}
.razor-list .razor-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.razor-list .razor-name a:hover { color: var(--link); border-color: var(--gold); }
.razor-list a { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--rule); }
.razor-list a:hover { border-color: var(--gold); }

/* SOLE SUBHEADING */
.subheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  color: var(--royal-blue);
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

/* AUTHOR NOTE */
.author-note {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 0;
}
.author-note a { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--rule); }
.author-note a:hover { border-color: var(--gold); }

/* FOOTER */
footer {
  background: var(--royal-blue);
  color: #7a8a9a;
  text-align: center;
  padding: 1.8rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  border-top: 2px solid var(--gold);
}
footer a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .card { padding: 2rem 1.6rem 2.5rem; margin: 1.2rem auto 2rem; }
  .page-wrap { padding: 0 0.8rem; }
  .nav-inner { padding: 0 1.2rem; }
  .index-grid { grid-template-columns: repeat(2, auto); }
  .index-grid a:nth-child(5) { grid-column: auto; }
  .razor-entry { grid-template-columns: 1fr; gap: 0.15rem; }
}