/* Fafa — concept site shared styles */

:root {
  --paper: #F4F0E8;
  --ink: #0F0F0F;
  --hairline: #8A8580;
  --ink-70: rgba(15, 15, 15, 0.7);
  --ink-12: rgba(15, 15, 15, 0.12);
  --ink-06: rgba(15, 15, 15, 0.06);

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --page-max: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-12);
}
.topbar-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.brand-word .prefix {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hairline);
  padding-bottom: 1px;
}
.brand-word .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- artwork frame ---------- */
.art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
}

.nav {
  display: flex;
  gap: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: opacity .25s ease;
}
.nav a:hover { opacity: 0.7; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

.topbar-meta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--hairline);
}

/* Language switcher in topbar */
.lang-switch {
  justify-self: end;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hairline);
}
.lang-switch a {
  color: var(--hairline);
  padding: 4px 2px;
  transition: color .25s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.lang-switch .sep { color: var(--ink-12); }

/* ---------- Page chrome ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--ink-12);
  margin-top: 120px;
  padding: 36px var(--gutter) 48px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hairline);
}
.footer a:hover { color: var(--ink); }
.footer-cols {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

/* ---------- Buttons / links ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: opacity .25s ease;
}
.cta:hover { opacity: 0.85; }
.cta--ghost {
  background: transparent;
  color: var(--ink);
}
.cta--ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.cta .arrow { display: inline-block; transition: transform .25s ease; }
.cta:hover .arrow { transform: translateX(4px); }

.text-link {
  border-bottom: 1px solid var(--ink-12);
  padding-bottom: 2px;
  transition: border-color .25s ease, opacity .25s ease;
}
.text-link:hover { border-bottom-color: var(--ink); opacity: 0.7; }

/* ---------- Placeholder marker ---------- */
.placeholder-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hairline);
  border: 1px solid var(--hairline);
  padding: 3px 7px;
  border-radius: 2px;
}

/* Placeholder artwork — black canvas with raking-light suggestion */
.artwork-ph {
  position: relative;
  background: #0F0F0F;
  color: #F4F0E8;
  overflow: hidden;
  isolation: isolate;
}
.artwork-ph::before {
  /* Raking light — diagonal striped gradient suggesting textural relief */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(244, 240, 232, 0.05) 0px,
      rgba(244, 240, 232, 0.05) 1px,
      transparent 1px,
      transparent 6px
    ),
    radial-gradient(
      ellipse at 25% 30%,
      rgba(244, 240, 232, 0.18),
      transparent 55%
    );
  z-index: 0;
}
.artwork-ph > * { position: relative; z-index: 1; }
.artwork-ph__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.55);
  text-transform: uppercase;
}
.artwork-ph__num {
  position: absolute;
  right: 18px;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.5);
}

/* Form motif inside placeholder — sparse, ghosted, hints at the composition */
.artwork-ph__form {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

/* ---------- Reusable focus state ---------- */
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Small utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
