/* Basic modernized styles for the Joyce Joyce exhibit landing page */
:root {
  --bg: #0b0b0b;
  --text: #f5f5f5;
  --muted: #c9c9c9;
  --link: #e6c46a;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 64px; /* space for fixed footer */
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: .5rem .75rem;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  z-index: 9999;
}

.container {
  max-width: 960px;
  padding: 0 1rem;
  margin: 0 auto;
}

.site-header {
  padding: 2.5rem 0 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

/* formerly brand-link styles removed (no longer used) */

.title {
  margin: 0 0 .5rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

.hero {
  margin: 1rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Card navigation */
.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.card-link {
  display: block;
  padding: 1rem 1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: transform .06s ease, border-color .2s ease, box-shadow .2s ease;
}

.card h2 {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card:hover .card-link,
.card:focus-within .card-link {
  transform: translateY(-1px);
  border-color: #444;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

a { color: var(--link); }
a:hover { filter: brightness(1.1); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* Centered brand block under the links */
.brand-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
  padding-top: 4rem;
}
.brand-center img {
  width: 400px;
  max-width: 90%;
  height: auto;
  display: block;
}

.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: .75rem 1rem; /* add horizontal padding */
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}

.site-footer .footer-logo {
  height: 18px;
  width: auto;
  vertical-align: middle;
  margin-right: .5rem;
  opacity: .95;
}

.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
