/* ============================================================================
   DERIVA — Digital Art Gallery — stylesheet
   ============================================================================
   EDIT GUIDE: The most common things you'll want to change live near the top.
   Use Cmd+F (Mac) or Ctrl+F (Windows) and search for "EDIT —" to jump to each
   editable zone in this file.

   Quick map of editable zones:
   1. COLORS  — gallery palette (cream, brown, gold tones)
   2. FONTS   — font families used across the site
   3. HERO    — hero title size, spacing, ghost watermark
   4. NAV     — top navigation bar
   ============================================================================ */

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

/* EDIT — COLORS — change any hex value to retint the whole site */
:root {
/* page background        */ --cream: #F6F2EC;
--warm-white: #FDFBF8;
/* primary text color    */ --ink: #1C1816;
/* main accent (links)   */ --brown: #7B5C48;
/* muted secondary text  */ --brown-mid: #A8866E;
--brown-light: #C9B0A0;
--brown-hair: #E4D8CE;
--rule: #D6C8BE;
}

html { scroll-behavior: smooth; }

body {
background: var(--cream);
color: var(--ink);
/* EDIT — FONTS — to change site fonts, also update the Google Fonts <link> in index.html */ font-family: 'Jost', sans-serif;
font-weight: 300;
font-size: 15px;
line-height: 1.7;
letter-spacing: 0.01em;
overflow-x: hidden;
}

/* ── NAV ── */
nav {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 100;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 4rem;
background: rgba(246, 242, 236, 0.92);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--brown-hair);
}

.nav-logo {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-size: 1.25rem;
letter-spacing: 0.35em;
text-transform: uppercase;
color: var(--ink);
text-decoration: none;
}

.nav-links {
display: flex;
gap: 2.5rem;
list-style: none;
}

.nav-links a {
font-size: 0.72rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--brown);
text-decoration: none;
transition: color 0.3s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}

/* ── HERO ── */
.hero {
min-height: 80vh;
display: flex;
flex-direction: column;
justify-content: center;
padding: 140px 4rem 100px;
position: relative;
overflow: hidden;
}

.hero-inner {
position: relative;
z-index: 2;
max-width: 800px;
}

.hero-label {
font-size: 0.68rem;
letter-spacing: 0.32em;
text-transform: uppercase;
color: var(--brown-mid);
opacity: 0.75;
margin-bottom: 2rem;
}

.hero-title {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-style: italic;
font-size: clamp(4rem, 11vw, 8.5rem);
line-height: 0.93;
letter-spacing: -0.01em;
color: var(--ink);
margin: 0 0 2.5rem;
}

.hero-rule {
width: 180px;
height: 1px;
background-color: var(--brown);
margin-bottom: 2.25rem;
opacity: 0.6;
}

.hero-desc {
font-size: 0.88rem;
line-height: 1.95;
color: var(--brown);
max-width: 400px;
letter-spacing: 0.04em;
margin-bottom: 2.75rem;
}

.hero-cta {
display: inline-flex;
align-items: center;
gap: 0.75rem;
font-size: 0.72rem;
font-size: 0.82rem;
font-weight: 400;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink);
text-decoration: none;
padding: 0.85rem 1.5rem;
border: 1px solid var(--ink);
width: fit-content;
transition: all 0.3s;
}

.hero-cta:hover { 
  gap: 1.25rem;
  background: var(--ink);
  color: var(--cream); 
}

#hero-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
opacity: 0.7;
z-index: 0;
pointer-events: none;
}

.hero-ghost {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-style: italic;
position: absolute;
right: -20px;
bottom: 60px;
font-size: clamp(80px, 14vw, 200px);
opacity: 0.05;
line-height: 1;
letter-spacing: 0.2em;
user-select: none;
pointer-events: none;
color: var(--ink);
z-index: 1;
white-space: nowrap;
}

/* ── SECTION COMMONS ── */
section { padding: 7rem 4rem; }

.section-header {
display: flex;
align-items: baseline;
gap: 2rem;
margin-bottom: 4rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--rule);
}

.section-number {
font-family: 'Cormorant Garamond', serif;
font-size: 0.75rem;
color: var(--brown-mid);
letter-spacing: 0.1em;
}

.section-title {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-size: 2rem;
letter-spacing: 0.08em;
color: var(--ink);
}

/* ── STATEMENT ── */
.statement {
background: var(--warm-white);
border-top: 1px solid var(--rule);
border-bottom: 1px solid var(--rule);
}

.statement-inner {
max-width: 680px;
}

.statement-quote {
font-family: 'Cormorant Garamond', serif;
font-style: italic;
font-size: clamp(1.4rem, 2.5vw, 1.85rem);
line-height: 1.55;
color: var(--ink);
margin-bottom: 2rem;
}

.statement-body {
font-size: 0.87rem;
line-height: 1.95;
color: var(--brown);
max-width: 58ch;
}

/* ── CURATORIAL STATEMENT + INQUIRIES ── */
.curatorial {
background: var(--cream);
border-bottom: 1px solid var(--rule);
}

.curatorial-grid {
display: grid;
grid-template-columns: 1fr 1px 1fr;
gap: 4rem;
align-items: start;
}

.curatorial-divider {
background: var(--rule);
align-self: stretch;
width: 1px;
}

.curatorial-label {
font-size: 0.65rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--brown-mid);
opacity: 0.7;
margin-bottom: 1.75rem;
}

.curatorial-quote {
font-family: 'Cormorant Garamond', serif;
font-style: italic;
font-weight: 300;
font-size: clamp(1.2rem, 2.2vw, 1.65rem);
line-height: 1.55;
color: var(--ink);
margin-bottom: 1.75rem;
}

.curatorial-body {
font-size: 0.85rem;
line-height: 1.95;
color: var(--brown);
letter-spacing: 0.02em;
max-width: 50ch;
}

.curatorial-email {
display: inline-block;
margin-top: 1.75rem;
font-size: 0.82rem;
letter-spacing: 0.04em;
color: var(--ink);
text-decoration: none;
padding-bottom: 0.35rem;
border-bottom: 1px solid var(--brown);
transition: color 0.3s;
}

.curatorial-email:hover { color: var(--brown); }

/* ── ARTISTS ── */
.artists-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 3px;
}

.artist-card {
position: relative;
background: var(--warm-white);
overflow: hidden;
cursor: pointer;
}

.artist-canvas-wrap {
width: 100%;
aspect-ratio: 4/3;
overflow: hidden;
}

.artist-canvas-wrap canvas {
width: 100%;
height: 100%;
display: block;
transition: transform 0.6s ease;
}

.artist-card:hover canvas { transform: scale(1.03); }

.artist-info {
padding: 1.75rem 2rem;
border-top: 1px solid var(--rule);
}

.artist-name {
font-family: 'Cormorant Garamond', serif;
font-weight: 400;
font-size: 1.35rem;
letter-spacing: 0.04em;
color: var(--ink);
margin-bottom: 0.3rem;
}

.artist-meta {
font-size: 0.7rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--brown-mid);
margin-bottom: 0.85rem;
}

.artist-desc {
font-size: 0.84rem;
color: var(--brown);
line-height: 1.75;
max-width: 42ch;
}

.artist-tag {
display: inline-block;
margin-top: 1rem;
font-size: 0.63rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--brown-light);
border: 1px solid var(--brown-hair);
padding: 0.25rem 0.6rem;
}

/* ── ABOUT ── */
.about {
background: var(--ink);
color: var(--cream);
}

.about .section-title { color: var(--cream); }
.about .section-number { color: var(--brown-mid); }
.about .section-header { border-color: rgba(255,255,255,0.1); }

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 5rem;
align-items: start;
}

.about-body {
font-size: 0.88rem;
line-height: 2;
color: var(--brown-hair);
}

.about-body p + p { margin-top: 1.25rem; }

.about-details {
display: flex;
flex-direction: column;
gap: 2rem;
}

.about-detail-item {
border-top: 1px solid rgba(255,255,255,0.08);
padding-top: 1.5rem;
}

.about-detail-label {
font-size: 0.65rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--brown-mid);
margin-bottom: 0.5rem;
}

.about-detail-value {
font-family: 'Cormorant Garamond', serif;
font-size: 1.05rem;
color: var(--cream);
line-height: 1.5;
}

.about-detail-sub {
display: block;
margin-top: 0.5rem;
/* EDIT — FONTS — to change site fonts, also update the Google Fonts <link> in index.html */ font-family: 'Jost', sans-serif;
font-weight: 300;
font-size: 0.72rem;
letter-spacing: 0.06em;
color: var(--brown-mid);
}

.about-detail-sub a {
color: var(--brown-hair);
text-decoration: none;
border-bottom: 1px solid var(--brown);
padding-bottom: 1px;
transition: color 0.3s;
}

.about-detail-sub a:hover { color: var(--cream); }

/* ── EXHIBITIONS ── */
.exhibitions-list {
display: flex;
flex-direction: column;
gap: 0;
}

.exhibition-item {
display: grid;
grid-template-columns: 120px 1fr auto;
gap: 2rem;
align-items: center;
padding: 2rem 0;
border-bottom: 1px solid var(--rule);
transition: background 0.3s;
}

.exhibition-item:first-child { border-top: 1px solid var(--rule); }

.ex-date {
font-family: 'Cormorant Garamond', serif;
font-size: 0.85rem;
color: var(--brown-mid);
letter-spacing: 0.05em;
}

.ex-title {
font-family: 'Cormorant Garamond', serif;
font-size: 1.15rem;
color: var(--ink);
}

.ex-venue {
font-size: 0.72rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--brown-light);
margin-top: 0.25rem;
}

.ex-status {
font-size: 0.63rem;
letter-spacing: 0.15em;
text-transform: uppercase;
padding: 0.3rem 0.75rem;
border: 1px solid;
}

.ex-status.upcoming {
color: var(--brown);
border-color: var(--brown-light);
}

.ex-status.past {
color: var(--brown-light);
border-color: var(--rule);
}

/* ── CONTACT ── */
.contact {
background: var(--warm-white);
border-top: 1px solid var(--rule);
}

.contact-inner {
max-width: 600px;
}

.contact-intro {
font-size: 0.88rem;
color: var(--brown);
line-height: 1.9;
margin-bottom: 3rem;
max-width: 50ch;
}

.contact-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}

.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.form-group label {
font-size: 0.65rem;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--brown-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
background: transparent;
border: none;
border-bottom: 1px solid var(--rule);
padding: 0.6rem 0;
/* EDIT — FONTS — to change site fonts, also update the Google Fonts <link> in index.html */ font-family: 'Jost', sans-serif;
font-weight: 300;
font-size: 0.88rem;
color: var(--ink);
outline: none;
transition: border-color 0.3s;
width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border-color: var(--brown);
}

.form-group textarea { resize: none; min-height: 80px; }

.req { color: var(--gold); font-size: 0.85em; }

.form-error {
display: none;
color: #9a3b2e;
font-size: 0.78rem;
letter-spacing: 0.02em;
margin-bottom: 0.25rem;
}
.form-error.show { display: block; }

.hp-field { display: none; }

.form-success {
display: none;
font-family: 'Cormorant Garamond', serif;
font-style: italic;
font-size: 1.15rem;
color: var(--ink);
line-height: 1.6;
}
.form-success.show { display: block; }

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
border-color: #9a3b2e;
}

.form-submit {
display: inline-flex;
align-items: center;
gap: 1rem;
background: var(--ink);
color: var(--cream);
border: none;
padding: 1rem 2.5rem;
/* EDIT — FONTS — to change site fonts, also update the Google Fonts <link> in index.html */ font-family: 'Jost', sans-serif;
font-size: 0.72rem;
letter-spacing: 0.18em;
text-transform: uppercase;
cursor: pointer;
transition: background 0.3s;
width: fit-content;
margin-top: 0.5rem;
}

.form-submit:hover { background: var(--brown); }

/* ── FOOTER ── */
footer {
padding: 2.5rem 4rem;
border-top: 1px solid var(--rule);
display: flex;
justify-content: space-between;
align-items: center;
}

.footer-logo {
font-family: 'Cormorant Garamond', serif;
font-size: 1rem;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--ink);
}

.footer-note {
font-size: 0.68rem;
letter-spacing: 0.1em;
color: var(--brown-light);
}

.footer-links {
display: flex;
gap: 2rem;
list-style: none;
}

.footer-links a {
font-size: 0.68rem;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--brown-mid);
text-decoration: none;
transition: color 0.3s;
}

.footer-links a:hover { color: var(--ink); }

/* ── OPENING BANNER ── */
.opening-banner {
background: var(--brown);
color: var(--cream);
text-align: center;
padding: 0.75rem 2rem;
font-size: 0.68rem;
letter-spacing: 0.2em;
text-transform: uppercase;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
}

/* ── FADE IN ── */
.fade-in {
opacity: 0;
transform: translateY(18px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}
  .nav-toggle { display: flex; }

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--brown-hair);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links li {
  text-align: center;
  padding: 0.65rem 0;
}
nav { padding: 1.25rem 1.5rem; }
.hero { padding: 6rem 1.5rem 4rem; min-height: 90vh; }
.hero-title { font-size: clamp(3.5rem, 14vw, 6rem); }
.hero-ghost { font-size: clamp(70px, 18vw, 130px); bottom: 30px; right: -10px; }
section { padding: 5rem 1.5rem; }
.artists-grid { grid-template-columns: 1fr; }
.about-grid { grid-template-columns: 1fr; }
.curatorial-grid { grid-template-columns: 1fr; gap: 3rem; }
.curatorial-divider { width: 100%; height: 1px; }
.form-row { grid-template-columns: 1fr; }
footer { flex-direction: column; gap: 1.5rem; text-align: center; }
.exhibition-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ============================================================================
   SERVICES SECTIONS — Advisory & Curation
   EDIT — Padding, max-width, text size for the service section bodies
   ============================================================================ */
.services {
  padding: 7rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.services-inner {
  max-width: 720px;
}

.services-body {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.services-body:last-child {
  margin-bottom: 0;
  color: var(--brown);
}

.section-meta {
  margin-left: auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brown-mid);
}

@media (max-width: 768px) {
  .services { padding: 4rem 1.5rem; }
}
