/*
Theme Name: Gareth Jones — Gallery Theme
Theme URI: https://garethjones.com
Author: Gareth Jones + ChatGPT
Description: Minimal editorial gallery theme with Work/Projects structure and /work/{area}/{project} URLs.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gj-gallery
*/

:root{
  --bg: #fbfaf7;
  --text: #161616;
  --muted: #5c5c5c;
  --rule: rgba(0,0,0,.12);
  --accent: #0b4f6c;     /* subtle immersive accent */
  --accent2:#3d1f3d;     /* optional darker accent */
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --max: 920px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
p{ margin: 0 0 1.05em; }
h1,h2,h3{
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 0.5em; }
h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.1em 0 .55em; }
h3{ font-size: 1.2rem; margin: 1.6em 0 .4em; }
small, .meta{ color: var(--muted); }

hr{
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.2em 0;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px;
}

.site-header{
  position: sticky;
  top: 0;
  background: rgba(251,250,247,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}

.brand a{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand small{
  display:block;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 2px;
}

.nav ul{
  list-style:none;
  display:flex;
  gap: 14px;
  padding:0;
  margin:0;
  flex-wrap: wrap;
}
.nav a{
  color: var(--text);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{
  background: rgba(0,0,0,.05);
  text-decoration:none;
}

.hero{
  padding: 22px 0 6px;
}
.lede{
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 68ch;
}

.grid{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.card:hover{ transform: translateY(-2px); }
.card h3{ margin: 0 0 .35em; }
.card .meta{ font-size: .92rem; }

@media (max-width: 740px){
  .card{ grid-column: span 12; }
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}

.section-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2.2em;
}
.section-title .meta{ font-size: .95rem; }

.content{
  max-width: 78ch;
}

.work-block{
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.work-block:first-of-type{ border-top: none; }
.work-block h2{ margin: 0 0 .25em; }
.work-block p{ margin: 0 0 .65em; }

.kicker{
  display:inline-block;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

.footer{
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 26px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Accordion for discography */
.accordion{
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acc-btn{
  width:100%;
  text-align:left;
  padding: 14px 16px;
  font-size: 1rem;
  border: 0;
  background: transparent;
  cursor:pointer;
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.acc-panel{
  display:none;
  padding: 0 16px 16px;
  color: var(--text);
}
.acc-panel.open{ display:block; }
.acc-icon{
  color: var(--accent);
  font-weight: 700;
}

/* Discography expandable sections */

details {
  font-family: inherit;
  margin: 20px 0;
}

summary {
  font-family: inherit;
  font-size: 1.05em;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:before {
  content: "▸ ";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

details[open] summary:before {
  transform: rotate(90deg);
}

details ul {
  margin-top: 15px;
  padding-left: 20px;
}

details li {
  margin-bottom: 8px;
}