/* Academic overlay on Holiday CSS — book-like reading column */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=PT+Serif:wght@400;700&display=swap');

:root {
  --paper: #fbfaf6;
  --ink: #1a1a1a;
  --rule: #c9c2b2;
  --accent: #6b2b2b;
  --muted: #5a5550;
  --footnote: #6e6a64;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'PT Serif', 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4rem;
}

h1, h2, h3, h4 {
  font-family: 'Lora', 'PT Serif', serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.22;
  color: var(--ink);
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 0.4rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.6rem;
}

h2 {
  font-size: 1.28rem;
  margin-top: 2.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.08rem;
  margin-top: 1.6rem;
  font-style: italic;
}

p { margin: 0.85rem 0; }

.subtitle {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 0.98rem;
}

.byline {
  font-size: 0.86rem;
  color: var(--footnote);
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dotted var(--rule);
}

.abstract {
  background: #f4f0e6;
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.96rem;
}

.abstract::before {
  content: "Abstract.";
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  margin-right: 0.4em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  font-family: 'Lora', serif;
}

th, td {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

th {
  background: #efeadf;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  font-weight: 700;
}

caption {
  caption-side: bottom;
  font-size: 0.84rem;
  color: var(--footnote);
  font-style: italic;
  padding-top: 0.4rem;
}

blockquote {
  border-left: 2px solid var(--rule);
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
  font-style: italic;
}

.bracket {
  font-family: 'Courier New', monospace;
  white-space: pre;
  background: #f4f0e6;
  border: 1px solid var(--rule);
  padding: 1rem;
  font-size: 0.82rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  line-height: 1.4;
}

.footnotes {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--footnote);
}

.footnotes ol { padding-left: 1.3rem; }
.footnotes li { margin: 0.35rem 0; }

.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0.4rem;
  padding: 0.9rem 1rem;
  background: #f0ebde;
  border: 1px solid var(--rule);
}

.cta-row p { margin: 0; font-size: 0.94rem; }

a.cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fbfaf6;
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent);
}

a.cta:hover { background: #4f1f1f; }

nav.top {
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

nav.top a { color: var(--accent); text-decoration: none; }
nav.top a:hover { text-decoration: underline; }

.crumbs {
  font-size: 0.82rem;
  color: var(--footnote);
  margin-bottom: 1rem;
}

.crumbs a { color: var(--muted); }

footer.site {
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
  font-size: 0.82rem;
  color: var(--footnote);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

code {
  background: #efeadf;
  padding: 0.05rem 0.3rem;
  font-size: 0.88em;
  border-radius: 2px;
}

@media (max-width: 620px) {
  body { padding: 1.4rem 1rem 3rem; font-size: 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.16rem; }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  a.cta { width: 100%; text-align: center; }
  nav.top { flex-direction: column; gap: 0.3rem; }
  table { font-size: 0.84rem; }
  th, td { padding: 0.35rem 0.4rem; }
}
