/* The Merrill House — light flex redesign */
:root {
  --ink: #1a1108;
  --ink-soft: #36251e;
  --paper: #f7f3ec;
  --paper-muted: #ebe4d8;
  --wine: #84272d;
  --wine-bright: #c1272d;
  --gold: #c69c6d;
  --gold-soft: #c7b299;
  --muted: #716b60;
  --white: #fffffe;
  --overlay: rgba(27, 17, 0, 0.72);
  --font-display: "Kreon", "Palatino Linotype", Palatino, serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(
      ellipse 80% 50% at 10% 0%,
      rgba(198, 156, 109, 0.12),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 20%,
      rgba(132, 39, 45, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #faf7f2 0%, var(--paper) 40%, #f0ebe3 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--wine-bright);
}

.site-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ----- Header / Nav ----- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1.25rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  width: min(220px, 42vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--white);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

/* Inner pages: dark header bar */
body.is-inner .site-header {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #2a1a12 55%, #3d2418 100%);
  padding: 1rem 0;
}

body.is-inner .site-logo img {
  width: min(180px, 40vw);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(
      160deg,
      rgba(26, 17, 8, 0.55) 0%,
      rgba(27, 17, 0, 0.78) 45%,
      rgba(26, 17, 8, 0.92) 100%
    ),
    radial-gradient(
      ellipse 90% 70% at 70% 30%,
      rgba(132, 39, 45, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(198, 156, 109, 0.2),
      transparent 50%
    ),
    linear-gradient(145deg, #2a1810 0%, #1a1108 40%, #3a2218 100%);
  overflow: hidden;
  padding: 7rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(198, 156, 109, 0.03) 18px,
    rgba(198, 156, 109, 0.03) 19px
  );
  pointer-events: none;
  animation: grain 18s linear infinite;
}

@keyframes grain {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-40px);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hero__brand span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero__lede {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero__status::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 0.5rem;
  animation: rise 0.9s var(--ease) 0.28s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--wine-bright);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--wine);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero__contact-line {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__contact-line a {
  color: var(--gold-soft);
  text-decoration: none;
}

.hero__contact-line a:hover {
  color: var(--gold);
}

/* ----- Sections ----- */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section__head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
}

.section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
}

.section__intro {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}

.contact-layout__info {
  flex: 1 1 240px;
  max-width: 320px;
}

.contact-layout__form {
  flex: 2 1 380px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid rgba(54, 37, 30, 0.1);
  box-shadow: 0 18px 40px rgba(26, 17, 8, 0.06);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row .field {
  flex: 1 1 180px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(54, 37, 30, 0.2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 156, 109, 0.25);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.info-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-list li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.info-list a {
  text-decoration: none;
  color: var(--wine);
  font-weight: 600;
}

/* Event promo */
.promo {
  background: linear-gradient(120deg, var(--ink) 0%, #2c1a12 100%);
  color: var(--white);
  padding: 4rem 0;
}

.promo .section__eyebrow {
  color: var(--gold);
}

.promo .section__title {
  color: var(--white);
}

.promo .section__intro {
  color: rgba(255, 255, 255, 0.72);
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.promo__ticket img {
  max-width: 280px;
  border-radius: var(--radius);
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.badge-vendor {
  width: 216px;
  height: 216px;
  background: url("/assets/img/2016Vendor-BadgeWEB.png") top center no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-vendor img {
  width: 216px;
  height: 216px;
  border: none;
}

/* showLinks area */
.home-links {
  padding: 2.5rem 0 1rem;
}

/* Page chrome (inner) */
.page-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(54, 37, 30, 0.12);
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--ink);
  line-height: 1.2;
}

/* Blog list (r-template_blog) */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid rgba(54, 37, 30, 0.1);
  padding: 1.35rem 1.5rem;
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.blog-card:hover {
  box-shadow: 0 12px 28px rgba(26, 17, 8, 0.08);
  transform: translateY(-2px);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.blog-title a {
  text-decoration: none;
  color: var(--ink);
}

.blog-title a:hover {
  color: var(--wine);
}

.blog-preview {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-preview p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  flex: 1 1 260px;
}

.site-footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.site-footer__brand p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__social a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__copy {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.romlifooter {
  margin-top: 1.5rem;
}

/* Article container extras live in r-template_article.php */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 17, 8, 0.96);
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header__inner {
    position: relative;
  }

  .hero {
    min-height: 92vh;
    padding: 6rem 0 3.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
