/* Spirit Land Diaries — static reconstruction of the Aug 2024 site (Lyrical theme). */
:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #252525;
  --heading: #353535;
  --muted: #686868;
  --accent: #fc9e4f;
  --accent-hover: rgba(252, 158, 79, 0.85);
  --header-bg: #141414;
  --footer-bg: #141414;
  --copyright-bg: #2d2d2d;
  --white: #ffffff;
  --content-width: 1100px;
  --header-overlay: rgba(20, 20, 20, 0.5);
}

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

html { font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

/* ----- Header ----- */
.site-header {
  position: relative;
  background-color: var(--header-bg);
  background-image: url("../images/header.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--white);
  letter-spacing: -0.01em;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--white);
}
.site-title a,
.site-title a:visited { color: var(--white); }
.site-title a:hover { color: rgba(255, 255, 255, 0.8); }

.site-description {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--white);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.4em 0.85em;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
}
.site-nav a:visited { color: var(--white); }
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Homepage hero text sits in the header, right half on desktop */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 20px 3.5rem;
  display: flex;
  justify-content: flex-end;
}
.hero-inner {
  width: 50%;
  color: var(--white);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
}
.hero-inner p { margin: 0 0 1.25rem; }
.page-hero {
  /* inner pages: shorter header, no intro copy, but enough photo to read as the banner */
  min-height: 120px;
  padding: 1.25rem 20px 5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white) !important;
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 1rem 2rem;
  border-radius: 3px;
}
.button:hover,
.button:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white) !important;
}

/* ----- Main ----- */
.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 16px 3rem;
}

.card {
  background: var(--card);
  padding: 2rem 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.about-copy h1,
.page-heading {
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--heading);
  text-align: center;
  margin: 0 0 1.25rem;
}

.about-copy p {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.about-copy p:last-child { margin-bottom: 0; }

.about-note {
  font-weight: 700;
  font-style: italic;
}

.cover-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cover-column img {
  width: 100%;
  max-width: 420px;
  height: auto;
  /* Force a paintable replaced box in headless Chrome */
  background: #eee;
}

.cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(37, 37, 37, 0.1);
}

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid a {
  display: block;
  background: #eee;
  overflow: hidden;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-grid a:hover img,
.gallery-grid a:focus img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.lightbox-close:hover { color: var(--accent); }
body.lightbox-open { overflow: hidden; }

/* ----- Contact ----- */
.contact-card {
  text-align: center;
  padding: 3rem 1.5rem;
}
.contact-card p {
  font-size: 1.15rem;
  margin: 0;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 2.25rem 20px;
}
.site-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.footer-contact h2 {
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.85rem;
}
.footer-contact h2 a,
.footer-contact h2 a:visited,
.footer-contact h2 a:hover {
  color: var(--white);
}
.footer-contact .label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.footer-contact a,
.footer-contact a:visited { color: var(--accent); }
.footer-contact a:hover { color: var(--accent-hover); }

.site-copyright {
  background: var(--copyright-bg);
  color: var(--muted);
  text-align: center;
  padding: 1.15rem 20px;
  font-size: 0.95rem;
}

/* ----- Responsive ----- */
@media (min-width: 40.063em) {
  .site-title { font-size: 1.75rem; }
  .site-header-inner { padding: 40px 24px 0; }
  .card { padding: 2.5rem 3.5rem; }
  .hero { padding: 3.5rem 24px 4.5rem; }
  .page-hero { min-height: 160px; padding-bottom: 6rem; }
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .cover-column { max-width: 360px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { width: 100%; }
  .hero { padding-top: 1.5rem; padding-bottom: 2.25rem; }
}

@media (max-width: 520px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0.3em 0.7em 0.3em 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery-grid img { height: 200px; }
  .card { padding: 1.5rem 1.15rem; }
  .site-title { font-size: 1.35rem; }
  .hero-inner { font-size: 0.98rem; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: auto; max-height: none; object-fit: contain; }
}
