/* ==========================================================================
   nicholasshore.eu — landing page
   v1.0 · static, no cookies, no external requests
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   All self-hosted. Copy the .woff2 files into /assets/fonts/ — see
   assets/fonts/README.txt for the exact source paths on each sub-site.
   If a file is missing the fallback stack takes over; the page still works.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/sourceserif4-variable.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/sourceserif4-variable-italic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinetgrotesk-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bowlby One';
  src: url('../fonts/bowlbyone-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/spacemono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Special Elite';
  src: url('../fonts/specialelite-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* shell */
  --ink:        #12161b;
  --ink-soft:   #2a3138;
  --paper:      #f6f4ef;
  --paper-dim:  #e9e5dd;
  --rule:       #d6d1c7;
  --muted:      #6d6a63;
  --on-photo:   #f3f1ec;
  --on-photo-dim: rgba(243, 241, 236, .74);

  /* per-site accents, taken from each sub-site's own palette */
  --a-chem:   #1a6b5a;
  --a-sr:     #c9a84c;
  --a-music:  #7a6ea8;
  --a-improv: #b2564a;

  /* type */
  --f-ui:     'Cabinet Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-chem:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-sr:     'Bowlby One', Impact, 'Arial Black', sans-serif;
  --f-music:  'Space Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --f-improv: 'Special Elite', 'Courier New', monospace;

  /* layout */
  --wrap: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-ui);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--on-photo);
  background-color: var(--ink);
}

/* Fullscreen background. Fixed layer, scrim baked into the same declaration
   as a stacked gradient — no ::before overlay on content needed. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg,
      rgba(18, 22, 27, .62) 0%,
      rgba(18, 22, 27, .48) 38%,
      rgba(18, 22, 27, .82) 100%),
    url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--a-sr);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: .75rem;
  z-index: 10;
  padding: .5rem .9rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 6rem 6rem;
}

.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-photo-dim);
}

.hero__name {
  margin: 0;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* The overture: four words, each set in the face its site uses.
   This is the one loud element on the page. */
.overture {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35em 1.15em;
  font-size: clamp(1.05rem, 3.2vw, 1.6rem);
}

.overture a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: .1em;
  transition: border-color .18s ease, color .18s ease;
}
.overture a:hover,
.overture a:focus-visible { border-bottom-color: currentColor; }

.overture .o-chem   { font-family: var(--f-chem);   font-style: italic; }
.overture .o-sr     { font-family: var(--f-sr);     letter-spacing: .01em; }
.overture .o-music  { font-family: var(--f-music);  }
.overture .o-improv { font-family: var(--f-improv); }

.overture .o-chem:hover   { color: #6fd3bd; }
.overture .o-sr:hover     { color: var(--a-sr); }
.overture .o-music:hover  { color: #b0a6dd; }
.overture .o-improv:hover { color: #e08b7f; }

.hero__lede {
  margin: 2rem 0 0;
  max-width: 46ch;
  color: var(--on-photo-dim);
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  margin: 0;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-photo-dim);
}

/* --------------------------------------------------------------------------
   5. PANELS
   -------------------------------------------------------------------------- */

.sites {
  padding-block: 0 5rem;
}

.sites__grid > li { display: flex; }

.sites__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-top: 4px solid var(--panel-accent, var(--rule));
  box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 14px 32px rgba(0,0,0,.32);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.panel:hover,
a.panel:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 22px 46px rgba(0,0,0,.42);
}

/* --panel-accent draws the rule; --panel-accent-text is the darkened
   variant used for type, so it clears 4.5:1 on the paper background. */
.panel--chem   { --panel-accent: var(--a-chem);   --panel-accent-text: #14584a; }
.panel--sr     { --panel-accent: var(--a-sr);     --panel-accent-text: #86671a; }
.panel--music  { --panel-accent: var(--a-music);  --panel-accent-text: #574a86; }
.panel--improv { --panel-accent: var(--a-improv); --panel-accent-text: #96412f; }

.panel__shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-dim);
}

.panel__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.panel__status {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .18rem .55rem;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
}

.panel__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.panel__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
}

/* Each title takes the display face of the site it points to. */
.panel--chem   .panel__title { font-family: var(--f-chem);   font-weight: 600; }
.panel--sr     .panel__title { font-family: var(--f-sr);     font-weight: 400; letter-spacing: .005em; }
.panel--music  .panel__title { font-family: var(--f-music);  font-weight: 400; font-size: 1.25rem; }
.panel--improv .panel__title { font-family: var(--f-improv); font-weight: 400; }

.panel__host {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--panel-accent-text, var(--muted));
  word-break: break-word;
}

.panel__desc {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

.panel__go {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

a.panel:hover .panel__go,
a.panel:focus-visible .panel__go { color: var(--panel-accent-text); }

.panel--soon { opacity: .82; }
.panel--soon .panel__shot { display: grid; place-items: center; }
.panel--soon .panel__placeholder {
  font-family: var(--f-improv);
  font-size: 1.6rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. FOOTER / PRIVACY NOTICE
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(243, 241, 236, .16);
  background: rgba(10, 13, 16, .72);
  backdrop-filter: blur(6px);
  padding-block: 1.5rem 2rem;
  font-size: .85rem;
  color: var(--on-photo-dim);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer p { margin: 0; max-width: 62ch; }

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  white-space: nowrap;
}

.site-footer a { color: var(--on-photo); text-decoration: none; border-bottom: 1px solid rgba(243,241,236,.35); }
.site-footer a:hover { border-bottom-color: var(--on-photo); }

.no-cookie::before {
  content: '';
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: #5fbf9e;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   7. DOCUMENT PAGES (Impressum)
   -------------------------------------------------------------------------- */

.doc {
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.doc__sheet {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 18px 40px rgba(0,0,0,.35);
  border-top: 4px solid var(--a-chem);
}

.doc__sheet h1 {
  font-family: var(--f-chem);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 .35em;
}

.doc__sheet h2 {
  font-family: var(--f-chem);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2.25rem 0 .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.doc__sheet h2:first-of-type { border-top: 0; padding-top: 0; }

.doc__sheet h3 {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 1.5rem 0 .35rem;
}

.doc__sheet p,
.doc__sheet li { max-width: 68ch; color: var(--ink-soft); }

.doc__sheet a { color: var(--a-chem); }

.doc__sheet dl { margin: 0 0 1rem; }
.doc__sheet dt { font-weight: 700; color: var(--ink); margin-top: .6rem; }
.doc__sheet dd { margin: 0 0 .1rem; color: var(--ink-soft); }

.doc__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-photo-dim);
  text-decoration: none;
}
.doc__back:hover { color: var(--on-photo); }

.todo {
  background: #fff4d6;
  border-left: 3px solid #c9a84c;
  padding: .6rem .9rem;
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   8. MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  a.panel:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   9. PRINT
   -------------------------------------------------------------------------- */

@media print {
  .bg, .hero__scroll, .site-footer nav { display: none; }
  body { color: #000; background: #fff; }
  .doc__sheet { box-shadow: none; }
}
