/* ============================================================
   Fine Linen Creation — Comp 01: Stone and Silence
   Shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,100..700,0..100;1,9..144,100..700,0..100&family=Inter:wght@200..700&display=swap');

/* ── Tokens ── */
:root {
  --mist:   #ECECEA;
  --pebble: #D7D6D2;
  --white:  #FFFFFF;
  --ink:    #1F1D1A;
  --stone:  #7A746B;
  --faint:  #B5AFA5;
  --brass:  #9C8A6B;

  --lateral-lg: 80px;
  --lateral-md: 48px;
  --lateral-sm: 24px;
  --max-w: 1440px;
  --measure: 720px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--mist);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Type helpers ── */
.serif {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
}

/* display tokens */
.display-xl  { font-size: clamp(56px, 7vw, 96px);  line-height: 1.05; letter-spacing: -0.01em; }
.display-lg  { font-size: clamp(44px, 5.5vw, 72px); line-height: 1.08; letter-spacing: -0.01em; }
.display-md  { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.12; }
.heading-h1  { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; }
.heading-h2  { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.20; }
.heading-h3  { font-size: clamp(22px, 2vw,  24px);  line-height: 1.30; }
.eyebrow     { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.body-lg     { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.60; }
.body-md     { font-size: clamp(15px, 1.2vw, 16px); line-height: 1.65; }
.body-sm     { font-size: clamp(13px, 1vw,  14px);  line-height: 1.60; }
.caption     { font-size: clamp(11px, 0.85vw, 12px); line-height: 1.50; letter-spacing: 0.04em; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--lateral-lg);
  padding-right: var(--lateral-lg);
}
@media (max-width: 1280px) {
  .container { padding-left: var(--lateral-md); padding-right: var(--lateral-md); }
}
@media (max-width: 768px) {
  .container { padding-left: var(--lateral-sm); padding-right: var(--lateral-sm); }
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 var(--lateral-lg);
  transition: background 300ms ease-out;
}
.site-nav.scrolled { background: var(--mist); }
@media (max-width: 1280px) { .site-nav { padding: 0 var(--lateral-md); } }
@media (max-width: 768px)  { .site-nav { padding: 0 var(--lateral-sm); } }

.nav-wordmark {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-wordmark.light { color: var(--mist); }
.site-nav.scrolled .nav-wordmark { color: var(--ink); }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links li { display: flex; align-items: center; }
.nav-links .dot {
  color: var(--faint);
  font-size: 11px;
  padding: 0 24px;
  user-select: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 400ms ease-out;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links.light a { color: rgba(234,226,212,0.7); }
.nav-links.light .dot { color: rgba(234,226,212,0.35); }
.site-nav.scrolled .nav-links a { color: var(--stone); }
.site-nav.scrolled .nav-links .dot { color: var(--faint); }
.site-nav.scrolled .nav-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

.nav-cta {
  margin-left: 32px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  transition: color 300ms ease-out, border-color 300ms ease-out, background 300ms ease-out;
}
.nav-cta:hover { background: var(--ink); color: var(--mist); }
.nav-cta.light { color: var(--mist); border-color: rgba(236,236,234,0.5); }
.nav-cta.light:hover { background: rgba(236,236,234,0.15); color: var(--mist); border-color: var(--mist); }
.site-nav.scrolled .nav-cta { color: var(--ink); border-color: var(--ink); background: transparent; }
.site-nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--mist); }
@media (max-width: 900px) { .nav-cta { margin-left: auto; } }

/* ── CTA ── */
.cta-primary {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 400ms ease-out, border-color 400ms ease-out;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.cta-primary:hover { color: var(--stone); border-bottom-color: var(--stone); }

.cta-secondary {
  display: inline-block;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.65;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 300ms ease-out;
}
.cta-secondary:hover { border-bottom-color: var(--ink); }

/* ── Image ── */
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure { position: relative; }
figure figcaption {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* ── Photo placeholder ── */
.photo {
  background-color: var(--pebble);
  overflow: hidden;
  position: relative;
}
.photo img { transition: opacity 300ms ease-out; }
.photo:hover img { opacity: 0.85; }
.photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  pointer-events: none;
}

/* ── Sections ── */
.section {
  padding: 140px 0;
}
.section--tight {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section       { padding: 80px 0; }
  .section--tight { padding: 60px 0; }
}

.section-pebble { background: var(--pebble); }

/* ── Footer ── */
.site-footer {
  background: var(--pebble);
  padding: 140px 0 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
  text-decoration: none;
  transition: color 400ms ease-out;
}
.footer-links a:hover { color: var(--ink); }
.footer-links a.italic { font-style: italic; font-family: 'Fraunces', serif; font-optical-sizing: auto; font-variation-settings: "opsz" 144, "SOFT" 50; }

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--faint);
}
.footer-wordmark {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
}
.footer-copy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}
