:root {
      --paper: #fbf7ef;
      --cream: #f0e6d7;
      --ink: #201713;
      --muted: #70645c;
      --line: rgba(32, 23, 19, 0.14);
      --wine: #651319;
      --gold: #b08a4c;
      --cellar: #2a1715;
      --night: #17110f;
      --white: #fffaf2;
    }
    * { box-sizing: border-box; }
    body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
    img { display: block; width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    .wrap { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
    .topbar { position: absolute; inset: 0 0 auto; z-index: 10; padding: 28px 0; color: var(--white); }
    .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
    .brand { display: grid; gap: 4px; min-width: max-content; }
    .brand strong { font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 26px; font-weight: 500; line-height: 1; }
    .brand span { color: rgba(255, 250, 242, 0.72); font-size: 13px; }
    .menu { display: flex; align-items: center; gap: 24px; color: rgba(255, 250, 242, 0.84); font-size: 14px; font-weight: 650; }
    .menu a { padding: 8px 0; border-bottom: 1px solid transparent; }
    .menu a:hover, .menu a.active { color: var(--white); border-color: var(--gold); }
    .mobile-menu { display: none; position: relative; }
    .mobile-menu input { position: absolute; opacity: 0; pointer-events: none; }
    .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 250, 242, 0.36); border-radius: 4px; background: rgba(255, 250, 242, 0.06); cursor: pointer; }
    .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--white); content: ""; }
    .menu-toggle span { position: relative; }
    .menu-toggle span::before { position: absolute; top: -7px; }
    .menu-toggle span::after { position: absolute; top: 7px; }
    .mobile-panel { position: absolute; top: 58px; right: 0; width: min(320px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 12px; border: 1px solid rgba(255, 250, 242, 0.16); border-radius: 8px; background: rgba(23, 17, 15, 0.96); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
    .mobile-panel a { padding: 13px 12px; border-radius: 4px; color: rgba(255, 250, 242, 0.84); font-weight: 700; }
    .mobile-menu input:checked ~ .mobile-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

    .hero { position: relative; min-height: 28svh; display: grid; align-items: end; padding: 104px 0 28px; color: var(--white); isolation: isolate; }
    .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(17, 11, 9, 0.9), rgba(17, 11, 9, 0.5), rgba(17, 11, 9, 0.2)), url("../images/archeus-club-degustacia-vina.webp") center / cover; }
    .hero-copy { max-width: 820px; }
    .eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; }
    h1, h2, h3 { margin: 0; font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 500; line-height: 1.06; letter-spacing: 0; }
    h1 { font-size: clamp(34px, 4vw, 52px); }
    h2 { color: var(--wine); font-size: clamp(30px, 4vw, 48px); }
    h3 { font-size: 30px; }
    .lead { margin: 16px 0 0; max-width: 620px; color: rgba(255, 250, 242, 0.82); font-size: 17px; line-height: 1.55; }
    .section { padding: clamp(70px, 8vw, 110px) 0; }
    .cream { background: var(--cream); }
    .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 11px 15px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 700; }
    .button.primary { color: var(--white); background: var(--wine); }
    .button.light { color: var(--wine); border-color: var(--line); background: transparent; }

    .event-heading { max-width: 760px; margin-bottom: 30px; }
    .event-feature { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr); gap: clamp(34px, 6vw, 80px); align-items: start; }
    .event-main { display: grid; gap: 20px; }
    .event-main img {
      width: 100%;
      height: clamp(260px, 34vw, 420px);
      object-fit: contain;
      object-position: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255, 250, 242, 0.42);
    }
    .event-description { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
    .event-body { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
    .event-side { display: grid; gap: 24px; }
    .event-details h3 { color: var(--wine); font-size: 30px; }
    .event-meta { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
    .event-meta li { display: grid; grid-template-columns: 105px 1fr; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
    .event-meta b { color: var(--ink); }
    .event-meta a { color: var(--wine); font-weight: 750; border-bottom: 1px solid rgba(101, 19, 25, 0.26); }
    .event-meta a:hover { border-color: var(--wine); }
    .event-wines { padding-top: 18px; border-top: 1px solid var(--line); }
    .event-wines h3 { color: var(--wine); font-size: clamp(22px, 2.2vw, 26px); }
    .wine-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 34px; margin-top: 12px; }
    .wine-links a,
    .wine-links span {
      display: block;
      width: 100%;
      min-width: 0;
      padding: 6px 0 8px;
      border: 0;
      border-bottom: 1px solid rgba(32, 23, 19, 0.14);
      border-radius: 0;
      background: transparent;
      color: rgba(32, 23, 19, 0.78);
      font-size: 15px;
      font-weight: 650;
      line-height: 1.3;
      overflow-wrap: anywhere;
      transition: border-color 160ms ease, color 160ms ease;
    }
    .wine-links span { color: var(--muted); }
    .wine-links a:hover,
    .wine-links a:focus-visible { border-color: rgba(124, 17, 28, 0.36); color: var(--wine); }

    .reservation {
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }
    .reservation h3 { color: var(--wine); font-size: 32px; }
    .reservation-status {
      margin: 14px 0 0;
      padding: 12px;
      border: 1px solid rgba(101, 19, 25, 0.18);
      border-radius: 4px;
      color: var(--wine);
      background: rgba(101, 19, 25, 0.06);
      line-height: 1.45;
    }
    .reservation-status.is-success {
      border-color: rgba(50, 105, 65, 0.24);
      color: #326941;
      background: rgba(50, 105, 65, 0.08);
    }
    .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
    input, textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
    textarea { grid-column: 1 / -1; min-height: 82px; resize: vertical; }
    .reservation .button { margin-top: 12px; width: 100%; }
    .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
    .captcha-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--cream); color: var(--muted); font-size: 14px; }
    .captcha-box label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; }
    .captcha-box input { width: 18px; height: 18px; padding: 0; accent-color: var(--wine); }
    .captcha-box span { color: var(--muted); font-size: 12px; }

    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
    .section-head p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.6; }
    .timeline { display: grid; gap: 16px; }
    .event-row {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr) auto;
      gap: 24px;
      align-items: center;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }
    .event-row .date {
      display: grid;
      gap: 14px;
      justify-items: start;
      color: var(--gold);
      font-weight: 800;
      text-transform: uppercase;
    }
    .event-row h3 a:hover { color: var(--wine); }
    .event-row p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
    .event-row .event-row__meta { color: var(--gold); font-size: 14px; font-weight: 800; text-transform: uppercase; }
    .event-row__image {
      aspect-ratio: 4 / 3;
      display: block;
      width: min(132px, 100%);
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
      background: var(--cream);
    }
    .event-row__image img {
      height: 100%;
      object-fit: cover;
      transition: transform 180ms ease;
    }
    .event-row__image:hover img { transform: scale(1.04); }
    .share { display: inline-flex; gap: 8px; }
    .share a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 14px; font-weight: 800; transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease; }
    .share a:hover { border-color: var(--gold); color: var(--wine); background: rgba(255, 250, 242, 0.68); transform: translateY(-1px); }
    .event-detail-share { align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
    .event-detail-share span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
    .event-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
      gap: 10px;
      margin-top: 18px;
      max-width: 560px;
    }
    .event-gallery button {
      aspect-ratio: 1;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--cream);
      cursor: pointer;
      overflow: hidden;
    }
    .event-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
    .event-gallery button:hover img { transform: scale(1.04); }
    .event-gallery--detail {
      grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
      max-width: none;
    }
    .empty-tastings { max-width: 760px; }
    .empty-tastings p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
    .filter-empty { color: var(--muted); line-height: 1.6; margin: 0; }
    .archeus-lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: grid;
      place-items: center;
      padding: 28px;
      background: rgba(17, 11, 9, 0.9);
    }
    .archeus-lightbox[hidden] { display: none; }
    .archeus-lightbox__image {
      max-width: min(1120px, 100%);
      max-height: calc(100svh - 120px);
      width: auto;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    }
    .archeus-lightbox button {
      position: absolute;
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 250, 242, 0.28);
      border-radius: 999px;
      color: var(--white);
      background: rgba(255, 250, 242, 0.08);
      cursor: pointer;
      font: inherit;
      font-size: 24px;
    }
    .archeus-lightbox__close { top: 22px; right: 22px; }
    .archeus-lightbox__prev { left: 22px; }
    .archeus-lightbox__next { right: 22px; }

    .footer { padding: 0; color: rgba(255, 250, 242, 0.68); background: var(--night); font-size: 14px; }
    .footer-main { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(230px, 1fr) minmax(260px, 1fr); gap: clamp(30px, 5vw, 70px); padding: 44px 0 30px; }
    .footer-brand { display: grid; align-content: start; gap: 10px; }
    .footer-brand strong { color: var(--white); font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 23px; font-weight: 500; }
    .footer-brand span, .footer-bottom { color: rgba(255, 250, 242, 0.56); }
    .footer-title { display: block; margin-bottom: 14px; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; }
    .footer-contact, .footer-links, .footer-nav { display: grid; align-content: start; }
    .footer-contact { gap: 10px; }
    .footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
    .footer-contact i { width: 16px; color: var(--gold); font-size: 13px; text-align: center; }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
    .footer a:hover { color: var(--white); }
    .footer-social { display: flex; gap: 8px; margin-top: 18px; }
    .footer-social a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 250, 242, 0.16); border-radius: 4px; color: rgba(255, 250, 242, 0.72); transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease; }
    .footer-social a:hover { color: var(--white); border-color: rgba(176, 138, 76, 0.48); background: rgba(255, 250, 242, 0.06); transform: translateY(-1px); }
    .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 17px 0 20px; border-top: 1px solid rgba(255, 250, 242, 0.1); font-size: 13px; }
    .footer-credit a { color: rgba(255, 250, 242, 0.78); font-weight: 750; }

    @media (max-width: 980px) {
      .menu { display: none; }
      .mobile-menu { display: block; }
      .event-feature, .section-head { grid-template-columns: 1fr; display: grid; }
      .footer-main { grid-template-columns: 1fr; }
      .event-row { grid-template-columns: 1fr; }
    }
    @media (max-width: 680px) {
      .wrap, .topbar-inner { width: min(calc(100% - 32px), 1200px); }
      .hero { min-height: 32svh; padding: 104px 0 28px; }
      .form-grid { grid-template-columns: 1fr; }
      textarea { grid-column: auto; }
      .event-meta li { grid-template-columns: 1fr; gap: 4px; }
      .event-main img { height: clamp(220px, 64vw, 320px); }
      .wine-links { grid-template-columns: 1fr; }
      .button { width: 100%; }
      .archeus-lightbox { padding: 16px; }
      .archeus-lightbox__image { max-height: calc(100svh - 150px); }
      .archeus-lightbox__prev { left: 12px; }
      .archeus-lightbox__next { right: 12px; }
    }

body.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .topbar { top: 46px; } }
