/* Greater Society Studios. Flat, photo-led layout; rust (#993921) for actions and emphasis, logo black for dark fields. */
:root {
  --bg: #ffffff;
  --surface: #f4f2f0;
  --ink: #231f20;        /* logo black */
  --text: #3b3637;
  --muted: #6b6465;
  --rule: #e4e1df;
  --accent: #993921;     /* logo rust */
  --accent-deep: #7d2e1a;
  --accent-soft: #f6ebe7;
  --accent-text: #993921;  /* rust for small text */
  --field: #231f20;      /* dark color field, stays dark in both themes */
  --on-field: #f3efeb;
  --on-field-muted: #aaa29e;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131112; --surface: #1c1a1a; --ink: #efebe7; --text: #cec8c4; --muted: #8e8784; --rule: #2b2727;
    --accent: #b8492c; --accent-deep: #993921; --accent-soft: #2a1a15; --accent-text: #e07b5c; --field: #0c0b0b; --on-field: #f3efeb; --on-field-muted: #9a928e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131112; --surface: #1c1a1a; --ink: #efebe7; --text: #cec8c4; --muted: #8e8784; --rule: #2b2727;
  --accent: #b8492c; --accent-deep: #993921; --accent-soft: #2a1a15; --accent-text: #e07b5c; --field: #0c0b0b; --on-field: #f3efeb; --on-field-muted: #9a928e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); }
.contact-copy { display: grid; gap: 20px; align-content: start; }
.contact-copy p { color: var(--muted); }
footer p { margin: 0; color: var(--on-field-muted); }
footer nav a { color: var(--on-field-muted); font-size: .85rem; padding-block: 0; }
footer nav a:hover { color: #fff; }
footer nav ul { gap: 24px; }

body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; font-stretch: 80%; letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; font-stretch: 88%; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0; max-width: 60ch; }
.lede { font-size: 1.15rem; line-height: 1.55; }
.label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.logo { display: block; width: 112px; aspect-ratio: 478 / 227; position: relative; flex: none; }
.logo .ink, .logo .dot { position: absolute; inset: 0; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo .ink { --m: url(/img/logo-ink.png); background: var(--ink); }
.logo .dot { --m: url(/img/logo-dot.png); background: var(--accent); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted); padding-block: 6px; transition: color .15s; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
nav .nav-cta { background: var(--accent); color: #fff; padding: 10px 16px; }
nav .nav-cta:hover, nav .nav-cta[aria-current="page"] { color: #fff; background: var(--accent-deep); box-shadow: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; text-decoration: none; font: 500 .95rem/1 var(--font); padding: 16px 24px; border: 0; cursor: pointer; transition: background .15s; }
.btn::after { content: "→"; transition: transform .15s; }
.btn:hover { background: var(--accent-deep); }
.btn:hover::after { transform: translateX(3px); }
.btn.light { background: #fff; color: #231f20; }
.btn.light:hover { background: #f3efeb; }
.link { text-decoration: none; font-weight: 500; color: var(--accent-text); }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Photos */
.photo { margin: 0; position: relative; background: var(--surface); aspect-ratio: var(--ratio, 3 / 2); max-width: 100%; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { position: absolute; left: 14px; bottom: 12px; font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

/* Hero: photo with text on it */
.hero { position: relative; background: var(--field); color: var(--on-field); overflow: hidden; }
.hero .photo { position: absolute; inset: 0; aspect-ratio: auto; background: #2e2a2a; }
.hero .photo img { object-position: 50% 60%; }
.hero .photo figcaption { color: #8d8582; left: auto; right: 16px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,17,.82) 0%, rgba(20,17,17,.45) 55%, rgba(20,17,17,.1) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(88px, 13vw, 160px); display: grid; gap: 28px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero p { color: #e5dfdb; font-size: 1.15rem; max-width: 46ch; }
.hero .label { color: #e08a6f; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero .actions a.ghost { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }

/* Rust statement band */
.statement { background: #993921; color: #fff; }
.statement .wrap { padding-block: 72px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.statement .wrap > * { min-width: 0; }
.statement h2 { color: #fff; }
.statement p { color: #f6e2da; font-size: 1.05rem; }

section { padding-block: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head > div { display: grid; gap: 14px; }
.section-head h2 { max-width: 20ch; }

/* Feature tiles with photos */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tile { display: grid; gap: 16px; align-content: start; }
.tile p { font-size: .925rem; color: var(--muted); }

/* Image + text rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row > * { min-width: 0; }
.row .copy { display: grid; gap: 22px; }
.row.flip .photo { order: 2; }
.row + .row { margin-top: 104px; }
.quote { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 500; font-stretch: 85%; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 20px; max-width: 30ch; }

/* Instrument mosaic: photos shown whole, 3 columns; rust gear card spans two, over a tinted amp photo */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; align-items: start; }
.m-card { grid-column: span 2; align-self: stretch; position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: #fff; text-decoration: none; padding: clamp(28px, 4vw, 44px); display: grid; align-content: space-between; gap: 32px; min-height: 280px; }
.m-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; filter: grayscale(1) contrast(1.05); transition: transform .5s ease; }
.m-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #993921; opacity: .86; transition: opacity .15s; }
.m-card:hover::before { opacity: .92; }
.m-card:hover .m-card-bg { transform: scale(1.03); }
.m-card .label { color: #fff; opacity: .8; }
.m-card h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 20ch; }
.m-card-link { font-weight: 500; }
.m-card-link::after { content: " →"; }
.m-tile { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.m-tile > div { display: grid; gap: 6px; }
.m-tile p { font-size: .9rem; color: var(--muted); }
.m-tile h3 { color: var(--ink); transition: color .15s; }
.m-tile:hover h3, .m-tile:focus-visible h3 { color: var(--accent-text); }
.m-tile .photo img { transition: transform .5s ease; }
.m-tile:hover .photo img { transform: scale(1.03); }
/* Dark CTA field */
.cta { background: var(--field); color: var(--on-field); }
.cta .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-block: 96px; }
.cta .wrap > * { min-width: 0; }
.cta h2 { color: var(--on-field); max-width: 16ch; }
.cta p { color: var(--on-field-muted); }
.cta .label { color: #e08a6f; }
.aside-note { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; font-stretch: 85%; color: var(--on-field-muted); margin-top: -4px; }
.cta .side { display: grid; gap: 20px; justify-items: start; }
.cta .side.end { justify-items: end; align-self: center; }
@media (max-width: 900px) { .cta .side.end { justify-items: start; } }

/* Page heads (inner pages) */
.page-head { background: var(--field); color: var(--on-field); }
.page-head .wrap { padding-block: 88px 72px; display: grid; gap: 18px; }
.page-head h1 { color: #fff; max-width: 16ch; }
.page-head p { color: var(--on-field-muted); font-size: 1.1rem; }
.page-head .label { color: #e08a6f; }

/* Gear */
.tabs-bar { border-bottom: 1px solid var(--rule); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 63px); background: var(--bg); z-index: 5; }
.tabs { display: flex; gap: 28px; overflow-x: auto; }
.tabs a { text-decoration: none; font-size: .925rem; font-weight: 500; color: var(--muted); padding-block: 16px; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs .count { color: var(--muted); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.gear-page section { padding-block: 56px 104px; }
.gear-grid { columns: 3 260px; column-gap: 48px; }
.gear-cat { break-inside: avoid; padding-bottom: 40px; }
.gear-cat h2 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-stretch: 100%; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.gear-cat ul { list-style: none; margin: 0; padding: 0; }
.gear-cat li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .925rem; color: var(--ink); display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.gear-cat li .note { color: var(--muted); font-size: .8rem; text-align: right; flex: none; max-width: 55%; }
.gear-cat li.sub { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 18px; }
.gear-cat .link { display: inline-block; margin-top: 14px; font-size: .875rem; }
.list-cols { columns: 3 240px; column-gap: 48px; }
.gear-cat.pending h3 { color: var(--muted); border-bottom-style: dashed; }
.list-cols .gear-cat { padding-bottom: 32px; }

/* About */
.split2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split2 > * { min-width: 0; }
.stack-sm { display: grid; gap: 18px; align-content: start; }
.statement .stack-sm p { color: #f6e2da; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact > * { min-width: 0; }
.contact aside { display: grid; gap: 28px; }
.contact aside p { color: var(--muted); }
form { display: grid; gap: 24px; background: var(--surface); padding: clamp(24px, 4vw, 44px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.field label small { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .8rem; color: var(--muted); }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); padding: 12px 14px; width: 100%; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.notice { font-size: .9rem; padding: 14px 16px; background: var(--accent-soft); color: var(--ink); border-left: 3px solid var(--accent); }

/* Footer */
footer { background: var(--field); color: var(--on-field-muted); border-top: 1px solid rgba(255,255,255,.08); }
footer .wrap { padding-block: 36px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: .85rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .m-card { grid-column: span 2; }
    .statement .wrap, .row, .cta .wrap, .contact, .split2 { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .photo { order: 0; }
  .row + .row { margin-top: 72px; }
  section { padding-block: 72px; }
}
@media (max-width: 600px) {
  nav li:not(:last-child) a { font-size: .85rem; }
  nav ul { gap: 16px; }
  .logo { width: 88px; }
  .tabs-bar { top: calc(env(safe-area-inset-top, 0px) + 54px); }
  .tiles, .mosaic { grid-template-columns: 1fr; }
  .m-card { grid-column: auto; }
  .row2 { grid-template-columns: 1fr; }
  .hero::after { background: rgba(20,17,17,.62); }
}
@media (max-width: 420px) { nav li:first-child { display: none; } }
