@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pine: #09261e;
  --pine-deep: #071c16;
  --gold: #e9c58b;
  --gold-light: #fae0b5;
  --cream: #faf4e7;
  --paper: #f7f5ee;
  --surface: #fffdf8;
  --ink: #24342c;
  --line: #dcdcd0;
  --body: "DM Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; }
a { color: inherit; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #956027; outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  background: var(--surface);
  padding: .65rem 1rem;
}
.skip-link:focus { transform: none; }

#gallery {
  width: min(calc(100% - 2rem), 58rem);
  max-height: calc(100% - 2rem);
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
}
#gallery::backdrop { background: rgb(15 25 20 / 84%); }
html:has(#gallery[open]) { overflow: hidden; }
.dialog-header, .dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1.1rem;
}
.dialog-header h2 { font: 500 clamp(1.45rem, 3vw, 2rem)/1.07 var(--serif); }
.gallery-control {
  min-height: 2.75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b8bcaf;
  padding: .4rem .8rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .875rem;
}
.gallery-control:hover { background: #eadfc9; }
.gallery-frame { background: #22382e; color: var(--surface); }
.gallery-frame img { height: min(59vh, 38rem); object-fit: contain; }
.gallery-frame figcaption { padding: .45rem 1.1rem; font-size: .9rem; }
#gallery-count { font-size: .875rem; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .68rem;
  padding-block: .3rem;
  color: var(--cream);
  font: 500 clamp(1.12rem, 2vw, 1.65rem)/1 var(--serif);
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand-lockup img {
  width: clamp(2rem, 3.25vw, 2.9rem);
  height: auto;
}
.brand-lockup small {
  display: block;
  margin-top: .31rem;
  color: var(--gold);
  font: 700 .57em/1 var(--body);
  letter-spacing: .36em;
}
.brand-lockup:focus-visible { outline-color: var(--gold); }


@media (max-width: 22rem) {
  .brand-lockup { gap: .5rem; font-size: 1rem; }
  .brand-lockup img { width: 1.75rem; }
}
