/* File: /css/site.css
   Purpose: TheBareHour's stylesheet: the fonts (served from /font/, OFL licences beside them) and the one page's look.
   Version: 1.0.0 (2026-10-21: moved out of index.html's <style> block unchanged; the Google Fonts link
            replaced by the @font-face rules below; site-layout, Steve) */

/* Cormorant Garamond (variable: one file per style covers 300 and 400). latin subset. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/font/cormorant-garamond/cormorant-garamond-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/font/cormorant-garamond/cormorant-garamond-italic.woff2') format('woff2');
}
/* Italianno. latin subset. */
@font-face {
  font-family: 'Italianno';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/font/italianno/italianno-regular.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background-color: #0a0a0a;
  color: #d4a574;
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4vh 4vw;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  animation: fadeIn 2.8s ease-in;
}

/* The frame */
.frame {
  position: relative;
  padding: 24px;
  background: linear-gradient(
    145deg,
    #2a1f15 0%,
    #1a1208 100%
  );
  border: 2px solid #8a6a3d;
  box-shadow:
    0 0 0 1px rgba(180, 140, 90, 0.4),
    0 0 80px rgba(180, 140, 90, 0.15),
    0 0 160px rgba(180, 140, 90, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(180, 140, 90, 0.55);
  pointer-events: none;
  border-radius: 1px;
}

.frame::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero-image {
  max-height: 65vh;
  max-width: 85vw;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  margin-top: 2vh;
  font-family: 'Italianno', cursive;
  font-size: clamp(3.4rem, 7.5vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #d4a574;
  text-align: center;
  line-height: 1;
}

.byline {
  margin-top: 0.5vh;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  word-spacing: 0.3em;
  color: #c4a378;
  font-style: italic;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .frame {
    padding: 18px;
  }
  .frame::before {
    top: 9px;
    left: 9px;
    right: 9px;
    bottom: 9px;
  }
  .frame::after {
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .hero-image {
    max-height: 55vh;
  }
}

@media (max-width: 480px) {
  body {
    padding: 3vh 5vw;
  }
  .frame {
    padding: 14px;
    border-width: 1px;
  }
  .frame::before {
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
  }
  .frame::after {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .hero-image {
    max-height: 50vh;
    max-width: 100%;
  }
  .wordmark {
    margin-top: 1.5vh;
  }
  .byline {
    margin-top: 0;
    letter-spacing: 0.15em;
    word-spacing: 0.2em;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body {
    padding: 3vh 4vw;
  }
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 5vw;
  }
  .frame {
    padding: 14px;
  }
  .frame::before {
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
  }
  .frame::after {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .hero-image {
    max-height: 80vh;
    max-width: 45vw;
  }
  .text-block {
    align-items: flex-start;
  }
  .wordmark {
    margin-top: 0;
    font-size: clamp(2.6rem, 6vw, 4rem);
    text-align: left;
  }
  .byline {
    margin-top: 0;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}
