@font-face {
  font-family: "Casko Luxury Demo";
  src: url("assets/fonts/CaskoLuxuryDemo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #242424;
  --text: rgba(255,255,255,.75);
  --soft: rgba(255,255,255,.43);
  --edge: clamp(10px, .9vw, 15px);
  --gap: clamp(5px, .48vw, 8px);
  --portfolio-font: "Casko Luxury Demo", Georgia, serif;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1vw, 16.25px);
  font-weight: 500;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--text); background: var(--paper); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
.skip { position: fixed; left: 8px; top: -70px; z-index: 100; background: #222; color: #fff; padding: 9px; }
.skip:focus { top: 48px; }
#main:focus { outline: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
#backdrop { position: fixed; inset: 0; background: center / cover no-repeat; pointer-events: none; z-index: 0; overflow: hidden; }
#backdrop[hidden] { display: none; }
#main, #footer { position: relative; }
body:not([data-page="home"]) { background: #191919; }
#footer[hidden] { display: none; }
body:is([data-page="home"], [data-page="project"]) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
body[data-page="home"] #backdrop, body:is([data-page="home"], [data-page="project"]) #main {
  grid-area: 2 / 1;
  position: relative;
  min-width: 0;
  min-height: 0;
}
body[data-page="project"] .project-view { height: 100%; }
.home-header {
  position: sticky;
  top: 0;
  z-index: 15;
  grid-area: 1 / 1;
  background: #fff;
  border-bottom: 1px solid #deddd9;
  color: #191919;
  color-scheme: light;
  font: 400 clamp(15px, 1.2vw, 18px)/1.2 var(--portfolio-font);
}
.home-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(14px, 2.1vh, 24px) clamp(12px, 3vw, 40px) 8px;
  gap: clamp(4px, .7vh, 9px);
}
.artist-name {
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  text-align: center;
}
.home-menu {
  --menu-padding: clamp(5px, .75vw, 12px);
  --menu-hit: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 clamp(5px, 1.4vw, 24px);
  width: 100%;
}
.home-menu > a {
  display: block;
  padding-inline: var(--menu-padding);
  line-height: var(--menu-hit);
  white-space: nowrap;
  text-decoration: underline 1px #a6a6a6;
  text-underline-offset: 5px;
}
.home-menu > a[aria-current] { color: #595959; text-decoration-color: currentColor; }
.home-menu > a:is(:hover, :focus-visible) { color: #000; text-decoration-color: currentColor; }
html:has(> body:is([data-page="gallery"], [data-page="students"], [data-page="palette"], [data-page="about"], [data-page="contact"])) {
  background: #fff;
  color-scheme: light;
}
body:is([data-page="gallery"], [data-page="students"], [data-page="palette"], [data-page="about"], [data-page="contact"]) {
  background: #fff;
  color: #191919;
  color-scheme: light;
  font: 400 max(16px, 1rem)/1.45 var(--portfolio-font);
  --soft: #595959;
}
body[data-page="gallery"]:has(> #backdrop:not([hidden])) {
  background: #655f51;
  color: #fffdf8;
  --soft: #f5efe3;
}
body[data-page="gallery"] #backdrop {
  inset: -10px -10px auto;
  height: calc(100vh + 20px);
  height: calc(100lvh + 20px);
  filter: blur(3px);
}
body[data-page="gallery"]:has(> #backdrop:not([hidden])) :is(.gallery-body, #footer) {
  text-shadow: 0 1px 2px #241f18, 0 0 4px #241f18, 0 0 1px #241f18;
}
.gallery-body {
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 64px) clamp(12px, 3vw, 44px) 0;
  --gap: clamp(12px, 2.4vw, 34px);
}
.intro, .selected-head h2 { margin: 0; font-weight: 400; }
.intro { max-width: 64ch; margin-bottom: 1.6em; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; }
.selected-head h2 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.gallery-body a:hover, #footer a:hover { text-decoration: underline; text-underline-offset: .18em; }
.selected-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid currentColor; padding-top: .7rem; margin: 2.5rem 0 2rem; }
.archive-heading {
  margin: 0 0 .35em;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.portfolio-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  max-width: 1400px;
  margin: clamp(48px, 7vw, 100px) auto 0;
  padding: 18px clamp(16px, 5vw, 76px) 24px;
  border-top: 1px solid var(--soft);
  font: 400 15px/1.4 var(--portfolio-font);
}
.portfolio-footer a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 820px) {
  .home-header-inner { padding: 12px 10px 6px; gap: 4px; }
  .home-menu {
    --menu-padding: 2px;
    --menu-hit: 36px;
    column-gap: clamp(3px, 1vw, 8px);
    font-size: clamp(12px, 3.55vw, 15px);
  }
}
@media (pointer: coarse) {
  .home-menu { --menu-hit: 44px; }
}
@media (max-width: 700px) {
  :root { font-size: 13.5px; --edge: 8px; --gap: 7px; }
}
