/* Offline replica of the Twenty Twenty-Four styling used by essenepublications.org.
   All fonts are vendored locally in ../fonts. No external requests. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: fallback;
  src: url("../fonts/InstrumentSans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: fallback;
  src: url("../fonts/InstrumentSans-Italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: fallback;
  src: url("../fonts/Jost-VariableFont_wght.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: fallback;
  src: url("../fonts/Jost-Italic-VariableFont_wght.woff2") format("woff2");
}

:root {
  --color-base: #e4efeb;
  --color-contrast: #000;
  --color-contrast-2: #353535;
  --color-link: #800080;
  --color-link-hover: #460046;
  --color-image-border: #b8c9c3;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 1.7rem + 1.5vw, 2.75rem); }

p { margin: 0 0 1.2rem; }

a { color: var(--color-link); }
a:hover, a:focus { color: var(--color-link-hover); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header: base background, title left, nav right. */
.site-header {
  background: var(--color-base);
  padding-top: 20px;
  padding-bottom: 20px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title { margin: 0; font-size: 1.1rem; }
.site-title a {
  color: var(--color-contrast);
  text-decoration: none;
}
.site-title a:hover { text-decoration: underline; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--color-contrast);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-contrast);
}

/* Content: single column, constrained like the original. */
#main { padding: 0 1.5rem 3rem; }

.entry-content {
  max-width: 620px;
  margin: 0 auto;
}

.home-content figure.content-photo { margin: 0; }
.home-content img {
  width: 600px;
  max-width: 100%;
  border: 2px solid var(--color-image-border);
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }
.accent { color: var(--color-link); }
.legacy-font { font-family: tahoma, arial, helvetica, sans-serif; }

.entry-content ul { padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }

.site-footer { padding: 3rem 1.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }

/* Responsive: hamburger overlay nav like the original block navigation. */
@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-base);
    border: 1px solid var(--color-image-border);
    padding: 3rem 2rem 2rem;
    z-index: 50;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }

  .alignright { float: none; display: block; margin: 0 0 1rem; }

  #main { padding: 0 1rem 2rem; }
}

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