@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* rourepress.com — a publishing house in the classical manner.
   Gold is rouregold (#9A793A), from the papers' title pages. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #faf8f3;
  --ink: #1c1a17;
  --gold: #9a793a;
  --rule: #ddd5c4;
  --rule-soft: #e8e2d4;
  --muted: #6f6a5f;
}

html {
  font-size: 19px;
}

body {
  font-family: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "onum" 1, "liga" 1;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0 1rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 2rem;
  width: auto;
}

.brand .wordmark {
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 1.2rem;
  font-weight: 500;
}

nav.site-nav {
  font-variant: small-caps;
  letter-spacing: 0.07em;
  font-size: 0.95rem;
}

nav.site-nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 1.5em;
}

nav.site-nav a:first-child { margin-left: 0; }

nav.site-nav a:hover,
nav.site-nav a.here {
  border-bottom: 1px solid var(--gold);
}

/* ---- Hero (front page) ---- */

.hero {
  text-align: center;
  padding: 3.4rem 0 0.6rem;
}

.hero .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.hero .ornament::before,
.hero .ornament::after {
  content: "";
  width: 5rem;
  border-top: 1px solid var(--gold);
}

.hero img {
  width: 150px;
  height: auto;
}

.hero h1 {
  font-variant: small-caps;
  font-weight: 500;
  letter-spacing: 0.24em;
  font-size: 2rem;
  line-height: 1.2;
}

.hero .tagline {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

/* ---- General typography ---- */

main {
  padding-bottom: 2rem;
}

h1.page-title {
  font-weight: normal;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 2.8rem 0 0.6rem;
}

.page-note {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}

h2 {
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  margin: 2.8rem 0 1rem;
  color: var(--gold);
}

h3 {
  font-weight: 500;
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}

p { margin-bottom: 1rem; }

.measure { max-width: 35rem; }

a {
  color: var(--ink);
  text-decoration-color: #b3aa88;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

em, i { font-style: italic; }

hr.flourish {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem auto;
  width: 38%;
}

/* ---- Book feature / catalogue entry ---- */

.book-entry {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 2.2rem;
  align-items: start;
  margin: 2.2rem 0;
}

.book-entry .cover {
  width: 100%;
  mix-blend-mode: multiply;
}

.book-entry .title {
  font-size: 1.35rem;
  line-height: 1.3;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.book-entry .title a { text-decoration: none; }

.book-entry .byline {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.editions {
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
  margin-top: 1.2rem;
  padding-top: 0.8rem;
}

.editions li { margin-bottom: 0.15rem; }

/* ---- Series & papers ---- */

.series {
  border: 1px solid var(--rule);
  padding: 1.5rem 1.7rem 1.2rem;
  margin: 2rem 0;
  background: #fdfcf8;
}

.series .series-name {
  font-variant: small-caps;
  letter-spacing: 0.07em;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.series .series-name a { text-decoration: none; }

.papers {
  list-style: none;
}

.papers li {
  margin-bottom: 1.3rem;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.papers li::before {
  content: "·";
  padding-right: 0.75em;
  color: var(--gold);
}

.papers .title { font-style: italic; }

.papers .status {
  font-size: 0.9rem;
  color: var(--muted);
}

.topics { list-style: none; }

.topics li {
  margin-bottom: 0.55rem;
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.topics li::before {
  content: "·";
  padding-right: 0.75em;
  color: var(--gold);
}

/* ---- Front-page section links ---- */

.more {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.6rem 0 2.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

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

.site-footer .oak {
  height: 1.6rem;
  width: auto;
  display: block;
  margin: 0 auto 0.6rem;
  opacity: 0.85;
}

@media (max-width: 560px) {
  html { font-size: 17px; }
  .hero img { width: 120px; }
  .hero h1 { font-size: 1.55rem; }
  .book-entry {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .book-entry .cover {
    width: 200px;
    max-width: 70%;
    margin: 0 auto;
  }
}
