@font-face {
  font-family: "AG Instrument";
  src: url("media/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.ag-dossier {
  --ag-ink: #fff4dd;
  --ag-muted: #e1c7a7;
  --ag-gold: #ffcb81;
  --ag-rule: #805c3c;
  --ag-type: "AG Instrument", Georgia, serif;
  --ag-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  position: fixed;
  inset: 0;
  width: min(61rem, calc(100vw - 4rem));
  max-width: none;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #bd9563;
  border-radius: .75rem;
  background: #25160e;
  color: var(--ag-ink);
  font: 400 1rem/1.5 var(--ag-sans);
  text-align: left;
  text-shadow: none;
  color-scheme: dark;
  box-shadow: 0 2rem 6rem #120a06ab, inset 0 0 0 1px #ffffff12;
}
.ag-dossier:not([open]) { display: none !important; }
.ag-dossier[open] { display: block; }
.ag-dossier::backdrop { background: rgba(22,12,8,.72); }
@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))) {
  .ag-dossier::backdrop { background: rgba(24,14,9,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.ag-dossier * { box-sizing: border-box; }
.ag-dossier h2, .ag-dossier h3, .ag-dossier p, .ag-dossier figure { margin: 0; }
.ag-dossier img { display: block; max-width: 100%; }
.ag-dossier a, .ag-dossier button { font: inherit; }
.ag-dossier button { appearance: none; cursor: pointer; }
.ag-dossier button:disabled { cursor: default; }
.ag-dossier [hidden] { display: none !important; }
.ag-dossier :focus-visible { outline: 3px solid #ffaa54; outline-offset: 3px; }
.ag-dossier h2:focus, #ag-window-title:focus { outline: none; }
.ag-dossier a { color: inherit; }
.ag-dossier-frame { display: flex; flex-direction: column; max-height: inherit; }
.ag-window-bar {
  display: flex;
  align-items: center;
  flex: none;
  gap: 1rem;
  min-height: 3.65rem;
  padding: .42rem 1.45rem;
  border-bottom: 1px solid var(--ag-rule);
  background: linear-gradient(105deg,#312218,#281b13);
}
.ag-home, .ag-exit {
  color: var(--ag-ink);
  border: 0;
  background: transparent;
}
.ag-dossier .ag-home { font-size: 1.23rem; font-weight: 650; letter-spacing: -.065em; padding: .42rem .125rem; }
.ag-home span { font-weight: 440; }
.ag-window-divider { width: 1px; height: 1.15rem; background: #977357; }
#ag-window-title, .ag-dossier .ag-exit-label { font-size: .86rem; color: var(--ag-muted); letter-spacing: .012em; }
.ag-exit { margin-left: auto; display: flex; gap: .55rem; align-items: center; justify-content: center; padding: .25rem .15rem .25rem .65rem; }
.ag-close-icon { width: 1.82rem; height: 1.82rem; border: 1px solid #8d6a4b; border-radius: 50%; display: grid; place-content: center; line-height: 1; font-size: 1.35rem; font-weight: 300; }
.ag-exit:hover .ag-close-icon { border-color: var(--ag-ink); color: white; }
.ag-window-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #866247 #26180f;
  background: radial-gradient(ellipse at 90% 0%,#51321e80,transparent 65%),#261a14;
}
.ag-directory-nav { display: flex; gap: clamp(1.15rem,3vw,2.5rem); margin: 0 clamp(1.25rem,5vw,3.2rem); border-bottom: 1px solid #664831; }
.ag-directory-nav button { padding: 1rem 0 .85rem; border: 0; border-bottom: 2px solid transparent; color: var(--ag-muted); background: none; font-weight: 500; font-size: .94rem; }
.ag-directory-nav button:hover, .ag-directory-nav button[aria-current] { color: var(--ag-gold); }
.ag-directory-nav button[aria-current] { border-bottom-color: currentColor; }
.ag-dossier .ag-page-pad, .ag-dossier .ag-spread { padding: clamp(1.6rem,4.5vw,3.2rem); }
.ag-dossier .ag-page h2 { color: inherit; font: 400 clamp(2.8rem,5.7vw,4.5rem)/.98 var(--ag-type); letter-spacing: -.026em; }
.ag-spread { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(1.5rem,4.5vw,3.65rem); }
.ag-portrait { overflow: hidden; background: #37281d; border: 1px solid #7c5d45; }
.ag-portrait img { width: 100%; aspect-ratio: .84; object-fit: cover; object-position: 50% 39%; }
.ag-dossier .ag-eyebrow { color: var(--ag-gold); font: 500 .83rem/1.35 var(--ag-sans); letter-spacing: .04em; }
.ag-writing .ag-eyebrow { margin-bottom: .72rem; }
.ag-writing > p:not(.ag-eyebrow), .ag-atlas-lede, .ag-inno p { color: #e9d7be; margin-top: 1.15rem; max-width: 43ch; font-size: 1.02rem; line-height: 1.58; }
.ag-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.4rem; margin-top: 1.5rem; }
.ag-dossier .ag-action {
  border: none;
  background: transparent;
  color: var(--ag-gold);
  padding: .3rem 0;
  text-decoration: underline;
  text-decoration-color: #a77746;
  text-underline-offset: .3rem;
  font-size: .95rem;
}
.ag-action:hover { text-decoration-color: currentColor; color: white; }
.ag-project-list, .ag-menu-rows { margin-top: 1.6rem; border-top: 1px solid var(--ag-rule); }
.ag-dossier .ag-project, .ag-dossier .ag-menu-rows button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1.25rem;
  border: none;
  border-bottom: 1px solid var(--ag-rule);
  background: transparent;
  text-decoration: none;
  text-align: left;
  color: inherit;
  padding: 1.15rem 0;
}
.ag-dossier .ag-project:hover, .ag-dossier .ag-menu-rows button:hover { background: #f6d4a70c; }
.ag-project-picture, .ag-project-tile { flex: 0 0 4.7rem; width: 4.7rem; aspect-ratio: 1.15; object-fit: cover; border: 1px solid #f5ddae34; border-radius: .2rem; }
.ag-project-tile { display: grid; place-content: center; }
.ag-project-tile.ag-vlogmi { background: #a2e990; color: #1f321d; font-size: 2.8rem; font-weight: 750; line-height: 1; letter-spacing: -.1em; }
.ag-project-tile.ag-based { background: #edddd0; color: #24150d; font-size: 1.04rem; font-weight: 800; letter-spacing: -.085em; }
.ag-project-copy { display: grid; gap: .22rem; flex: 1; }
.ag-project-copy strong, .ag-menu-rows strong { font: 400 2rem/1.05 var(--ag-type); color: #fff5de; }
.ag-project-copy > span:last-child { max-width: 42ch; font-size: 1rem; color: #e6d1b5; }
.ag-project-link, .ag-menu-rows button>span { margin-left: auto; font-size: .9rem; color: var(--ag-gold); }
.ag-project:hover .ag-project-link, .ag-menu-rows button:hover strong { text-decoration: underline; text-underline-offset: .25rem; }
.ag-inno { margin-top: 1.6rem; border-top: 1px solid var(--ag-rule); padding-top: 1.1rem; }
.ag-inno h3 { font: 400 1.85rem/1.1 var(--ag-type); }
.ag-inno p { margin-top: .5rem; }
.ag-award-photo { padding: .5rem; background: #d8c4a1; color: #38291b; box-shadow: 0 .6rem 1.2rem #10090445; }
.ag-award-photo img { width: 100%; height: auto; }
.ag-award-photo figcaption { padding: .38rem .2rem .06rem; font-size: .83rem; }
.ag-atlas-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; }
.ag-atlas-intro .ag-eyebrow { margin-bottom: .45rem; }
.ag-page .ag-atlas-lede { max-width: 65ch; margin-top: 1rem; }
.ag-atlas-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 .8rem; }
.ag-atlas-tools button { appearance: none; background: transparent; color: var(--ag-ink); border: 1px solid var(--ag-rule); border-radius: 1.25rem; padding: .48rem .93rem; font-size: .92rem; }
.ag-atlas-tools button[aria-pressed="true"] { background: var(--ag-gold); color: #2a1c10; border-color: var(--ag-gold); }
.ag-atlas-plate { display: grid; place-items: center; background: #151713; border: 1px solid #6b543e; padding: .7rem; }
.ag-atlas-plate img { max-height: min(44vh,24rem); width: 100%; object-fit: contain; }
.ag-atlas-figure figcaption { padding: .7rem 0 0; color: var(--ag-muted); font-size: .94rem; }
.ag-dossier[data-mode="album"] { width: min(61rem,calc(100vw - 4rem)); background: #ece0c8; color-scheme: light; }
.ag-dossier[data-mode="album"] .ag-window-scroll { background: #ece0c8; color: #332a20; scrollbar-color: #baa68c #e7d9c3; }
.ag-dossier[data-mode="album"] .ag-window-bar { background: #36271d; }
.ag-dossier[data-mode="album"] .ag-home, .ag-dossier[data-mode="album"] .ag-exit { color: #fff1da; }
@media (min-width: 761px) and (min-height: 680px) {
  .ag-dossier[data-mode="computer"] .ag-spread { min-height: min(52vh,32rem); }
}
@media (max-width: 690px) {
  .ag-dossier, .ag-dossier[data-mode="album"] { width: calc(100vw - 1.25rem); max-height: calc(100vh - 1.25rem); max-height: calc(100dvh - 1.25rem); border-radius: .55rem; }
  .ag-window-bar { min-height: 3.3rem; padding: .4rem 1rem; gap: .72rem; }
  .ag-directory-nav { margin: 0 1.15rem; }
  .ag-dossier .ag-page-pad, .ag-dossier .ag-spread { padding: 1.35rem 1.15rem 1.6rem; }
  .ag-spread { grid-template-columns: 1fr; gap: 1.25rem; }
  .ag-portrait { max-width: none; }
  .ag-portrait img { aspect-ratio: auto; height: clamp(9rem,29vh,15rem); object-position: 50% 37%; }
  .ag-recognition .ag-award-photo { width: min(100%,17rem); }
  .ag-recognition .ag-award-photo img { max-height: 10rem; object-fit: contain; }
  .ag-dossier .ag-project { display: grid; grid-template-columns: 3.65rem minmax(0,1fr); gap: .5rem 1rem; }
  .ag-project-picture, .ag-project-tile { width: 3.65rem; grid-row: span 2; }
  .ag-project-link { grid-column: 2; margin: 0; }
  .ag-project-copy strong { font-size: 1.75rem; }
  .ag-menu-rows button>span { text-align: right; }
}
@media (max-width: 420px) {
  .ag-dossier .ag-exit-label { display: none; }
  .ag-dossier .ag-project-picture, .ag-dossier .ag-project-tile { width: 3rem; }
  .ag-dossier .ag-project { grid-template-columns: 3rem minmax(0,1fr); }
  .ag-dossier .ag-project-tile.ag-based { font-size: .78rem; }
  .ag-project-copy .ag-eyebrow { font-size: .78rem; }
}
