/* =============================================================================
   NATHALIE GHARBI DESIGN — Main Stylesheet
   Last updated: 2026

   ┌─ QUICK EDIT ──────────────────────────────────────────────────────────────┐
   │  Change these variables to restyle the whole site instantly.              │
   │  --paper        Page background colour                                    │
   │  --ink          Primary text / dark UI colour                             │
   │  --accent       Hover accent (currently warm brown)                       │
   │  --serif        Heading font                                               │
   │  --sans         Body font                                                  │
   │  --sp           Vertical section spacing                                  │
   └───────────────────────────────────────────────────────────────────────────┘

   TABLE OF CONTENTS
   1.  Custom Properties (design tokens)
   2.  Reset & Base
   3.  Layout utility
   4.  Navigation
   5.  Typography classes
   6.  Section spacing helpers
   7.  Collection tile grid   (.work-grid / .tile)
   8.  Piece grid             (.piece-grid / .piece)
   9.  Piece detail page      (.detail-lead, .media-full, .media-grid, .spec)
   10. About page             (.about-grid, .portrait, .timeline)
   11. Contact page           (.contact-grid, .field, .btn)
   12. Video hero + catalogue strip
   13. Footer
   14. Entrance animation     (.rise)
   15. Responsive — tablet ≤ 820 px
   16. Responsive — mobile  ≤ 460 px
============================================================================= */


/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  /* Palette */
  --paper:        #F5F3EE;   /* page background */
  --paper-2:      #EFEDE6;   /* card / frame background */
  --ink:          #22201A;   /* primary text */
  --ink-soft:     #3B382F;   /* secondary text */
  --muted:        #8A867B;   /* captions, metadata */
  --line:         #DBD7CC;   /* light dividers */
  --line-strong:  #C9C4B7;   /* stronger dividers */
  --accent:       #7C6A4E;   /* hover accent */

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --gutter: clamp(22px, 5vw, 72px);
  --maxw:   1360px;
  --sp:     clamp(64px, 9vh, 120px);
}


/* ─── 2. RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { 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.75;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
hr  { border: none; border-top: 1px solid var(--line); margin: 0; }


/* ─── 3. LAYOUT UTILITY ────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ─── 4. NAVIGATION ─────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-soft);
  padding-block: 4px;
  transition: color .2s ease;
}
.nav-links a:hover              { color: var(--muted); }
.nav-links a[aria-current=page] { color: var(--ink); border-bottom: 1px solid var(--ink); }

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
}


/* ─── 5. TYPOGRAPHY CLASSES ─────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}

.tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: .005em;
  margin: 0;
}
.tagline span { display: block; }
.tagline .dim { color: var(--muted); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: .2em 0 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.16;
  margin: 0;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: .9em 0 0;
  font-weight: 400;
}

.poem {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: .6em 0 0;
}

.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.24;
  letter-spacing: .005em;
  max-width: 22ch;
  margin: 0;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.32;
  font-weight: 500;
  margin: 0;
}

.muted { color: var(--muted); }
.dim   { color: var(--muted); }

.arrow-link {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity .2s;
}
.arrow-link:hover { opacity: .55; }

.metarow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: .92rem;
}
.metarow .sep { color: var(--line-strong); }


/* ─── 6. SECTION SPACING HELPERS ────────────────────────────────────────────── */
.hero       { padding-block: clamp(40px, 7vh, 90px) clamp(50px, 8vh, 96px); }
.section    { padding-block: var(--sp); }
.section-sm { padding-block: clamp(40px, 6vh, 72px); }
.page-head  { padding-block: clamp(30px, 5vh, 64px) clamp(20px, 3vh, 36px); }

.hero-sub {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: clamp(30px, 5vh, 52px);
}

.eyebrow {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.eyebrow .idx { font-size: .7rem; letter-spacing: .2em; color: var(--muted); }

.nextnav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: clamp(40px, 6vh, 72px);
}

.empty-note {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(32px, 5vw, 64px);
}
.empty-note .h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }


/* ─── 7. COLLECTION TILE GRID ───────────────────────────────────────────────── */
/*
   Pages: index.html (3-up), collections.html (3-up)
   All tile images are portrait — 4:5 frame with cover works perfectly.
   object-position: center 15% keeps top of each piece in frame.
*/
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
.work-grid.three { grid-template-columns: repeat(3, 1fr); }

.tile { display: block; }

.tile .frame {
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.03); }

.tile-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tile-cap .nm  { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.tile-cap .mat { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }

.tile-note { margin: .7em 0 0; color: var(--ink-soft); max-width: 46ch; }

.tile .more {
  display: inline-block;
  margin-top: 14px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
}
.tile:hover .more { color: var(--ink); }


/* ─── 8. PIECE GRID ─────────────────────────────────────────────────────────── */
/*
   Pages: collection-*.html (3-up grid)

   Images are a mix of landscape and portrait product shots.
   Solution: square frame (1:1) + object-fit:cover.
   — No letterbox bars ever appear.
   — Landscape images: minimal side crop, subject stays centered.
   — Portrait images: minimal top/bottom crop, object-position:top preserves the piece top.
   The square grid gives a clean, editorial rhythm across all collections.
*/
.piece-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.piece { display: block; }

.piece .frame {
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;  /* portrait sculptures: keep the top of the piece visible */
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.piece:hover img { transform: scale(1.04); }

/* Override for landscape-dominant images — center is better than top */
.piece img.center { object-position: center center; }

.piece .pc-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 14px;
}
.piece .pc-meta {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 4px;
}


/* ─── 9. PIECE DETAIL PAGE ──────────────────────────────────────────────────── */
.detail-lead {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(20px, 3vh, 40px) clamp(30px, 5vh, 56px);
}

.desc { margin: 0; color: var(--ink-soft); }

/*
   Full-width hero image on piece pages.
   cover + generous fixed height fills the frame beautifully for any orientation.
   Landscape tables: fill the wide frame edge to edge.
   Portrait sculptures: fill full height, sides cropped symmetrically.
*/
.media-full {
  background: var(--paper-2);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vh, 52px);
}
.media-full img {
  width: 100%;
  height: clamp(420px, 62vh, 760px);
  object-fit: cover;
  object-position: center center;
}
/* For tall portrait sculptures: favour the top so the full piece stays visible */
.media-full img.portrait-piece {
  object-position: center top;
}

/*
   2-column photo grid on piece pages (environmental / detail shots).
   Square cells + cover fills every cell cleanly.
*/
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(28px, 4vh, 52px) 0;
}
.media-grid .cell {
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.media-grid .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Specifications table */
.spec {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  margin-top: clamp(20px, 3vh, 36px);
  max-width: 640px;
}
.spec .t  { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 14px; }
.spec dl  { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 0; }
.spec dt  { padding: 12px 0; border-top: 1px solid var(--line); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.spec dd  { padding: 12px 0; border-top: 1px solid var(--line); margin: 0; color: var(--ink-soft); }


/* ─── 10. ABOUT PAGE ────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/*
   portrait.png is 787×784 — nearly square.
   Square frame + cover keeps the face perfectly centred.
*/
.portrait {
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-grid .body p      { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 60ch; }
.about-grid .body p.lede { color: var(--ink); }

.timeline { display: flex; flex-direction: column; }

.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.tl-row .yr { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }
.tl-row .t  { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }


/* ─── 11. CONTACT PAGE ──────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 88px);
}

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }

.btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: 15px 30px;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

.contact-info .row             { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-info .row:first-child { border-top: 1px solid var(--ink); }
.contact-info .k               { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 6px; }


/* ─── 12. VIDEO HERO + CATALOGUE STRIP ─────────────────────────────────────── */
.video-hero { width: 100%; background: var(--paper-2); overflow: hidden; }
.video-hero video,
.video-hero img {
  display: block;
  width: 100%;
  height: clamp(300px, 60vh, 640px);
  object-fit: cover;
  object-position: center center;
}

.catalogue-row {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.catalogue-row .cat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.hero.after-video { padding-block: clamp(44px, 7vh, 86px) clamp(50px, 8vh, 96px); }


/* ─── 13. FOOTER ────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--sp); }
.site-foot .wrap { padding-block: clamp(48px, 7vh, 88px); }

.foot-lead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vh, 60px);
}
.foot-lead .big {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
  line-height: 1.16;
}

.foot-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: .8rem;
  color: var(--muted);
}
.foot-meta a:hover { color: var(--ink); }


/* ─── 14. ENTRANCE ANIMATION ────────────────────────────────────────────────── */
/* Fully visible by default — animation is progressive enhancement only. */
.rise { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .rise.in { opacity: 1; transform: none; }
}


/* ─── 15. RESPONSIVE — TABLET ≤ 820 px ─────────────────────────────────────── */
@media (max-width: 900px) {
  .work-grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }

  /* Hamburger nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-inline: var(--gutter);
    z-index: 20;
  }
  .nav-links.open         { display: flex; }
  .nav-links a            { padding: 16px 0; border-bottom: 1px solid var(--line); letter-spacing: .16em; }
  .nav-links a:last-child { border-bottom: none; }

  /* Grids */
  .work-grid       { grid-template-columns: 1fr; gap: 44px; }
  .work-grid.three { grid-template-columns: 1fr; }
  .piece-grid      { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  /* Page layouts */
  .detail-lead  { grid-template-columns: 1fr; gap: 20px; }
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-grid   { grid-template-columns: 1fr; }

  /* Elements */
  .portrait        { max-width: 360px; }
  .spec dl         { grid-template-columns: 130px 1fr; }
  .tl-row          { grid-template-columns: 70px 1fr; gap: 14px; }
  .catalogue-row   { justify-content: flex-start; }
}


/* ─── 16. RESPONSIVE — MOBILE ≤ 460 px ─────────────────────────────────────── */
@media (max-width: 460px) {
  .piece-grid { grid-template-columns: 1fr; }
  .hero-sub   { flex-direction: column; gap: 18px; }
}
