/* ozarkembers.com: one hand-written stylesheet, no build step.
   The vhost CSP is default-src 'self' with no 'unsafe-inline', so every style
   lives here and the page carries no <style> block and no style="" attribute.

   The look is the Mansager family's (mansagers5.com): paper, ink and eggplant,
   EB Garamond with real small caps, hairline rules, a linen colophon. Tokens
   are copied from that site's global.css; keep them in step if they change.

   The page is one column: the logo front and centre, the two photographs,
   three short columns of facts, one closing line, the colophon. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-roman.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f4eee2;
  --paper-deep: #ebe3d3;
  --linen: #ede5d5;
  --ink: #2b2520;
  --ink-soft: #5b5046;
  --ember: #97401f;
  --eggplant: #5b2f50;
  --rule: #cfc2ab;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: 1.25rem;
  --wide: 64rem;
}
@media (min-width: 48rem) { :root { --gutter: 3rem; } }

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

html {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 112.5%;            /* 18px: Garamond has a small x-height */
  line-height: 1.5;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--ember); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

h1, h2, p, ul, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--eggplant) 50%, transparent); text-underline-offset: 4px; }
a:hover { color: var(--eggplant); text-decoration-color: var(--eggplant); }

/* Real small caps (smcp), the reason the font is self-hosted from upstream. */
.masthead-name, .masthead-note, .fact h2, .colophon-name {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
}

/* ---- Masthead: the name between two hairlines, newspaper-fashion ---- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin: 0 var(--gutter);
  padding: 0.75rem 0;
  border-block: 1px solid var(--rule);
}
.masthead-name { font-size: 1.05rem; }
.masthead-sep { color: var(--eggplant); padding: 0 0.15em; }
.masthead-note { font-size: 0.95rem; color: var(--ink-soft); }

/* ---- The logo, front and centre ---- */
.hero {
  padding: 3.5rem var(--gutter) 0;
  text-align: center;
}
.hero-mark { line-height: 0; }
.hero-mark img { width: 78vw; max-width: 26rem; margin: 0 auto; }
.hero-lede {
  margin: 2rem auto 0;
  max-width: 28rem;
  font-size: 1.3rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--ink-soft);
  text-wrap: balance;
}
@media (min-width: 48rem) {
  .hero { padding-top: 4.5rem; }
  .hero-lede { font-size: 1.45rem; }
}

/* ---- The two photographs, side by side where there is room ---- */
.photos {
  margin: 3.5rem auto 0;
  max-width: var(--wide);
  padding: 0 var(--gutter);
  display: grid;
  gap: 1rem;
}
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
  .photos { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4.5rem; }
}

/* ---- Three short columns, in the family's hairline-ruled style ---- */
.facts {
  margin: 3.5rem auto 0;
  max-width: var(--wide);
  padding: 0 var(--gutter);
  display: grid;
  gap: 2rem;
}
.fact h2 { font-size: 1.15rem; font-weight: 500; color: var(--eggplant); }
.fact-note { margin-top: 0.15rem; font-style: italic; color: var(--ink-soft); }
.fact ul { margin-top: 0.9rem; padding: 0; list-style: none; }
.fact li { padding: 0.3rem 0; border-top: 1px solid var(--rule); text-wrap: pretty; }
.fact li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 4.5rem; }
  .fact { padding: 0 2rem; }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { padding-right: 0; }
  .fact + .fact { border-left: 1px solid var(--rule); }
}

/* ---- One closing line ---- */
.closing {
  margin: 3.5rem auto 0;
  padding: 0 var(--gutter);
  max-width: 34rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---- Colophon: the family's storybook footer, on linen ---- */
.colophon {
  position: relative;
  margin-top: 4rem;
  padding: 3rem var(--gutter) 2.5rem;
  text-align: center;
  background-color: var(--linen);
  background-image: url("art/linen.jpg");
}
.colophon-rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-block: 1px solid color-mix(in srgb, var(--eggplant) 35%, transparent);
}
.selbu { display: block; width: 1.75rem; height: auto; margin: 0 auto 1rem; color: var(--eggplant); }
.colophon-name { font-size: 1.25rem; letter-spacing: 0.08em; }
.colophon-family { margin-top: 0.75rem; color: var(--ink-soft); }
.colophon-copy { margin-top: 1.25rem; font-size: 0.85rem; font-style: italic; color: var(--ink-soft); }
