/* Pygments: default */
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.artwork .hll { background-color: #ffffcc }
.artwork { background: #f8f8f8; }
.artwork .c { color: #3D7B7B; font-style: italic } /* Comment */
.artwork .err { border: 1px solid #F00 } /* Error */
.artwork .k { color: #008000; font-weight: bold } /* Keyword */
.artwork .o { color: #666 } /* Operator */
.artwork .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.artwork .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.artwork .cp { color: #9C6500 } /* Comment.Preproc */
.artwork .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.artwork .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.artwork .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.artwork .gd { color: #A00000 } /* Generic.Deleted */
.artwork .ge { font-style: italic } /* Generic.Emph */
.artwork .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.artwork .gr { color: #E40000 } /* Generic.Error */
.artwork .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.artwork .gi { color: #008400 } /* Generic.Inserted */
.artwork .go { color: #717171 } /* Generic.Output */
.artwork .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.artwork .gs { font-weight: bold } /* Generic.Strong */
.artwork .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.artwork .gt { color: #04D } /* Generic.Traceback */
.artwork .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.artwork .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.artwork .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.artwork .kp { color: #008000 } /* Keyword.Pseudo */
.artwork .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.artwork .kt { color: #B00040 } /* Keyword.Type */
.artwork .m { color: #666 } /* Literal.Number */
.artwork .s { color: #BA2121 } /* Literal.String */
.artwork .na { color: #687822 } /* Name.Attribute */
.artwork .nb { color: #008000 } /* Name.Builtin */
.artwork .nc { color: #00F; font-weight: bold } /* Name.Class */
.artwork .no { color: #800 } /* Name.Constant */
.artwork .nd { color: #A2F } /* Name.Decorator */
.artwork .ni { color: #717171; font-weight: bold } /* Name.Entity */
.artwork .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.artwork .nf { color: #00F } /* Name.Function */
.artwork .nl { color: #767600 } /* Name.Label */
.artwork .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.artwork .nt { color: #008000; font-weight: bold } /* Name.Tag */
.artwork .nv { color: #19177C } /* Name.Variable */
.artwork .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.artwork .w { color: #BBB } /* Text.Whitespace */
.artwork .mb { color: #666 } /* Literal.Number.Bin */
.artwork .mf { color: #666 } /* Literal.Number.Float */
.artwork .mh { color: #666 } /* Literal.Number.Hex */
.artwork .mi { color: #666 } /* Literal.Number.Integer */
.artwork .mo { color: #666 } /* Literal.Number.Oct */
.artwork .sa { color: #BA2121 } /* Literal.String.Affix */
.artwork .sb { color: #BA2121 } /* Literal.String.Backtick */
.artwork .sc { color: #BA2121 } /* Literal.String.Char */
.artwork .dl { color: #BA2121 } /* Literal.String.Delimiter */
.artwork .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.artwork .s2 { color: #BA2121 } /* Literal.String.Double */
.artwork .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.artwork .sh { color: #BA2121 } /* Literal.String.Heredoc */
.artwork .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.artwork .sx { color: #008000 } /* Literal.String.Other */
.artwork .sr { color: #A45A77 } /* Literal.String.Regex */
.artwork .s1 { color: #BA2121 } /* Literal.String.Single */
.artwork .ss { color: #19177C } /* Literal.String.Symbol */
.artwork .bp { color: #008000 } /* Name.Builtin.Pseudo */
.artwork .fm { color: #00F } /* Name.Function.Magic */
.artwork .vc { color: #19177C } /* Name.Variable.Class */
.artwork .vg { color: #19177C } /* Name.Variable.Global */
.artwork .vi { color: #19177C } /* Name.Variable.Instance */
.artwork .vm { color: #19177C } /* Name.Variable.Magic */
.artwork .il { color: #666 } /* Literal.Number.Integer.Long */

/* Pygments: github-dark */
@media (prefers-color-scheme: dark) {
pre { line-height: 125%; }
td.linenos .normal { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; }
.artwork .hll { background-color: #6e7681 }
.artwork { background: #0d1117; color: #E6EDF3 }
.artwork .c { color: #8B949E; font-style: italic } /* Comment */
.artwork .err { color: #F85149 } /* Error */
.artwork .esc { color: #E6EDF3 } /* Escape */
.artwork .g { color: #E6EDF3 } /* Generic */
.artwork .k { color: #FF7B72 } /* Keyword */
.artwork .l { color: #A5D6FF } /* Literal */
.artwork .n { color: #E6EDF3 } /* Name */
.artwork .o { color: #FF7B72; font-weight: bold } /* Operator */
.artwork .x { color: #E6EDF3 } /* Other */
.artwork .p { color: #E6EDF3 } /* Punctuation */
.artwork .ch { color: #8B949E; font-style: italic } /* Comment.Hashbang */
.artwork .cm { color: #8B949E; font-style: italic } /* Comment.Multiline */
.artwork .cp { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Preproc */
.artwork .cpf { color: #8B949E; font-style: italic } /* Comment.PreprocFile */
.artwork .c1 { color: #8B949E; font-style: italic } /* Comment.Single */
.artwork .cs { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Special */
.artwork .gd { color: #FFA198; background-color: #490202 } /* Generic.Deleted */
.artwork .ge { color: #E6EDF3; font-style: italic } /* Generic.Emph */
.artwork .ges { color: #E6EDF3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.artwork .gr { color: #FFA198 } /* Generic.Error */
.artwork .gh { color: #79C0FF; font-weight: bold } /* Generic.Heading */
.artwork .gi { color: #56D364; background-color: #0F5323 } /* Generic.Inserted */
.artwork .go { color: #8B949E } /* Generic.Output */
.artwork .gp { color: #8B949E } /* Generic.Prompt */
.artwork .gs { color: #E6EDF3; font-weight: bold } /* Generic.Strong */
.artwork .gu { color: #79C0FF } /* Generic.Subheading */
.artwork .gt { color: #FF7B72 } /* Generic.Traceback */
.artwork .g-Underline { color: #E6EDF3; text-decoration: underline } /* Generic.Underline */
.artwork .kc { color: #79C0FF } /* Keyword.Constant */
.artwork .kd { color: #FF7B72 } /* Keyword.Declaration */
.artwork .kn { color: #FF7B72 } /* Keyword.Namespace */
.artwork .kp { color: #79C0FF } /* Keyword.Pseudo */
.artwork .kr { color: #FF7B72 } /* Keyword.Reserved */
.artwork .kt { color: #FF7B72 } /* Keyword.Type */
.artwork .ld { color: #79C0FF } /* Literal.Date */
.artwork .m { color: #A5D6FF } /* Literal.Number */
.artwork .s { color: #A5D6FF } /* Literal.String */
.artwork .na { color: #E6EDF3 } /* Name.Attribute */
.artwork .nb { color: #E6EDF3 } /* Name.Builtin */
.artwork .nc { color: #F0883E; font-weight: bold } /* Name.Class */
.artwork .no { color: #79C0FF; font-weight: bold } /* Name.Constant */
.artwork .nd { color: #D2A8FF; font-weight: bold } /* Name.Decorator */
.artwork .ni { color: #FFA657 } /* Name.Entity */
.artwork .ne { color: #F0883E; font-weight: bold } /* Name.Exception */
.artwork .nf { color: #D2A8FF; font-weight: bold } /* Name.Function */
.artwork .nl { color: #79C0FF; font-weight: bold } /* Name.Label */
.artwork .nn { color: #FF7B72 } /* Name.Namespace */
.artwork .nx { color: #E6EDF3 } /* Name.Other */
.artwork .py { color: #79C0FF } /* Name.Property */
.artwork .nt { color: #7EE787 } /* Name.Tag */
.artwork .nv { color: #79C0FF } /* Name.Variable */
.artwork .ow { color: #FF7B72; font-weight: bold } /* Operator.Word */
.artwork .pm { color: #E6EDF3 } /* Punctuation.Marker */
.artwork .w { color: #6E7681 } /* Text.Whitespace */
.artwork .mb { color: #A5D6FF } /* Literal.Number.Bin */
.artwork .mf { color: #A5D6FF } /* Literal.Number.Float */
.artwork .mh { color: #A5D6FF } /* Literal.Number.Hex */
.artwork .mi { color: #A5D6FF } /* Literal.Number.Integer */
.artwork .mo { color: #A5D6FF } /* Literal.Number.Oct */
.artwork .sa { color: #79C0FF } /* Literal.String.Affix */
.artwork .sb { color: #A5D6FF } /* Literal.String.Backtick */
.artwork .sc { color: #A5D6FF } /* Literal.String.Char */
.artwork .dl { color: #79C0FF } /* Literal.String.Delimiter */
.artwork .sd { color: #A5D6FF } /* Literal.String.Doc */
.artwork .s2 { color: #A5D6FF } /* Literal.String.Double */
.artwork .se { color: #79C0FF } /* Literal.String.Escape */
.artwork .sh { color: #79C0FF } /* Literal.String.Heredoc */
.artwork .si { color: #A5D6FF } /* Literal.String.Interpol */
.artwork .sx { color: #A5D6FF } /* Literal.String.Other */
.artwork .sr { color: #79C0FF } /* Literal.String.Regex */
.artwork .s1 { color: #A5D6FF } /* Literal.String.Single */
.artwork .ss { color: #A5D6FF } /* Literal.String.Symbol */
.artwork .bp { color: #E6EDF3 } /* Name.Builtin.Pseudo */
.artwork .fm { color: #D2A8FF; font-weight: bold } /* Name.Function.Magic */
.artwork .vc { color: #79C0FF } /* Name.Variable.Class */
.artwork .vg { color: #79C0FF } /* Name.Variable.Global */
.artwork .vi { color: #79C0FF } /* Name.Variable.Instance */
.artwork .vm { color: #79C0FF } /* Name.Variable.Magic */
.artwork .il { color: #A5D6FF } /* Literal.Number.Integer.Long */
}

/* Museum */
/* A white-cube gallery. Walls, frames, mattes, labels. Nothing else. */

:root {
  color-scheme: light dark;
  --wall: #f3f1ec;
  --wall-deep: #e9e6df;
  --ink: #1c1b19;
  --muted: #5e5952;
  --accent: #7a2e2e;
  --frame: #2a2622;
  --matte: #fbfaf7;
  --hairline: #d6d1c6;
  --shadow: 0 18px 40px -24px rgba(30, 20, 10, .55), 0 2px 6px -2px rgba(30, 20, 10, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #141418;
    --wall-deep: #0e0e11;
    --ink: #e6e3dc;
    --muted: #a7a197;
    --accent: #d9a0a0;
    --frame: #d8d3c8;
    --matte: #1c1c21;
    --hairline: #33333a;
    --shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 2px 8px -2px rgba(0, 0, 0, .6);
  }
}

/* --- walls ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html { background: var(--wall); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* a faint plaster grain on the walls; inline SVG, no request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

/* --- entrance ------------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  color: var(--ink);
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  font-size: 1.05rem;
}
.wordmark:hover { text-decoration: none; color: var(--accent); }
.wordmark-of { font-variant-caps: normal; font-style: italic; letter-spacing: 0; opacity: .7; }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--muted);
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.site-footer {
  padding: 3rem var(--gutter) 4rem;
  color: var(--muted);
  font-size: .85rem;
  max-width: 40rem;
}

main { padding: 0 var(--gutter); }

/* --- the hall (index) ----------------------------------------------------- */

.hall { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); max-width: 46rem; }

.hall-kicker, .room-no, .placard-position, .walk-label, .placard-flag {
  font-variant-caps: small-caps;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

.hall-title {
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin: .4rem 0 1.2rem;
}

.hall-lede {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: 34rem;
}

.era-group {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.room-no { margin-bottom: .2rem; }

.era {
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -.01em;
  margin: 0 0 1.6rem;
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.6rem 1.4rem;
}

.card { min-width: 0; }
.card a { color: var(--ink); display: block; min-width: 0; }
.card a:hover { text-decoration: none; }
.card a:hover .work-title { color: var(--accent); }

.card .preview {
  position: relative;
  min-width: 0;
  max-width: 100%;
  height: 8.6rem;
  overflow: hidden;
  background: var(--matte);
  border: 1px solid var(--frame);
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card a:hover .preview { transform: translateY(-2px); }

.card .preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--matte));
}

.preview .artwork { font-size: .66rem; line-height: 1.5; }
.preview .artwork pre { overflow: hidden; white-space: pre; }

.work-title { display: block; margin-top: .9rem; font-size: 1.15rem; line-height: 1.25; }
.work-author, .work-year { color: var(--muted); font-size: .95rem; }
.work-author::after { content: ","; }

/* --- the work ------------------------------------------------------------- */

.work { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }

.frame {
  margin: 0 calc(-1 * var(--gutter) + 12px);
  border: 1px solid var(--frame);
  padding: 7px;
  background: var(--wall-deep);
  box-shadow: var(--shadow);
}

.matte {
  border: 1px solid var(--hairline);
  background: var(--matte);
  padding: clamp(.9rem, 3vw, 2.4rem) clamp(.9rem, 3vw, 2.6rem);
  min-width: 0;
}

.frame .artwork, .preview .artwork { background: transparent; }
.artwork { font-family: var(--mono); }
.frame .artwork { font-size: clamp(.78rem, 1.6vw, .95rem); line-height: 1.45; }
.artwork pre {
  margin: 0;
  overflow-x: auto;
  tab-size: inherit;
  line-height: inherit;
  font-family: inherit;
}
.artwork code { font-family: inherit; }

.placard {
  max-width: 38rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--frame);
}

.placard-position { margin-bottom: .5rem; }

.placard-title {
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
}

.placard-artist { margin: 0; font-size: 1.1rem; }
.placard-date { color: var(--muted); }
.placard-medium { margin: .15rem 0 0; font-style: italic; color: var(--muted); }

.placard-flag { margin-top: .9rem; color: var(--accent); }
.placard-flag::before { content: "\2731\00a0"; }

.placard-note { margin-top: 1.4rem; }
.placard-note p { margin: 0 0 1em; }
.placard-note code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--wall-deep);
  padding: .05em .3em;
}

.placard-meta {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1.2rem;
  font-size: .85rem;
  color: var(--muted);
}
.placard-meta dt { font-variant-caps: small-caps; letter-spacing: .12em; }
.placard-meta dd { margin: 0; }

.walk {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.walk a { display: block; color: var(--ink); max-width: 45%; }
.walk a:hover { text-decoration: none; }
.walk a:hover .walk-title { color: var(--accent); }
.walk a[rel="next"] { text-align: right; margin-left: auto; }
.walk-label { display: block; margin-bottom: .2rem; }
.walk-title { display: block; font-size: 1.15rem; line-height: 1.25; }
.walk-end { flex: 1; }

/* --- prose (about, 404) --------------------------------------------------- */

.prose { max-width: 38rem; padding: clamp(3rem, 8vw, 6rem) 0 3rem; font-size: 1.15rem; }
.prose h1 { font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.prose p { margin: 0 0 1.1em; }

/* --- motion: one quiet reveal on arrival ---------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .frame, .placard, .hall, .card { animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }
  .placard { animation-delay: .12s; }
  .card:nth-child(1) { animation-delay: .05s; }
  .card:nth-child(2) { animation-delay: .1s; }
  .card:nth-child(3) { animation-delay: .15s; }
  .card:nth-child(4) { animation-delay: .2s; }
  .card:nth-child(5) { animation-delay: .25s; }
  .card:nth-child(n+6) { animation-delay: .3s; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* --- phones --------------------------------------------------------------- */

@media (max-width: 48rem) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.1rem var(--gutter); }
  .works { grid-template-columns: 1fr 1fr; gap: 1.2rem .9rem; }
  .card .preview { height: 7rem; padding: .7rem .8rem; }
  .preview .artwork { font-size: .58rem; }
  .walk { flex-direction: column; gap: 1.2rem; }
  .walk a { max-width: none; }
  .walk a[rel="next"] { text-align: left; margin-left: 0; }
  .walk-end { display: none; }
}

@media (max-width: 30rem) {
  .works { grid-template-columns: 1fr; }
}

/* --- the front door --------------------------------------------------------- */

html.door-closed { overflow: hidden; }

.door {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--wall);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 1.5rem;
  transition: opacity .9s ease;
}
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.door.is-gone { opacity: 0; pointer-events: none; }
.door[hidden] { display: none; }  /* the class rule above would otherwise beat the hidden attribute */

.door-sign {
  margin: 0;
  font-variant-caps: small-caps;
  letter-spacing: .22em;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--ink);
}
.door-hint {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  font-size: .95rem;
  transition: opacity .5s;
}
.is-open .door-hint { opacity: 0; }

.doorway {
  position: relative;
  width: min(78vw, 30rem);
  height: min(70vh, 38rem);
  perspective: 1600px;
}

/* the lit room behind the doors */
.doorway::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, var(--matte), var(--wall-deep));
  border: 10px solid var(--stone);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .25), var(--shadow);
}
.welcome {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: -.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .9s ease 1.1s, transform .9s ease 1.1s;
}
.is-open .welcome { opacity: 1; transform: none; }

.door-leaves {
  position: absolute;
  inset: 10px;
  display: flex;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
}
.door-leaves:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

.leaf {
  position: relative;
  flex: 1;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 7px),
    linear-gradient(90deg, #35241a, #4b3425 45%, #3a2719);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 0 0 14px #2c1d14,
    inset 0 0 0 16px rgba(255, 220, 170, .08),
    inset 0 0 40px rgba(0, 0, 0, .35);
  transition: transform 1.6s cubic-bezier(.55, 0, .15, 1);
  backface-visibility: hidden;
}
/* two raised panels per leaf */
.leaf::before, .leaf::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  border: 2px solid rgba(0, 0, 0, .35);
  box-shadow: inset 1px 1px 0 rgba(255, 220, 170, .12), 1px 1px 0 rgba(255, 220, 170, .08);
}
.leaf::before { top: 26px; height: 42%; }
.leaf::after { bottom: 26px; height: 32%; }

.leaf-left { transform-origin: left center; border-right: 1px solid rgba(0, 0, 0, .6); }
.leaf-right { transform-origin: right center; }
.is-open .leaf-left { transform: rotateY(-108deg); }
.is-open .leaf-right { transform: rotateY(108deg); }

.handle {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 18%;
  transform: translateY(-50%);
  border-radius: 4px;
  background: linear-gradient(90deg, #e2c47a, #a8863f 60%, #6f5324);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  z-index: 1;
}
.leaf-left .handle { right: 18px; }
.leaf-right .handle { left: 18px; }

.plate {
  position: absolute;
  right: 36px;
  top: calc(50% - 4.2rem);
  padding: .2em .55em;
  font-variant-caps: small-caps;
  letter-spacing: .18em;
  font-size: .8rem;
  color: #3a2a12;
  background: linear-gradient(#e6cc86, #b8954a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  z-index: 1;
}

:root { --stone: #cfc8bb; }
@media (prefers-color-scheme: dark) { :root { --stone: #4a4640; } }

@media (prefers-reduced-motion: reduce) {
  .leaf, .welcome, .door, .door-hint { transition-duration: .01s; transition-delay: 0s; }
}

@media (max-width: 48rem) {
  .doorway { width: min(84vw, 22rem); height: min(62vh, 30rem); }
  .leaf::before, .leaf::after { left: 16px; right: 16px; }
  .leaf { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 9px #2c1d14, inset 0 0 30px rgba(0, 0, 0, .35); }
  .plate { right: 22px; font-size: .7rem; }
  .handle { width: 6px; }
  .leaf-left .handle { right: 12px; }
  .leaf-right .handle { left: 12px; }
}

/* --- the lobby ------------------------------------------------------------ */

.section-title {
  font-variant-caps: small-caps;
  letter-spacing: .18em;
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.lobby-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin: 1.8rem 0 0; }
.start-tour {
  display: inline-block;
  padding: .7rem 1.3rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.start-tour:hover { background: var(--ink); color: var(--wall); text-decoration: none; }
.lobby-link { font-variant-caps: small-caps; letter-spacing: .12em; }

.plan, .directory, .pick, .info-desk { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--hairline); }

.floor-plan { display: block; width: 100%; max-width: 62rem; height: auto; font-family: var(--serif); }
.floor-plan rect { fill: var(--matte); stroke: var(--ink); stroke-width: 2; }
.floor-plan .room rect { transition: fill .2s; }
.floor-plan .room:hover rect, .floor-plan .room:focus-visible rect { fill: color-mix(in srgb, var(--accent) 12%, var(--matte)); }
.floor-plan .room:focus-visible { outline: none; }
.floor-plan text { fill: var(--ink); }
.floor-plan .room-numeral { font-size: 56px; }
.floor-plan .room-name { font-size: 20px; }
.floor-plan .room-count { font-size: 15px; fill: var(--muted); font-style: italic; }
.floor-plan .room:hover .room-name { fill: var(--accent); }
.floor-plan .doorway { stroke: var(--matte); stroke-width: 5; }
.floor-plan .lobby { stroke-dasharray: none; }
.floor-plan .plan-path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 6; }
.floor-plan .you-are-here { fill: var(--accent); }

.room-entry {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}
.room-entry:first-of-type { border-top: 0; }
.room-entry:hover { text-decoration: none; }
.room-entry:hover .era { color: var(--accent); }
.room-entry .room-no { grid-row: 1 / span 2; align-self: start; padding-top: .55rem; }
.room-entry .era { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.room-entry .room-meta { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }

.pick-slot { grid-template-columns: minmax(0, 24rem); }

.desk { margin: 0; max-width: 42rem; display: grid; grid-template-columns: 10rem 1fr; gap: 1rem 1.5rem; }
.desk dt { font-variant-caps: small-caps; letter-spacing: .12em; color: var(--muted); }
.desk dd { margin: 0; }

/* --- a room --------------------------------------------------------------- */

.room { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.room-head { margin-bottom: 2rem; }
.room-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 .4rem; }
.room-meta { margin: 0; color: var(--muted); font-style: italic; }
.room-back { margin-top: 2rem; font-variant-caps: small-caps; letter-spacing: .12em; }

/* --- the shop --------------------------------------------------------------- */

.shop h2 { font-weight: 400; font-size: 1.5rem; margin: 2rem 0 .5rem; }
.tip-jar {
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}
a.tip-jar:hover { background: var(--accent); color: var(--wall); text-decoration: none; }
.tip-jar.is-closed { border-style: dashed; color: var(--muted); }

@media (max-width: 48rem) {
  .room-entry { grid-template-columns: 1fr; row-gap: .1rem; }
  .room-entry .room-no { grid-row: auto; padding-top: 0; }
  .desk { grid-template-columns: 1fr; gap: .2rem 0; }
  .desk dd { margin-bottom: 1rem; }
  .floor-plan .room-numeral { font-size: 64px; }
  .floor-plan .room-name { font-size: 26px; }
  .floor-plan .room-count { font-size: 20px; }
}

/* --- gift shop products ------------------------------------------------------ */

.products {
  list-style: none;
  margin: 0;
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 2rem 1.6rem;
}
.product { min-width: 0; display: flex; flex-direction: column; }
.product-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--frame);
  background: var(--matte);
  box-shadow: var(--shadow);
}
.product-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product[data-sku="badge"] .product-preview img, .product[data-sku="floor-plan"] .product-preview img { object-fit: contain; }
.product h3 { font-weight: 400; font-size: 1.3rem; margin: 1rem 0 .2rem; }
.product .blurb { margin: 0; color: var(--muted); font-size: .98rem; flex: 1; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .8rem 0 0; }
.price { font-size: 1.15rem; }
.buy {
  padding: .45rem 1.1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.buy:hover { background: var(--ink); color: var(--wall); text-decoration: none; }
.soon { color: var(--muted); font-style: italic; font-size: .95rem; }

.downloads { padding-left: 1.2rem; }
.downloads li { margin: .4rem 0; }
.thanks-note { color: var(--muted); font-size: .95rem; margin-top: 2rem; }
.patrons { columns: 2 12rem; padding-left: 1.2rem; }
.patrons-empty { list-style: none; margin-left: -1.2rem; color: var(--muted); font-style: italic; }

