:root {
  --red: #c8102e;
  --red-deep: #8b0a1e;
  --gold: #e8c547;
  --gold-soft: #f3de8a;
  --cream: #f7efe3;
  --ink: #140c0a;
  --ink-2: #2a1a14;
  --paper: #1c1210;
  --muted: #e0d0bc;
  --line: rgba(232, 197, 71, 0.38);
  --focus: #ffe08a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-d: "Playfair Display", Georgia, serif;
  --font-b: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #1a1008;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
main:focus { outline: none; }
main:focus-visible { outline: none; }

.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 80;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(20,12,10,.92), rgba(20,12,10,.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-d);
  letter-spacing: .04em;
}
.brand img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(200,16,46,.35);
}
.brand span { font-size: 1.15rem; }
.brand b { color: var(--gold); font-weight: 700; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-toggle-bars {
  width: 18px; height: 12px;
  background:
    linear-gradient(#f7efe3, #f7efe3) 0 0 / 100% 2px no-repeat,
    linear-gradient(#f7efe3, #f7efe3) 0 5px / 100% 2px no-repeat,
    linear-gradient(#f7efe3, #f7efe3) 0 10px / 100% 2px no-repeat;
}
.nav-links { display: flex; gap: 8px; align-items: center; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.lang {
  display: flex; gap: 4px; background: rgba(255,255,255,.04);
  padding: 4px; border-radius: 999px; border: 1px solid var(--line);
}
.lang button {
  min-width: 44px; min-height: 36px;
  padding: 6px 10px; border-radius: 999px; font-size: .78rem; letter-spacing: .06em;
}
.lang button.active,
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* HERO */
.hero {
  position: relative; min-height: 92vh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,12,10,.35) 0%, rgba(20,12,10,.55) 40%, rgba(20,12,10,.95) 100%),
    url("../assets/img/hero-cafe.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: ken 28s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}
@keyframes ken { to { transform: scale(1.12) translateY(-2%); } }
.hero-inner { position: relative; z-index: 2; padding: 80px 24px 60px; max-width: 980px; }
.hero-logo {
  width: 168px; height: 168px; margin: 0 auto 18px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 8px rgba(200,16,46,.25);
}
.eyebrow {
  color: var(--gold); letter-spacing: .28em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead {
  margin: 22px auto 0; max-width: 620px; color: var(--muted); font-size: 1.15rem;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(200,16,46,.35);
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  box-shadow: none;
}

.spain-bar {
  height: 10px;
  background: linear-gradient(90deg, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}

/* LAYOUT */
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
section { padding: 88px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--font-d); font-size: clamp(2rem, 4vw, 3.2rem);
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }

/* CARDS */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: linear-gradient(180deg, #241612, #160e0c);
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover, .card:focus-within { transform: translateY(-6px); border-color: var(--gold); }
.card a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card a:focus { outline: none; }
.card a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card .thumb {
  height: 210px; overflow: hidden; position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.07); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.card h3 { font-family: var(--font-d); font-size: 1.35rem; line-height: 1.25; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { margin-top: auto; color: var(--gold); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }

/* ABOUT */
.about {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-photo .badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--red); color: #fff; padding: 12px 16px; border-radius: 14px;
  font-family: var(--font-d); font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.kicker { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; margin-bottom: 8px; }
.about h2 { font-family: var(--font-d); font-size: 2.6rem; margin-bottom: 14px; }
.about p { color: var(--muted); margin-bottom: 12px; }

.gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px;
  list-style: none;
}
.gallery li { min-width: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.gallery li:first-child { grid-row: 1 / 3; }

/* ARTICLE VIEW */
.article-view { padding: 40px 0 90px; }
.article-view[hidden], .home-view[hidden] { display: none !important; }
.back {
  color: var(--gold); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  min-height: 44px;
}
.article-hero {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 380px;
  margin-bottom: 34px; border: 1px solid var(--line);
}
.article-hero img { width: 100%; height: 380px; object-fit: cover; }
.article-hero figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 32px 26px;
  background: linear-gradient(transparent, rgba(16,8,6,.92));
}
.article-hero h1 { font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 3rem); max-width: 900px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.12rem; }
.prose p { margin: 0 0 1.1em; color: #f3eadc; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--gold-soft); }
.prose strong { color: var(--gold-soft); }
.prose h3 { font-family: var(--font-d); margin: 1.4em 0 .5em; font-size: 1.6rem; }
.prose ul { margin: 0 0 1.2em 1.2em; color: #efe6d8; }
.prose li { margin: .35em 0; }
.side-art {
  margin: 28px auto; max-width: 760px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
}
.side-art img { width: 100%; }

/* CONTACT */
.contact-box {
  background: linear-gradient(180deg, #2a1612, #160c0a);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; color: var(--gold-soft); }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #2a1a16; border: 1px solid var(--line); color: var(--cream);
  min-height: 44px;
}
input::placeholder, textarea::placeholder { color: #b9a894; }
textarea { min-height: 140px; resize: vertical; }
input:user-invalid, textarea:user-invalid { border-color: #ff8a8a; }
.field-error { color: #ffb4b4; font-size: .88rem; }
.form-ok { color: var(--gold); }
.warn {
  margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--red);
  background: rgba(200,16,46,.16); color: #ffd4d4; font-size: .95rem;
}

footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.gallery-wrap { margin-top: 48px; }

@media (max-width: 860px) {
  .about, .contact-box { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery li:first-child { grid-row: auto; grid-column: 1 / 3; }
  .gallery li:first-child img { height: 220px; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 5;
    padding: 8px 0 12px;
  }
  .header-open .nav-links { display: flex; }
  .hero-logo { width: 128px; height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg { transform: none !important; }
}

@media (prefers-contrast: more) {
  :root { --muted: #f3eadc; --gold: #ffe08a; --line: #e8c547; }
  body { background: #000; }
  .card, .contact-box, input, textarea { background: #000; border-color: #ffe08a; }
  .btn { background: #e11d38; }
}
