/* Mount Narem — Monte Narem */

:root {
  --brand:      #14342b;
  --brand-deep: #0d211c;
  --brand-soft: #f0f4f1;
  --accent:     #b06a2c;
  --accent-lt:  #d99552;

  --ink:        #17201d;
  --ink-soft:   #4d5a55;
  --ink-faint:  #7c8a84;
  --paper:      #ffffff;
  --paper-alt:  #f7f6f2;
  --rule:       #dfe3df;

  --display: "Newsreader", Georgia, serif;
  --body:    "Figtree", system-ui, sans-serif;
  --ui:      "Figtree", system-ui, sans-serif;

  --shell: 1180px;

}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.mainnav a:focus-visible,
.topbar a:focus-visible,
.sitefoot a:focus-visible,
.panel--brand a:focus-visible,
.gate__choices a:focus-visible {
  outline-color: var(--accent-lt);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  font-family: var(--ui);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { left: 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.5rem; }

/* ============ masthead ============ */

.topbar {
  background: var(--brand-deep);
  color: #dfe9e3;
  font-family: var(--ui);
  font-size: 0.8rem;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 2.5rem;
  flex-wrap: wrap;
}

.topbar a { color: #dfe9e3; text-decoration: none; opacity: 0.85; }
.topbar a:hover { opacity: 1; }
.topbar__links { display: flex; gap: 1.35rem; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.masthead h1 { margin: 0; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark svg { width: 34px; height: 34px; flex: none; color: var(--brand); }

/* The name's size lives on .wordmark so the optical nudge below can be
   expressed in em and scale with it. */
.wordmark { font-size: 1.5rem; }

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  /* "Mount Narem" has no descenders, so its line box is bottom-heavy with
     empty space and the ink reads high. Drop the text by half the difference
     between the line box centre and the cap-band centre. Measured on device;
     do not convert to px. */
  position: relative;
  top: 0.11em;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 1em;
  letter-spacing: -0.015em;
}

/* ============ navigation ============ */

.mainnav { background: var(--brand); }

.mainnav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.mainnav a {
  display: block;
  padding: 0.85rem 1.15rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: #eaf2ee;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.mainnav a:hover { background: rgba(255,255,255,0.09); }
.mainnav a[aria-current="page"] {
  background: rgba(255,255,255,0.09);
  border-bottom-color: var(--accent-lt);
}


/* ============ page frame ============ */

.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 20rem;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}

.page {
  max-width: 46rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

@media (max-width: 62rem) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
}

.prose { max-width: 40rem; }

/* ============ typography ============ */

h1, h2, h3 { font-family: var(--display); font-weight: 400; }

h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
h2 { font-size: 1.7rem; line-height: 1.22; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.22rem; line-height: 1.3; margin: 2rem 0 0.6rem; }

p { margin: 0 0 1.25rem; }

.kicker {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.standfirst { font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft); }
.byline { font-family: var(--ui); font-size: 0.82rem; color: var(--ink-faint); }

blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============ section headers ============ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 0.5rem;
  margin: 3rem 0 1.5rem;
}

.section-head:first-child { margin-top: 0; }

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head a {
  font-family: var(--ui);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ============ lead story ============ */

.lead {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

@media (max-width: 48rem) { .lead { grid-template-columns: 1fr; } }

.lead__plate {
  background-color: var(--brand);
  background-image:
    linear-gradient(to top, rgba(11,23,20,0.92) 0%, rgba(11,23,20,0.40) 48%, rgba(11,23,20,0.10) 100%);
  background-size: cover;
  background-position: center 25%;
  color: #eef5f1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 19rem;
  position: relative;
  overflow: hidden;
}

.lead__plate--ezekiel {
  background-image:
    linear-gradient(to top, rgba(13,33,28,0.88) 0%, rgba(13,33,28,0.34) 52%, rgba(13,33,28,0.04) 100%),
    url("/assets/img/ezekiel-dead.jpg");
}

.lead__verse {
  font-family: var(--display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}

.lead__ref {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

.lead__body { padding: 2rem; }
.lead__body h2 { margin: 0 0 0.75rem; font-size: 1.85rem; line-height: 1.15; }
.lead__body h2 a { color: var(--ink); text-decoration: none; }
.lead__body h2 a:hover { color: var(--accent); }
.lead__body p { color: var(--ink-soft); }

/* ============ card grid ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.75rem;
}

.card { display: flex; flex-direction: column; }

/* Plates carry public-domain engravings from the Met Open Access collection. */

.card__plate {
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid var(--rule);
  margin-bottom: 0.85rem;
  background-color: #f4f1e9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card__plate--jonah    { background-image: url("/assets/img/jonah-shore.jpg"); }
.card__plate--ezekiel  { background-image: url("/assets/img/ezekiel-vision.jpg"); }
.card__plate--elijah   { background-image: url("/assets/img/elijah-ravens.jpg"); }
.card__plate--habakkuk { background-image: url("/assets/img/habakkuk.jpg"); }
.card__plate--tobias   { background-image: url("/assets/img/tobias-raphael.jpg"); }
.card__plate--susanna  { background-image: url("/assets/img/susanna.jpg"); }
.card__plate--balaam   { background-image: url("/assets/img/balaam.jpg"); }
.card__plate--gideon   { background-image: url("/assets/img/gideon-soldiers.jpg"); }
.card__plate--prophet  { background-image: url("/assets/img/elijah-prophet.jpg"); }

.card__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card h2 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.25;
}
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p:not(.card__eyebrow) { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.5rem; }

/* ============ sidebar ============ */

.panel {
  border: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.75rem;
}

.panel h2,
.panel h3 {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

.panel--brand { background: var(--brand); border-color: var(--brand); color: #eef5f1; }
.panel--brand h2,
.panel--brand h3 { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.2); }
.panel--brand p { color: rgba(255,255,255,0.9); }
.panel--brand a { color: var(--accent-lt); }


.panel p { font-size: 0.93rem; margin: 0 0 0.75rem; }
.panel p:last-child { margin-bottom: 0; }

.linklist { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.linklist li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.linklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.linklist a { color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--accent); text-decoration: underline; }

/* ============ the text / library ============ */

.books { list-style: none; margin: 1.5rem 0 0; padding: 0; columns: 2; column-gap: 2.5rem; }
@media (max-width: 40rem) { .books { columns: 1; } }

.books li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.books a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.books a:hover { color: var(--accent); text-decoration: underline; }

/* ============ forms ============ */

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.field input, .field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--accent-lt); }

/* ============ footer ============ */

.sitefoot {
  background: var(--brand-deep);
  color: #b9c9c2;
  font-family: var(--ui);
  font-size: 0.88rem;
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}

.sitefoot a { color: #dfe9e3; text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; }

.sitefoot__base { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sitefoot__base p { margin: 0; color: rgba(255,255,255,0.5); }

/* ============ language gate ============ */

.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  padding: 2rem;
  background: var(--brand-deep);
  color: #eef5f1;
}

.gate svg { width: 64px; height: 64px; }
.gate h1 { margin: 0; font-size: 2.4rem; }

.gate__choices { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.gate__choices a {
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.35);
  color: #eef5f1;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gate__choices a:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 40rem) {
  h1 { font-size: 2rem; }
  .lead__body { padding: 1.5rem; }
  .lead__plate { padding: 2rem 1.5rem; }
}

@media (max-width: 48rem) {
  .mainnav .shell {
    padding-left: 0;
    padding-right: 0;
  }
  .mainnav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0 1rem;
  }
  .mainnav ul::-webkit-scrollbar { display: none; }
  .mainnav li { flex: none; scroll-snap-align: start; }
  .mainnav a { padding: 0.8rem 0.9rem; white-space: nowrap; }
}
