/* keii portfolio — dark gallery theme */

:root {
  --bg: #0d0d10;
  --bg-raised: #17171c;
  --border: #26262e;
  --text: #e9e7e2;
  --muted: #9b98a2;
  --accent: #d9a34f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Notice banner */
.notice-banner {
  background: #2a2030;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-size: .95rem;
  text-align: center;
  padding: .5rem clamp(1rem, 4vw, 3rem);
  line-height: 1.5;
}
.notice-banner a { font-weight: 600; }

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: baseline; gap: .75rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.brand-sub { color: var(--muted); font-size: .85rem; }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* Main */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}

/* Hero */
.hero { margin: 1.5rem 0 2.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.hero .accent { color: var(--accent); }
.hero-sub { color: var(--muted); max-width: 46rem; margin: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
  background: var(--bg-raised);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem 1rem;
  font: 500 .85rem var(--sans);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--muted); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #14100a; }

/* Gallery grid (masonry via columns) */
.gallery-grid { columns: 3 300px; column-gap: 1.25rem; }

.card {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.card img { width: 100%; }

.card-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
  padding: 1rem;
  text-align: center;
}

.card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .85rem;
}
.card-title { color: var(--text); font-size: .9rem; font-weight: 500; }
.card-cat { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* Artwork page */
.artwork-figure { margin: 0 0 2rem; }
.artwork-figure img {
  margin: 0 auto;
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
}
.artwork-figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .6rem;
}

.artwork-meta { max-width: 46rem; margin: 0 auto; }
.artwork-meta h1 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 1rem; }

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.meta-list li { font-size: .9rem; }
.meta-list li span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.artwork-desc { color: var(--text); }

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  padding: .6rem 1.3rem;
  border-radius: 6px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

.artwork-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

/* Prose pages (About) */
.prose { max-width: 44rem; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; margin: 1rem 0 1.5rem; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 2.2rem 0 .6rem;
  color: var(--accent);
}
.prose li { margin: .3rem 0; }
.prose strong { color: var(--text); }
.prose img { border-radius: 8px; }

/* Links page */
.links-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.link-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color .15s ease, transform .15s ease;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.link-name { color: var(--text); font-weight: 600; }
.link-note { color: var(--muted); font-size: .85rem; text-align: right; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: .75rem; margin-bottom: .5rem; }

@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .gallery-grid { columns: 2 160px; column-gap: .75rem; }
  .card { margin-bottom: .75rem; }
}
