/* ============================================================
   Carolyn Delzoppo — contemporary redesign (2026)
   A quiet, gallery-like system: warm paper ground, graphite ink,
   a single deep enamel-teal accent. The work carries the colour.
   ============================================================ */

:root {
  --paper:      #F1F1F1;   /* page ground, light gallery grey */
  --paper-2:    #E7E7E7;   /* recessed bands */
  --ink:        #000000;   /* black text */
  --ink-soft:   #222222;   /* secondary text */
  --muted:      #555555;   /* captions, meta */
  --line:       #D6D6D6;   /* hairlines */
  --accent:     #2E5048;   /* deep enamel teal-green */
  --accent-2:   #43756A;   /* hover */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1200px;
  --gut: clamp(1.1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 1rem;
}
.display    { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
.display-sm { font-family: var(--serif); font-weight: 400; line-height: 1.1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; padding-block: .6rem;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .01em;
  line-height: 1; white-space: nowrap;
}
.brand small { display: block; font-family: var(--sans); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: clamp(.9rem, 2.4vw, 2rem); align-items: center; }
.nav a {
  font-size: .9rem; letter-spacing: .02em; color: var(--ink-soft);
  padding: .3rem 0; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem);
}
.hero-text .display { font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 0 0 1.25rem; }
.hero-text .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }
.doorways { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(28,26,23,.45);
}
.hero-media figcaption {
  font-size: .78rem; color: var(--muted); margin-top: .7rem; letter-spacing: .02em;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 500; letter-spacing: .02em;
  padding: .72rem 1.4rem; border-radius: 999px; transition: all .2s ease;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.link-arrow { color: var(--accent); font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Section ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-head { max-width: 40ch; margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.section-head .display-sm { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Work grid (selected work + galleries) ---------- */
.work-grid, .gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.work-item { display: block; }
.work-item figure { margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.work-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption {
  font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-top: .7rem; line-height: 1.3;
}
.work-item .meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); display: block; margin-top: .2rem; }

/* ---------- About band ---------- */
.about-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.about-inner { padding-block: clamp(2.8rem, 7vw, 5.5rem); max-width: 760px; }
.about-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.45; margin: 0 0 1.5rem; }

/* ---------- Gallery pages ---------- */
.page-head { padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(1rem,2vw,1.6rem); }
.page-head .display { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head .lede { color: var(--ink-soft); max-width: 55ch; margin: .8rem 0 0; }
.gallery h1, .year-head {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  margin: clamp(1.6rem,3vw,2.6rem) 0 1.1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line); color: var(--accent);
}
.gallery-item { display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- News list ---------- */
.news-list { max-width: 760px; }
.news-item { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.news-item .date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.news-item h3 { font-family: var(--serif); font-size: 1.5rem; margin: .4rem 0 .6rem; }
.news-item .excerpt { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D3C7; margin-top: clamp(3rem,8vw,6rem); }
.site-footer .wrap { padding-block: clamp(2.5rem,6vw,4rem); display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.site-footer .f-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); }
.site-footer a { color: #D9D3C7; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.site-footer a:hover { color: #fff; border-color: #6d8c84; }
.site-footer .f-col h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9aa79f; font-weight: 600; margin: 0 0 .8rem; }
.site-footer .f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.site-footer .f-legal { width: 100%; border-top: 1px solid #39342d; padding-top: 1.3rem; font-size: .8rem; color: #8f887c; }

/* ---------- Lightbox (used by js/gallery.js) ---------- */
.cdz-lightbox { display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(241,241,241,.97); align-items: center; justify-content: center; padding: clamp(1rem,4vw,3rem); }
.cdz-lightbox.is-open { display: flex; }
.cdz-lightbox__figure { margin: 0; max-width: 95%; max-height: 95%; text-align: center; }
.cdz-lightbox__img { max-width: 100%; max-height: 82vh; height: auto; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cdz-lightbox__caption { color: #000; font-family: var(--serif); font-size: 1rem; margin-top: 1rem; }
.cdz-lightbox__close { position: absolute; top: clamp(.8rem,3vw,1.6rem); right: clamp(1rem,4vw,2rem);
  background: none; border: 0; color: #000; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---------- Legacy content pages (news, CMS pages) in new chrome ---------- */
.content-page { max-width: 820px; padding-block: clamp(2rem, 5vw, 3.5rem); }
.content-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1; margin: 2.4rem 0 1rem; color: var(--ink); }
.content-page h1:first-child { margin-top: 0; }
.content-page h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 1.6rem 0 .6rem; }
.content-page p { margin: 0 0 1rem; }
.content-page a { color: var(--accent); border-bottom: 1px solid transparent; }
.content-page a:hover { border-color: var(--accent); }
.content-page img { border-radius: 2px; margin: .5rem 0; }
.article-body, .page-body { overflow: hidden; margin: 0 0 2.6rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-body:last-child, .page-body:last-child { border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem,6vw,4rem); }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: block; margin-bottom: .4rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-aside .display-sm { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-aside p { color: var(--ink-soft); margin: 0 0 1rem; }
.field-error { color: #a6402f; font-size: .82rem; margin-top: .3rem; }
.form-note { padding: .85rem 1.1rem; border-radius: 4px; font-size: .97rem; margin-bottom: 1.3rem; }
.form-note.ok { background: #e6efe9; color: var(--accent); }
.form-note.err { background: #f6e8e4; color: #a6402f; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .6rem; min-height: 0; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  body { font-size: 16px; }
  .work-grid, .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
