/* Shared design tokens for Lucile Palous Studio */
:root {
  --paper: #F4EEE4;
  --paper-deep: #ECE3D3;
  --ink: #1F1B16;
  --ink-soft: #3B342B;
  --stone: #C9BFB1;
  --stone-soft: #DED4C3;
  --line: #2A241D;
  --accent: #B7532A;
  --muted: #80776B;

  --serif-display: "Cormorant Garamond", "Tenor Sans", serif;
  --serif-editorial: "Instrument Serif", "Cormorant Garamond", serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Variant B palette — warmer archive */
.variant-b {
  --paper: #E8DED0;
  --paper-deep: #D9CBB6;
  --ink: #2A2118;
  --ink-soft: #4A3E2E;
  --stone: #B8A98F;
  --stone-soft: #CCBCA0;
  --line: #2A2118;
  --accent: #7A3B1F;
  --muted: #786B58;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

body {
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Typography primitives */
.display {
  font-family: var(--serif-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.editorial {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Layout utilities */
.frame {
  width: 1440px;
  height: 900px;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
}

/* Top navigation — shared */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  position: relative;
  z-index: 10;
}

.nav-brand {
  font-family: var(--serif-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-brand em {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0 24px;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
}
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
}

.nav-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Placeholder — striped tile w/ monospace caption */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--stone-soft) 0 14px,
      var(--stone) 14px 15px
    );
  overflow: hidden;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  pointer-events: none;
}
.placeholder .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--ink);
  position: relative;
  z-index: 1;
}

/* Pagination / counters */
.counter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.counter strong {
  font-weight: 400;
  color: var(--ink);
}

/* Horizontal rules */
.rule {
  height: 1px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  width: 100%;
}

/* Tag chip */
.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  background: transparent;
  display: inline-block;
}

/* Arrow glyph (CSS only) */
.arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  vertical-align: middle;
  margin-left: 8px;
}
.arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Subtle image hover */
.hover-img {
  overflow: hidden;
  cursor: pointer;
}
.hover-img > * {
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.hover-img:hover > * { transform: scale(1.03); }

/* Project card — image greys + title fades in on hover */
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.03);
  filter: brightness(0.75) saturate(0.85);
}
.project-card .project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-card .project-title {
  color: #fff;
  font-family: var(--serif-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  white-space: nowrap;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}
.project-card:hover .project-title {
  transform: translateY(0);
}

/* Form fields — contact page */
form input,
form textarea {
  font-family: var(--serif-editorial);
  color: var(--ink);
}
form input::placeholder,
form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
  font-style: italic;
}
form input:focus,
form textarea:focus {
  border-bottom-color: var(--accent) !important;
}
