@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Source+Sans+3:wght@400;600&display=swap");

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--hha-color-bg);
  color: var(--hha-color-fg);
  font-family: var(--hha-font-body);
}

body {
  overflow-x: hidden;
}

body.home,
body.front-page {
  overflow: hidden;
}

.hha-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--hha-color-bg);
}

.hha-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--hha-color-bg);
}

.hha-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.hha-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vh, 3rem) 1.25rem clamp(2rem, 6vh, 3.5rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}

.hha-hero__contact {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hha-hero__contact-label {
  font-family: var(--hha-font-display);
  font-size: var(--hha-contact-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hha-color-fg);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hha-hero__contact-label:hover,
.hha-hero__contact-label:focus-visible {
  color: var(--hha-color-accent);
  outline: 2px solid var(--hha-color-accent);
  outline-offset: 4px;
}

.hha-hero__contact-link {
  font-family: var(--hha-font-body);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--hha-color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hha-hero__contact-link:hover,
.hha-hero__contact-link:focus-visible {
  color: var(--hha-color-fg);
  outline: 2px solid var(--hha-color-accent);
  outline-offset: 4px;
}

/*
 * Mobile: show the full horizontal frame (object-fit contain),
 * not a cropped full-bleed cover.
 */
@media (max-width: 900px), (orientation: portrait) {
  body.home,
  body.front-page {
    overflow: auto;
  }

  .hha-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 0 0 max(1.25rem, env(safe-area-inset-bottom));
  }

  .hha-hero__video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: min(56.25vw, calc(100dvh - 7.5rem));
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center center;
    flex: 0 0 auto;
  }

  .hha-hero__scrim {
    display: none;
  }

  .hha-hero__content {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 1.25rem 1rem 0.5rem;
    background: var(--hha-color-bg);
  }

  .hha-hero__contact-label,
  .hha-hero__contact-link {
    text-shadow: none;
  }
}

/* Interior pages */
.hha-page {
  min-height: 100vh;
  padding: 3rem 1.25rem;
}

.hha-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hha-article__title {
  font-family: var(--hha-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

.hha-article__content {
  line-height: 1.6;
}

/* 404 */
.hha-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 163, 90, 0.12), transparent 55%),
    var(--hha-color-bg);
  text-align: center;
}

.hha-404__inner {
  max-width: 28rem;
}

.hha-404__logo {
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.hha-404__code {
  margin: 0;
  font-family: var(--hha-font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hha-color-accent);
  line-height: 1;
}

.hha-404__title {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--hha-font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
}

.hha-404__text {
  margin: 0 0 2rem;
  color: var(--hha-color-muted);
  line-height: 1.55;
}

.hha-404__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hha-404__home {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--hha-color-bg);
  background: var(--hha-color-accent);
  border: 1px solid var(--hha-color-accent);
}

.hha-404__home:hover,
.hha-404__home:focus-visible {
  background: transparent;
  color: var(--hha-color-accent);
  outline: 2px solid var(--hha-color-accent);
  outline-offset: 3px;
}

.hha-404__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hha-404__contact-label {
  font-family: var(--hha-font-display);
  font-size: var(--hha-contact-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hha-color-fg);
  text-decoration: none;
}

.hha-404__contact-label:hover,
.hha-404__contact-label:focus-visible {
  color: var(--hha-color-accent);
}

.hha-404__contact-link {
  font-weight: 600;
  color: var(--hha-color-accent);
  text-underline-offset: 0.2em;
}
