/*
Color Palette Specifications
Color         HEX Code  Recommended Use Case
Rich Black    #1a1a1a   Website background, footer, and deep text sections
Crimson Red   #8f1d2c   Call to action (CTA) buttons, hover effects, and active navigation links
Opulent Gold  #cca43b   Headers, logo accents, price tags, and decorative icons
Off-White     #f4f4f4   Primary reading text and neutral backgrounds to maintain legibility
Charcoal Gray #333333   Secondary text, borders, and subtle divider lines
*/


:root {
  --crimson: #8f1d2c;
  --gold: #cca43b;
  --off-white: #f4f4f4;
  --light-gray: #cccccc;
  --middle-gray: #666666;
  --charcoal: #333333;
  --rich-black: #1a1a1a;

  color-scheme: light dark;
  --bg-color: light-dark(#ffffff, #121212);
  --bg-color-reverse: light-dark(#121212, #ffffff);
  --text-color: light-dark(var(--rich-black), var(--off-white));
  --text-color-reverse: light-dark(var(--off-white), var(--rich-black));
}

html {
  line-height: 1.35;
  margin: 2rem;
}

body {
  font-family: Charis, serif;
  font-size: 1.2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: underline;
  background-color: transparent;
  cursor: pointer;
}

a:hover,
a:focus {
  color: inherit;
}

/* Accessibility: keep a visible focus ring for keyboard users only */
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--text-color);
  margin: 20px 0;
}

b,
strong {
  font-weight: 600;
}

/* 
Reference: https://www.countryparson.org/muddlings/2019/2/4/liturgical-typeface-on-a-shoestring
This file is from the Charis project (https://software.sil.org/charis/).
Copyright (c) 1997-2025 SIL Global (https://www.sil.org/) with Reserved
Font Names "Charis" and "SIL". This Font Software is licensed under the SIL
Open Font License, Version 1.1 (https://openfontlicense.org).
*/

/* Charis */
@font-face {
  font-family: Charis;
  font-weight: 400;
  font-style: normal;
  src: url(/font/Charis7/Charis-Regular.woff2) format('woff2');
}

@font-face {
  font-family: Charis;
  font-weight: 500;
  src: url(/font/Charis7/Charis-Medium.woff2) format('woff2');
}

@font-face {
  font-family: Charis;
  font-weight: 600;
  src: url(/font/Charis7/Charis-SemiBold.woff2) format('woff2');
}

@font-face {
  font-family: Charis;
  font-weight: 700;
  src: url(/font/Charis7/Charis-Bold.woff2) format('woff2');
}

/* Cormorant Garamond */
@font-face {
  font-family: CormorantGaramond;
  font-style: normal;
  font-weight: 700;
  src: url(/font/CormorantGaramond/CormorantGaramond-700.woff2) format('woff2');
}

.title {
  font-family: CormorantGaramond, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  padding: 0 0.1rem;
}

.heading {
  font-size: 1.15rem;
  font-weight: 600;
}

.btn {
  /* Layout & Sizing */
  display: inline-block;
  padding: 0.5rem;
  margin: 0.2rem 0.5rem;

  /* Typography */
  text-decoration: none;
  /* font-family: sans-serif; */
  font-weight: 500;
  /* font-size: 16px; */

  /* Colors & Borders */
  background-color: light-dark(var(--charcoal), var(--light-gray));
  color: var(--text-color-reverse);
  border-radius: 3px;

  /* Animation */
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

/* Colors */
.color-gold {
  color: var(--gold);

}

.color-black {
  color: light-dark(var(--charcoal), var(--light-gray));
}

.bg-gold {
  background-color: var(--gold);
}

.bg-red {
  background-color: var(--crimson);
}

/* Hover State */
.btn:hover,
.btn-hover {
  background-color: light-dark(var(--light-gray), var(--middle-gray));
  color: var(--text-color);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Clicked / Active State */
.btn:active {
  transform: scale(0.98);
}

/* remove bold styling from heading
h1 {
  font-weight: normal;
} */

/* Desktop default layout (Side-by-Side) */
.container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.box1 {
  flex: 1;
  text-align: left;
  flex-basis: 15%;
}

.box2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 68%;
}

.box3 {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-basis: 15%;
}

.box_btns {
  text-align: center;
}

/* Mobile responsive layout (Stacked) */
@media (max-width: 768px) {
  html {
    margin: 0.5rem;
  }

  .container {
    flex-direction: column;
    gap: 0;
  }

  .box1 {
    text-align: center;
  }

  .box2,
  .box3 {
    justify-content: center;
  }

}

/* Container for the tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip design and positioning */
.tooltip::after {
  content: attr(data-tooltip);
  /* Grabs text from the HTML attribute */
  position: absolute;
  bottom: calc(-100% - 0.5rem);
  /* Places tooltip at bottom */
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--text-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 0.2rem;
  font-size: 0.8rem;
  white-space: nowrap;

  /* Hides the tooltip by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
  z-index: 10;
}

/* Reveal tooltip on hover and keyboard focus */
.tooltip:hover::after,
.tooltip:focus::after {
  opacity: 1;
  visibility: visible;
}
