/* Matches nataliebhogg.com (WordPress Zoologist theme, customised):
   EB Garamond throughout, cream background, crimson underlined links,
   square corners, 664px content column. */

:root {
  --bg: #f0ebd9;
  --ink: #2b2620;
  --muted: #645b4f;
  --rule: rgba(43, 38, 32, .2);
  --link: #dc143c;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --content: 664px;
  --gutter: min(30px, 5vw);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
a:hover, a:focus { text-decoration: none; }

button, input, select { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: .4rem .8rem; }
.skip:focus { top: 1rem; }

/* ---- Site header (mirrors the WordPress header) ------------------------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem 2rem;
  padding: 30px var(--gutter);
}
.site-id { display: flex; align-items: baseline; gap: 1.25rem; }
.site-title {
  color: var(--ink); text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
}
.site-tagline { font-size: 1rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ---- Page --------------------------------------------------------------- */

.page {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

h1 {
  margin: 1.5rem 0 1.75rem;
  font-size: min(max(3rem, 7vw), 5rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Search, hint, active filters --------------------------------------- */

html:not(.js) .controls { display: none; }

.search {
  width: 100%;
  padding: .55rem .8rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: transparent;
  font-size: 1.125rem;
  appearance: none;
}
.search::placeholder { color: var(--muted); opacity: 1; }
.search:focus { outline: none; box-shadow: 0 0 0 1px var(--ink); }

.hint { margin: .6rem 0 0; font-size: 1rem; color: var(--muted); }

.status {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--ink);
  font-size: 1rem;
}
.count { margin: 0; color: var(--muted); }

.active { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.active-filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .05rem .55rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: transparent;
  font-size: 1rem; line-height: 1.5;
  cursor: pointer;
}
.active-filter:hover { border-color: var(--link); color: var(--link); }
.active-filter .x { font-size: .85em; }

.clear {
  padding: 0; border: 0; background: none;
  color: var(--link); text-decoration: underline; text-underline-offset: .12em;
  font-size: 1rem; cursor: pointer;
}
.clear:hover { text-decoration: none; }


/* ---- List --------------------------------------------------------------- */

.list { list-style: none; margin: 0; padding: 0; }

.item { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--rule); }
.item:last-child { border-bottom: 0; }

.meta { margin: 0; font-size: 1rem; color: var(--muted); }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--link); text-decoration: underline; }

.item-title {
  margin: .1rem 0 .2rem;
  font-size: 1.6rem; font-weight: 500; line-height: 1.25;
  text-wrap: pretty;
}
.item-title a { color: var(--ink); text-decoration: none; }
.item-title a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }

.byline { margin: 0; font-size: 1.05rem; color: var(--muted); }
.byline .authors { color: var(--ink); }

.sep { margin: 0 .35em; color: var(--muted); }

.note { margin: .5rem 0 0; font-style: italic; }

.tags { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.6; }
.tag-start { font-weight: 600; }
.tag.is-active { color: var(--ink); text-decoration: none; background: rgba(220, 20, 60, .12); }

.empty { padding: 2.5rem 0; font-style: italic; text-align: center; color: var(--muted); }

/* ---- Tag index ---------------------------------------------------------- */

.tag-index { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.tag-index h2 { margin: 0 0 .5rem; font-size: 1.6rem; font-weight: 500; }
.index-group h3 { margin: 1rem 0 .1rem; font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); }
.index-group p { margin: 0; line-height: 1.9; }
.index-entry { margin-right: 1rem; white-space: nowrap; }
.index-entry .n { margin-left: .25rem; font-size: .85em; color: var(--muted); }

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

.footer { margin-top: 3rem; font-size: 1rem; color: var(--muted); }
.footer p { margin: .2rem 0; }

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 600px) {
  .site-header { padding-top: 20px; padding-bottom: 10px; }
  .site-id { gap: .75rem; }
  h1 { margin-top: .75rem; }
  .item-title { font-size: 1.4rem; }
}
