/* ============================================================
   FIL ROUGE — Francesca Rubei
   One stylesheet shared by every page of the site.
   Colors and fonts are defined once, here, so the whole
   site can be re-tinted by editing the four lines below.
   ============================================================ */

:root {
  --cream: #faf8f4;        /* page background */
  --ink: #1c1a17;          /* main text */
  --rouge: #b01e2e;        /* the signature red — "le fil rouge" */
  --soft: #8a8378;         /* muted captions */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Masthead & navigation ---------- */

.topbar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.4rem 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.topbar a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.topbar a:hover { color: var(--rouge); }
.topbar a.active { border-bottom-color: var(--rouge); color: var(--rouge); }

.masthead {
  text-align: center;
  padding: 2.2rem 1rem 1rem;
}

.masthead h1 {
  font-family: 'Bodoni Moda', 'Didot', serif;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.18em;
  line-height: 1;
}

.masthead h1 a:hover { color: var(--rouge); transition: color .4s; }

.masthead .byline {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--soft);
}

.rule {
  width: min(1200px, 92%);
  margin: 1.8rem auto 0;
  border: none;
  border-top: 1px solid #ddd6cb;
}

/* ---------- Hero ---------- */

.hero {
  width: min(1200px, 92%);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero img { width: 100%; height: auto; }

.hero-text .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.2rem;
}

.hero-text h2 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero-text p { max-width: 34em; color: #3d3a34; }

.hero-text .cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: all .35s;
}

.hero-text .cta:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }

/* ---------- Section headings ---------- */

.section-head {
  text-align: center;
  margin: 5rem auto 3rem;
}

.section-head .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rouge);
}

.section-head h2, .section-head h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-top: 0.6rem;
}

/* ---------- Collection grid ---------- */

.collection {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 2rem;
}

.piece.wide { grid-column: span 2; }

.piece figure { overflow: hidden; }

.piece img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.piece.wide img { aspect-ratio: 7 / 5; }

.piece:hover img { transform: scale(1.035); }

.piece figcaption {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.piece .num {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  color: var(--rouge);
  font-size: 0.95rem;
  white-space: nowrap;
}

.piece .name {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: right;
}

/* ---------- Pull quote band ---------- */

.quote-band {
  margin: 6rem 0;
  padding: 5rem 1rem;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.quote-band blockquote {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  max-width: 22em;
  margin: 0 auto;
}

.quote-band cite {
  display: block;
  margin-top: 1.6rem;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #b3aca0;
}

/* ---------- Article pages (designer / atelier) ---------- */

.article {
  width: min(1200px, 92%);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.article.flip { grid-template-columns: 1.1fr 1fr; }

.article img { width: 100%; }

.article .body h2 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.article .body .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1.1rem;
}

.article .body p { margin-bottom: 1.3rem; color: #3d3a34; max-width: 36em; }

.article .body p.lead {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}

.drop::first-letter {
  font-family: 'Bodoni Moda', serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--rouge);
}

/* ---------- Craft steps ---------- */

.steps {
  width: min(980px, 92%);
  margin: 4rem auto 0;
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid #ddd6cb;
}

.step .n {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--rouge);
  line-height: 1;
}

.step h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.step p { color: #3d3a34; max-width: 40em; }

/* ---------- Contact ---------- */

.contact-wrap {
  width: min(1100px, 92%);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 1.4rem;
}

.contact-info p { margin-bottom: 1.2rem; color: #3d3a34; max-width: 30em; }

.contact-lines { margin-top: 2.2rem; }

.contact-lines div {
  padding: 1.1rem 0;
  border-top: 1px solid #ddd6cb;
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.contact-lines .label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--soft);
  min-width: 7.5em;
}

.contact-lines a:hover { color: var(--rouge); }

form .field { margin-bottom: 1.6rem; }

form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--soft);
}

form input, form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9c1b3;
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
}

form input:focus, form textarea:focus { border-bottom-color: var(--rouge); }

form button {
  margin-top: 0.6rem;
  padding: 0.9rem 2.8rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s;
}

form button:hover { background: var(--rouge); border-color: var(--rouge); }

/* ---------- Gallery page ---------- */

.gallery-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.gallery-item { overflow: hidden; }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 1.2s ease;
}

.gallery-item:hover img { transform: scale(1.035); }

.gallery-empty {
  text-align: center;
  color: var(--soft);
  margin: 3rem auto;
  max-width: 32em;
  padding: 0 1rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: min(88vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
}

.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: #f5f1ea;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  transition: color .3s;
}

.lb-btn:hover { color: var(--rouge); }

.lb-close { top: 1rem; right: 1.2rem; font-size: 2.6rem; }
.lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */

footer {
  margin-top: 6rem;
  padding: 3.5rem 1rem 3rem;
  border-top: 1px solid #ddd6cb;
  text-align: center;
}

footer .foot-mark {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
}

footer .foot-mark span { color: var(--rouge); }

footer nav {
  margin: 1.4rem 0 1.2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

footer nav a:hover { color: var(--rouge); }

footer .fine {
  font-size: 0.72rem;
  color: var(--soft);
  letter-spacing: 0.08em;
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .topbar { gap: 1.2rem; flex-wrap: wrap; font-size: 0.66rem; }
  .hero, .article, .article.flip, .contact-wrap { grid-template-columns: 1fr; gap: 2.2rem; }
  .collection { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .piece.wide { grid-column: span 2; }
  .step { grid-template-columns: 56px 1fr; gap: 1.2rem; }
}

@media (max-width: 480px) {
  .collection { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .piece.wide { grid-column: span 1; }
  .piece.wide img { aspect-ratio: 4 / 5; }
}
