/* Hazebound — site styles
   Colours and type match the original WordPress/Elementor theme. */

:root {
  --bg: #111110;          /* page background */
  --bg-band: #0d0d0c;     /* header + nav band */
  --line: #3a3a35;        /* dividers */
  --line-soft: #22221f;   /* band borders */
  --cream: #e8e4d9;       /* headings + body text */
  --muted: #7a7a6e;       /* small labels, footer */
  --muted-2: #878778;     /* captions, section headings */
  --sage: #7a8c6e;        /* active nav link */
  --sage-dim: #6c7764;    /* "Latest exploration" */
  --rose: #cc3366;        /* links, read more */

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Roboto Slab", Georgia, serif;

  --wide: 1100px;
  --text: 820px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: var(--rose); }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--cream); color: var(--bg); padding: 6px 12px; z-index: 50;
}
.skip-link:focus { left: 8px; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-band);
  text-align: center;
  padding-block: 18px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.site-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.site-title a { color: inherit; text-decoration: none; }
.site-rule {
  width: 133px; height: 0; margin: 10px auto 8px;
  border: 0; border-top: 1px solid var(--line);
}
.site-est {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--bg-band);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  max-width: 560px;
}
.site-nav a {
  display: block;
  padding: 8px 16px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--sage); }

main { padding-block: 14px 40px; }

/* ---------- Home: featured ---------- */
.featured { text-align: center; }
.eyebrow {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-dim);
}
.featured h2 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.featured .where {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.4px;
  color: var(--muted-2);
}
.featured .where a { color: var(--rose); }
.featured-img { max-width: 620px; margin: 0 auto; }
.featured-blurb {
  margin: 12px auto 0;
  max-width: 760px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted-2);
  line-height: 1.6;
}
.featured-blurb span { display: block; }

/* ---------- Section label ---------- */
.label {
  margin: 44px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Post cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 14px;
}
.card { min-width: 0; }
.card a { text-decoration: none; color: inherit; display: block; }
.card .thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  background: var(--bg-band);
}
.card .cat {
  margin: 8px 0 2px;
  font-size: 14px;
  color: var(--muted-2);
}
.card h3 {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: var(--cream);
}
.card a:hover h3 { color: var(--sage); }
.card .date {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Category / archive ---------- */
.page-title {
  margin: 10px 0 6px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.04em;
}
.page-intro {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted-2);
}
.archive { max-width: 820px; margin: 0 auto; display: grid; gap: 44px; }
.archive-item a { text-decoration: none; }
.archive-item h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--rose);
}
.archive-item a:hover h2 { color: var(--cream); }
.archive-item .meta {
  margin: 10px 0 0;
  font-family: var(--slab);
  font-size: 14px;
  color: var(--muted);
}
.archive-item .meta .cat { color: var(--sage); }
.empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding-block: 40px;
}

/* ---------- Single post ---------- */
.post-header { text-align: center; margin-bottom: 18px; }
.post-header h1 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.08em;
  text-wrap: balance;
}
.post-meta {
  margin: 0;
  font-family: var(--slab);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.post-meta span { display: block; }

.post figure { margin: 22px auto; max-width: 1000px; }
.post figure img { margin: 0 auto; }
.post figcaption {
  margin-top: 6px;
  text-align: center;
  font-family: var(--slab);
  font-style: italic;
  color: var(--muted);
}
.post h2 {
  margin: 34px 0 14px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--muted-2);
}
.post p {
  max-width: var(--text);
  margin: 0 auto 1em;
  line-height: 1.6;
}
.post p a { overflow-wrap: anywhere; }
.post .note {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

.post-nav {
  max-width: var(--text);
  margin: 48px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: 14px;
}
.post-nav a { color: var(--muted-2); text-decoration: none; }
.post-nav a:hover { color: var(--sage); }
.post-nav .next { text-align: right; margin-left: auto; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 10px auto 0;
}
.about h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
}
.about p { margin: 0 0 1em; line-height: 1.6; }
.about blockquote {
  margin: 0 0 1em;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted-2);
}
.about ul { margin: 0; padding-left: 22px; line-height: 1.7; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery button {
  padding: 0; border: 0; background: var(--bg-band);
  cursor: zoom-in; display: block; width: 100%;
}
.post .zoom {
  display: block; margin: 0 auto; padding: 0; border: 0;
  background: none; cursor: zoom-in; max-width: 100%;
}
.post .zoom img { transition: opacity .2s; }
.post .zoom:hover img { opacity: .9; }
.gallery img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  transition: opacity .2s;
}
.gallery button:hover img { opacity: .8; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 8, 7, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: max(48px, env(safe-area-inset-top, 0px)) max(56px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(56px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lightbox img { min-height: 0; max-height: 100%; max-width: 100%; object-fit: contain; flex: 0 1 auto; }
.lb-caption {
  margin: 0; text-align: center;
  font-family: var(--slab); font-style: italic; color: var(--muted-2);
}
.lb-caption[hidden] { display: none; }
.lb-bar {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .06em; color: var(--muted);
}
.lb-full {
  color: var(--cream); text-decoration: none;
  border: 1px solid var(--line); padding: 6px 12px;
}
.lb-full:hover { border-color: var(--sage); color: var(--sage); }
.lb-count { font-variant-numeric: tabular-nums; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--cream);
  font-family: var(--serif); font-size: 32px; cursor: pointer; padding: 10px 14px;
  opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: max(8px, env(safe-area-inset-top, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(4px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(4px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox button[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 10px 30px;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  font-family: var(--slab);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.insta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; background: #2a2a27; color: var(--cream);
}
.insta:hover { background: var(--sage); color: var(--bg); }
.insta svg { width: 13px; height: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about img { max-width: 360px; }
  .post h2 { font-size: 26px; }
  .featured-blurb span { display: inline; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .site-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 460px) {
  .lightbox {
    padding-left: max(36px, env(safe-area-inset-left, 0px));
    padding-right: max(36px, env(safe-area-inset-right, 0px));
  }
  .lightbox button { font-size: 26px; padding: 8px; }
}
