:root {
  /* Salt & Grain — palette */
  --sand: #F7F3EC;
  --ink: #1E2622;
  --terracotta: #D96C3F;
  --line: #DCD3C3;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale: 8 / 16 / 24 / 40 / 64 / 96 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  /* Rhythm */
  --section-y: clamp(64px, 9vw, 120px);
  --content-width: 1280px;
  --grid-gap: var(--s3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

/* Container: 12-col grid, centred, capped at 1280px. Later sections lay their
   content across this grid; helpers below make that uniform. */
.container {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s2);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand:hover { color: var(--ink); }

.header-nav {
  display: flex;
  gap: var(--s3);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.45;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-btn[aria-pressed="true"], .lang-btn:hover { opacity: 1; color: var(--terracotta); }

.lang-sep { color: var(--line); }

/* Sections */
.section { padding-block: var(--section-y); }

/* Space for the later full-bleed gallery band */
.section[data-section="gallery"] {
  background: var(--white);
  border-block: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s4);
  margin-top: var(--s6);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: baseline;
  justify-content: space-between;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.footer-copy { font-size: 0.9rem; opacity: 0.7; }

/* Language — elements carrying [lang] are hidden until their language is on */
[lang] { display: revert; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

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