/* ========================================================================== 
   CABBANIS STATIC WEBSITE STYLES
   --------------------------------------------------------------------------
   How to edit this file:
   1. Brand colors, fonts, spacing, and layout widths live in :root.
   2. Global defaults are near the top.
   3. Each website section has its own commented block.
   4. Reusable components, such as buttons and cards, are grouped together.

   This CSS is plain browser CSS. It does not require Tailwind, Sass, PostCSS,
   Vite, npm, or any compilation step.
   ========================================================================== */

/* No external font files are used, so the site remains fully self-contained. */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------
   Change these variables to quickly rebrand the site.
   Example: change --wine-700 to update the main Cabbanis red.
   -------------------------------------------------------------------------- */
:root {
  --wine-50: #fbf2f3;
  --wine-100: #f5e1e4;
  --wine-600: #8f3848;
  --wine-700: #722f37;
  --wine-800: #5b262d;

  --paper: #fffaf7;
  --cream: #faf7f4;
  --ink: #25191b;
  --ash: #695b5d;
  --clay: #b7a7a4;
  --white: #ffffff;

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 72rem;
  --section-padding: 5rem;
  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --shadow-soft: 0 14px 35px rgba(114, 47, 55, 0.12);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET + BASE STYLES
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--wine-700);
  color: var(--paper);
}

/* A visible keyboard focus ring improves accessibility. */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wine-700) 55%, transparent);
  outline-offset: 4px;
}

/* Inline SVG symbol sprite at the bottom of index.html. */
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. REUSABLE LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 3rem, var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
  scroll-margin-top: 4rem;
}

.section--hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.section--cream {
  border-top: 1px solid color-mix(in srgb, var(--wine-700) 10%, transparent);
  background: color-mix(in srgb, var(--cream) 60%, transparent);
}

.section--white {
  border-block: 1px solid color-mix(in srgb, var(--wine-700) 10%, transparent);
  background: color-mix(in srgb, var(--white) 45%, transparent);
}


.section--wine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--wine-800) 55%, transparent);
  background:
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--wine-600) 54%, transparent), transparent 34%),
    linear-gradient(135deg, var(--wine-700), var(--wine-800));
  color: var(--paper);
}

.section--wine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 250, 247, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(37, 25, 27, 0.08), rgba(37, 25, 27, 0.22));
}

.section--wine .eyebrow,
.section--wine .section-heading__copy {
  color: rgba(255, 250, 247, 0.78);
}

.section--wine .section-heading h2 {
  color: var(--paper);
}

.section-heading {
  max-width: 48rem;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.18;
}

.section-heading__copy {
  max-width: 24rem;
  margin: 0;
  color: var(--ash);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--wine-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-number {
  margin: 0;
  color: var(--wine-700);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   4. BUTTONS, PILLS, LINKS, AND MOTION
   -------------------------------------------------------------------------- */
.button,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.pill:hover,
.recent-card:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--wine-700);
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.button--primary:hover {
  background: var(--wine-800);
}

.button--outline {
  border: 1px solid color-mix(in srgb, var(--wine-700) 20%, transparent);
  background: var(--paper);
  color: var(--wine-700);
  padding: 0.72rem 1.5rem;
}

.button--outline:hover {
  border-color: var(--wine-700);
  background: var(--wine-50);
}

.button--light,
.pill--light {
  background: var(--paper);
  color: var(--wine-700);
}

.button--light {
  padding: 0.9rem 1.75rem;
}

.button--light:hover,
.pill--light:hover {
  background: var(--wine-50);
}

.pill {
  padding: 0.55rem 1rem;
}

.pill--outline-light {
  border: 1px solid rgba(255, 250, 247, 0.3);
  color: var(--paper);
}

.pill--outline-light:hover {
  background: var(--paper);
  color: var(--wine-700);
}

.text-link {
  color: var(--wine-700);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--wine-700) 30%, transparent);
  text-underline-offset: 0.28rem;
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: var(--wine-700);
}

.row-arrow {
  transition: transform 0.25s ease;
}

a:hover .row-arrow,
button:hover .row-arrow {
  transform: translateX(0.25rem);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-up-delay-1 {
  animation-delay: 0.1s;
}

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  width: min(100% - 3rem, var(--container-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--wine-700);
}

.brand__mark {
  width: 2rem;
  height: 2.05rem;
  flex-shrink: 0; 
}

.brand__name,
.footer-brand span {
  font-family: var(--font-serif);
  font-weight: 500;
}

.brand__name {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.header-actions,
.primary-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 1.5rem;
}

.primary-nav {
  gap: 1.5rem;
  color: var(--ash);
  font-size: 0.9rem;
}

.primary-nav a,
.footer-nav a {
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--wine-700);
}

.language-switcher {
  display: flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--wine-700) 20%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--wine-700) 5%, transparent);
  padding: 0.15rem;
}

.language-switcher button {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ash);
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher button.is-active {
  background: var(--wine-700);
  color: var(--paper);
  box-shadow: 0 3px 10px rgba(114, 47, 55, 0.18);
}

/* --------------------------------------------------------------------------
   6. CHANNEL RIBBON
   -------------------------------------------------------------------------- */
.channel-ribbon {
  border-block: 1px solid color-mix(in srgb, var(--wine-800) 10%, transparent);
  background: var(--wine-700);
  color: var(--paper);
}

.channel-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.channel-ribbon__label {
  margin: 0;
  color: rgba(255, 250, 247, 0.72);
}

.channel-ribbon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero-sigil {
  position: absolute;
  top: 5rem;
  left: 50%;
  z-index: -1;
  width: min(72vw, 44rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--wine-700) 18%, transparent);
  border-radius: 50%;
  opacity: 0.7;
  animation: heroSigilPulse 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heroSigilPulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.28;
  }

  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
}

.hero-sigil::before,
.hero-sigil::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.hero-sigil::before {
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--wine-700) 12%, transparent);
}

.hero-sigil::after {
  inset: 27%;
  border: 1px solid color-mix(in srgb, var(--clay) 22%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--wine-100) 72%, transparent), transparent 62%);
}

.hero__wordmark {
  margin: 0;
  color: var(--wine-700);
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.82;
}
.hero__wordmark--image {
  width: min(100%, 15rem);
  height: auto;
  object-fit: contain;
  filter: invert(80%);
}
.hero__title {
  max-width: 48rem;
  margin: 2rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero__dynamic-words {
  color: var(--wine-700);
  font-style: italic;
  display: inline-flex;
  gap: 0.25em;
  white-space: nowrap;
}

.hero__subtitle {
  max-width: 42rem;
  margin: 1.75rem 0 0;
  color: var(--ash);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
}

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

.word-swap {
  display: inline-block;
  animation: word-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#cycle-first {
  min-width: 4ch;
}

#cycle-second {
  min-width: 14ch;
}

.word-swap.leaving {
  animation: word-out 0.35s ease-in both;
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.55em);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes word-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-0.55em);
    filter: blur(5px);
  }
}

/* --------------------------------------------------------------------------
   8. RECENT EXPLORATIONS
   -------------------------------------------------------------------------- */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.recent-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--wine-700) 15%, transparent);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 25, 27, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.recent-card:hover {
  border-color: color-mix(in srgb, var(--wine-700) 50%, transparent);
  background: var(--white);
}

.recent-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.recent-card__tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-card__tag--wine {
  background: var(--wine-700);
  color: var(--paper);
}

.recent-card__tag--ink {
  background: var(--ink);
  color: var(--paper);
}

.recent-card__tag--ash {
  background: var(--ash);
  color: var(--paper);
}

.recent-card__language {
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-card h3 {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.recent-card:hover h3 {
  color: var(--wine-700);
}

.recent-card__summary {
  margin: 0.75rem 0 0;
  color: var(--ash);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

.recent-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--wine-700) 10%, transparent);
  padding-top: 1rem;
  color: var(--wine-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.recent-card__explore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}


.section--wine .recent-card {
  border-color: rgba(255, 250, 247, 0.2);
  background: rgba(255, 250, 247, 0.96);
  box-shadow: 0 20px 45px rgba(37, 25, 27, 0.2);
}

.section--wine .recent-card:hover {
  border-color: rgba(255, 250, 247, 0.42);
  background: var(--white);
}

.section--wine .recent-card__footer {
  border-top-color: color-mix(in srgb, var(--wine-700) 14%, transparent);
}

.section--wine .button--outline {
  border-color: rgba(255, 250, 247, 0.42);
  background: transparent;
  color: var(--paper);
}

.section--wine .button--outline:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--wine-700);
}

/* --------------------------------------------------------------------------
   9. ABOUT
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  border-top: 1px solid color-mix(in srgb, var(--wine-700) 20%, transparent);
  padding-top: 1.25rem;
}

.about-card h3 {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.about-card p:last-child {
  margin: 0.75rem 0 0;
  color: var(--ash);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. CHANNELS
   -------------------------------------------------------------------------- */
.channel-list {
  margin-top: 3rem;
  border-top: 1px solid color-mix(in srgb, var(--wine-700) 20%, transparent);
}

.channel-row {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wine-700) 20%, transparent);
  padding-block: 1.75rem;
}

.channel-row__content {
  display: grid;
  gap: 0.25rem;
}

.channel-row__title {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.channel-row__description {
  color: var(--ash);
  font-size: 0.9rem;
  font-weight: 300;
}

.channel-row__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wine-700);
  font-size: 0.9rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. CLOSING CTA
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--wine-700);
  color: var(--paper);
  text-align: center;
}

.cta-section__inner {
  display: grid;
  justify-items: center;
}

.cta-section__mark {
  width: 2.25rem;
  height: 2.25rem;
}

.cta-section h2 {
  max-width: 42rem;
  margin-top: 1.75rem;
}

.cta-section p {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 250, 247, 0.75);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.cta-section .button {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--wine-700) 10%, transparent);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
  color: var(--ash);
  font-size: 0.9rem;
}

.footer-brand__mark {
  width: 1.25rem;
  height: 1.8rem;
  flex-shrink: 0;

}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  :root {
    --section-padding: 4rem;
  }

  .container,
  .site-header {
    width: min(100% - 2rem, var(--container-width));
  }

  .primary-nav {
    display: none;
  }

  .channel-ribbon__inner,
  .section-heading--split,
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

  .recent-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .channel-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .site-footer__inner {
    align-items: center;
  }
}

/* Respect users who prefer less animation. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}