/* The Artist's Playhouse: shared styles. Page layout lives inline in each page. */

/* Fonts (Archivo + Instrument Serif, self-hosted) */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-1.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-1.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-1.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-1.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/font-3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-7.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */
[hidden] { display: none !important; }
html, body { margin: 0; background: #0B0908; }
  a { color: #E3A857; }
  a:hover { color: #F2C47F; }

/* Hover states (inline styles need !important to be overridden) */
.h1:hover { color:#E3A857 !important }
.h2:hover { background:#E3A857 !important;color:#0B0908 !important }
.h3:hover { background:#F2C47F !important;color:#0B0908 !important }
.h4:hover { border-color:#EDE6DA !important;color:#EDE6DA !important }
.h5:hover { border-color:#E3A857 !important }
.h6:hover { background:#F2C47F !important }
.h7:hover { border-color:#E3A857 !important;color:#E3A857 !important }

/* Focus states */
.f1:focus { border-bottom-color:#E3A857 !important }
.f2:focus { border-color:#E3A857 !important }

/* Mobile menu (inline styles need !important to be overridden) */
.nav-toggle { display: none; }
@media (max-width: 1399px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin: -5px -10px -5px 0;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: #EDE6DA; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav { display: none !important; }
  .nav-open { background: #0B0908; }
  .nav-open .site-nav {
    display: flex !important; flex-direction: column; align-items: flex-start !important;
    gap: 22px !important; width: 100%; padding: 12px 0 8px; font-size: 13px !important;
  }
}

/* Long email links wrap instead of running off narrow screens */
.email-link { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 480px) { .email-link { letter-spacing: 0.04em !important; } }

/* Intensive date rows stack on phones */
@media (max-width: 640px) {
  .date-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .date-row > :first-child { flex-direction: row !important; align-items: baseline; gap: 12px !important; }
  .date-row > a, .date-row > [data-past] { justify-self: start; margin-top: 6px; }
}

/* Student resource tiles */
.res-tile { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: #EDE6DA;
  background: #120E0C; border: 1px solid rgba(237,230,218,0.12); cursor: pointer; transition: border-color .2s, transform .2s; }
.res-tile:hover, .res-tile:focus-visible { border-color: #E3A857; transform: translateY(-2px); outline: none; }
.res-tile img { transition: filter .3s; }
.res-tile:hover img { filter: grayscale(0.2) contrast(1.05) !important; }

/* Resource tiles: darker look — dimmed, warm-tinted photos fading into the card */
.res-tile { background: #0E0B0A; border-color: rgba(237,230,218,0.08); }
.res-tile > span:first-child::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,9,8,0.15) 0%, rgba(11,9,8,0.35) 55%, #0E0B0A 100%), rgba(60,36,12,0.18);
  mix-blend-mode: normal; transition: opacity .4s; }
.res-tile img { filter: grayscale(1) contrast(1.15) brightness(0.62) !important; transform: scale(1.02); transition: filter .5s, transform .6s ease; }
.res-tile:hover img, .res-tile:focus-visible img { filter: grayscale(0.35) contrast(1.1) brightness(0.8) !important; transform: scale(1.06); }
.res-tile:hover > span:first-child::after { opacity: .75; }
.res-tile:hover { box-shadow: 0 18px 40px -20px rgba(227,168,87,0.35); }

/* Scroll reveal (only when JS has marked the page and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .res-tile { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .3s; transition-delay: var(--d, 0ms); }
  .reveal-on .res-tile.is-in { opacity: 1; transform: none; }
  .reveal-on .res-tile.is-in:hover, .reveal-on .res-tile.is-in:focus-visible { transform: translateY(-3px); transition-delay: 0ms; }
}
.res-tile > span:first-child > span { z-index: 1; }

/* Resource tiles the student's access doesn't include */
.res-tile.is-locked { opacity: 0.45; }
.res-tile.is-locked .res-go { color: rgba(237,230,218,0.55) !important; }
.res-tile.is-locked:hover { transform: none; box-shadow: none; border-color: rgba(237,230,218,0.12); }
