:root {
  --masthead-height: 76px;
  --site-margin: max(5vw, calc((100vw - 1390px) / 2));
  --site-paper: #f5efe6;
  --site-ink: #231f1b;
  --site-accent: #8a624a;
  --site-line: #ded0c2;
  --site-photo-radius: 14px;
}
html:has(.site-masthead) { scroll-padding-top: var(--masthead-height); }
.site-masthead {
  box-sizing: border-box;
  position: sticky;
  inset: 0 0 auto;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--masthead-height);
  padding: 0 var(--site-margin);
  border-bottom: 1px solid var(--site-line);
  background: var(--site-paper);
  color: var(--site-ink);
  font-family: Manrope, sans-serif;
}
.site-masthead.masthead-over-image { position: fixed; }
.site-masthead .masthead-logo { display: flex; flex: 0 1 275px; min-width: 0; }
.site-masthead .masthead-logo img { display: block; width: min(275px,100%); height: auto; max-height: 50px; object-fit: contain; }
.site-masthead .masthead-nav { display: flex; flex-wrap: nowrap; gap: clamp(11px,1.45vw,24px); align-items: center; }
.site-masthead .masthead-nav a,
.site-masthead button {
  font: 600 11px/1.3 Manrope, sans-serif;
  letter-spacing: .105em;
  text-transform: uppercase;
  color: var(--site-ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-masthead a[aria-current="page"] { color: var(--site-accent); text-decoration: underline; text-underline-offset: 5px; }
.site-masthead a:focus-visible, .site-masthead button:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; }
.site-masthead .masthead-toggle,
.site-masthead .masthead-close {
  background: none;
  border: 0;
  border-left: 1px solid var(--site-line);
  cursor: pointer;
  padding: 14px 0 14px 15px;
}
.site-masthead .masthead-toggle { display: none; }
.site-masthead .masthead-dialog:not([open]) { display: none; }
.site-masthead .masthead-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0 var(--site-margin) 28px;
  background: var(--site-paper);
  color: var(--site-ink);
}
html:has(.masthead-dialog[open]) { overflow: hidden; }
.masthead-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--masthead-height);
  border-bottom: 1px solid var(--site-line);
}
.site-masthead .masthead-dialog nav {
  display: grid;
  gap: 0;
  padding: 20px 0;
}
.site-masthead .masthead-dialog nav a {
  font: 400 clamp(24px,5vw,35px)/1.13 'Cormorant Garamond', Georgia, serif;
  letter-spacing: normal;
  text-transform: none;
  display: block;
  color: var(--site-ink);
  padding: 11px 0;
  border-bottom: 1px solid var(--site-line);
}
.site-masthead .masthead-dialog nav a[aria-current] { color: var(--site-accent); }
.eb-journal .featured-image, .eb-journal .article-card > picture,
.eb-article .article-image, .eb-article .article-image img {
  border-radius: var(--site-photo-radius);
}
.eb-portfolio main .frame { border-radius: var(--site-photo-radius); }
.eb-home .hero-image img { border-radius: 999px 999px 26px 26px; }
@media(max-width:1020px) {
  :root { --masthead-height: 66px; --site-margin: 6vw; }
  .site-masthead .masthead-logo { flex-basis: 232px; }
  .site-masthead .masthead-nav { display: none; }
  .site-masthead .masthead-toggle { display: block; }
}
.eb-journal, .eb-article {
  --bg: #f5efe6;
  --paper: #fffaf4;
  --ink: #231f1b;
  --line: #ded0c2;
  --accent: #8a624a;
}
.eb-journal .hero-link,
.eb-journal .journal-cta .cta-copy > a,
.eb-article .cta-actions .primary,
.eb-article .cta-actions .secondary,
.eb-portfolio .final .final-copy > a { border-radius: 999px; }
