/* Shared base styles — fonts, reset, and common components (buttons, footer,
   social icons) used across every page. Page-specific layout lives in each
   page's own stylesheet (e.g. style.css for the splash page, about/about.css). */

:root {
  color-scheme: dark;
  --ink: #f5f3ee;
  --ink-dim: #d8d2c4;
  --bg: #0a0e12;
  --ink-contrast: #14181c;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.divider {
  width: 44px;
  height: 1px;
  background: rgba(245, 243, 238, 0.55);
  margin: 2.4rem 0 2rem;
}

.cta {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid rgba(245, 243, 238, 0.75);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  background-color: var(--ink);
  color: var(--ink-contrast);
}

.footer {
  position: fixed;
  bottom: 2.2rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.75);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  padding: 0 4vw;
  z-index: 2;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 243, 238, 0.35);
}

.footer a:hover {
  border-bottom-color: rgba(245, 243, 238, 0.85);
}

.dot {
  opacity: 0.6;
}

.social-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(245, 243, 238, 0.85);
  border-bottom: none !important;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.social svg {
  width: 15px;
  height: 15px;
}

.social:hover,
.social:focus-visible {
  color: var(--ink-contrast);
  background-color: var(--ink);
}

/* Small wordmark linking back to the homepage. Used on every page except
   the splash itself. Sits in normal document flow (not fixed) — this site
   has long-scrolling inner pages, and a fixed header would eventually
   overlap scrolled content on any of them. */
.site-brand {
  display: inline-block;
  margin: 2rem 0 0 6vw;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.site-brand:hover,
.site-brand:focus-visible {
  opacity: 1;
}

/* Long-scrolling inner pages (about, gallery, ...) — as opposed to the
   single-viewport splash — need the footer in normal document flow rather
   than pinned to the viewport. Opt in with body class "inner-page". */
.inner-page .footer {
  position: static;
  margin-top: 4rem;
  padding: 2rem 4vw 2.5rem;
}

/* Site nav — fixed header bar, floats over whatever scrolls beneath it
   (hero photo, gallery grid, blog copy). Frosted/near-opaque rather than a
   gradient that fades to fully transparent at the bottom of the bar — a
   fade-to-nothing background let scrolled text (e.g. a blog post's h1)
   show through half-hidden right under the nav links, which read as
   garbled overlapping text rather than a normal "scrolled past" state.
   A solid backing fully occludes anything scrolling underneath instead. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 4vw;
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.92;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.site-nav__brand-icon {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-nav__brand:hover,
.site-nav__brand:focus-visible {
  opacity: 1;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav__links a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  opacity: 1;
}

.site-nav__cta {
  border: 1px solid rgba(245, 243, 238, 0.6);
  padding: 0.5rem 1.15rem;
  border-radius: 2px;
  opacity: 1 !important;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background-color: var(--ink);
  color: var(--ink-contrast);
}

/* Hamburger toggle — hidden and inert on desktop (display:none removes it
   from the flex row entirely, so .site-nav's space-between still applies
   cleanly to just brand + links). Below the breakpoint it swaps places
   with the links: the links leave the flex row (position:absolute) and
   become a dropdown panel instead, so the toggle is what fills that slot. */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav.nav-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-nav.nav-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.nav-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 700px) {
  .site-nav {
    padding: 1.1rem 5vw;
  }

  .site-nav__brand {
    font-size: 0.85rem;
    gap: 0.55rem;
  }

  .site-nav__brand-icon {
    height: 34px;
  }

  .site-nav__toggle {
    display: flex;
  }

  /* Dropdown panel — not "position: fixed" here, .site-nav (its
     positioned ancestor) already is, so this just needs to hang off the
     bottom of the bar. max-height (not display) is what's animated, so
     the open/close has a transition instead of an instant snap. */
  .site-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 14, 18, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: max-height 0.3s ease;
  }

  .site-nav.nav-open .site-nav__links {
    max-height: 320px;
  }

  .site-nav__links a {
    padding: 1.1rem 6vw;
    border-top: 1px solid rgba(245, 243, 238, 0.1);
    font-size: 0.78rem;
  }

  .site-nav__cta {
    border: none !important;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    gap: 0.3rem;
    bottom: 1.4rem;
  }
  .dot {
    display: none;
  }
  .site-brand {
    margin: 1.4rem 0 0 7vw;
    font-size: 0.85rem;
  }
}
