/* JanelleJenkins.com
   One stylesheet. No build step. Edit values in :root to change the whole site.
   Contrast ratios against the paper ground are noted beside each color. */

:root {
  --paper:        #F7F4EF;  /* ground */
  --paper-warm:   #EFEAE1;  /* banded sections */
  --ink:          #2A2521;  /* body text, 13.82:1 */
  --ink-muted:    #5A514A;  /* secondary text, 7.06:1 */
  --clay:         #7A3D18;  /* links and accents, 7.63:1 */
  --clay-deep:    #6E3512;  /* hover, 8.78:1 */
  --forest:       #123F30;  /* Power in Practice link, 10.76:1 */
  --rule:         #D5CCC1;  /* decorative hairlines only */
  --paper-dim:    #C9BFB4;  /* on dark ground, 8.37:1 */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 37rem;   /* reading width */
  --wide: 55rem;      /* page width */
  --gap: 1.6rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }

main { display: block; }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
.band { background: var(--paper-warm); }
.band + section { border-top: 0; }

/* ---------- skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header and navigation ---------- */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; font-weight: 400;
}
.wordmark:hover, .wordmark:focus { color: var(--clay-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink-muted);
  color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
  padding: 0.4rem 0.8rem; border-radius: 2px; cursor: pointer;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a {
  color: var(--ink-muted); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.01em;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
nav a:hover, nav a:focus { color: var(--clay-deep); border-bottom-color: var(--clay); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay); margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.95rem; }

a { color: var(--clay); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--clay-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* ---------- hero ---------- */

.hero { padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; max-width: 22rem;
  border-radius: 2px; background: var(--paper-warm);
}
.portrait figcaption { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.6rem; max-width: 22rem; }

/* ---------- record entries ---------- */

.entry { margin: 0 0 2.25rem; max-width: var(--measure); }
.entry:last-child { margin-bottom: 0; }
.entry h3 { margin-bottom: 0.35rem; color: var(--ink); }
.entry .role { font-size: 0.92rem; color: var(--ink-muted); margin: 0 0 0.7rem; letter-spacing: 0.01em; }

/* ---------- inquiry links ---------- */

.inquiry { margin: 0 0 1.75rem; max-width: var(--measure); }
.inquiry h3 { margin-bottom: 0.3rem; }
.inquiry p { margin-bottom: 0.4rem; }

.action {
  display: inline-block; font-family: var(--sans); font-size: 0.98rem;
  color: var(--paper); background: var(--ink); text-decoration: none;
  padding: 0.65rem 1.2rem; border-radius: 2px; border: 1px solid var(--ink);
}
.action:hover, .action:focus { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--paper); }

/* ---------- sister site ---------- */

.sister a { color: var(--forest); }
.sister a:hover, .sister a:focus { color: var(--forest); text-decoration-thickness: 2px; }

/* ---------- footer ---------- */

.sitefoot { background: var(--ink); color: var(--paper); padding: 3rem 0 2.5rem; margin-top: 0; }
.sitefoot a { color: var(--paper); }
.sitefoot a:hover, .sitefoot a:focus { color: #E8B48A; }
.sitefoot p { color: var(--paper-dim); max-width: var(--measure); }
.sitefoot h2 { color: var(--paper); font-size: 1.15rem; }
.sitefoot :focus-visible { outline-color: #E8B48A; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.foot-note { font-size: 0.9rem; color: var(--paper-dim); border-top: 1px solid #4A423B; padding-top: 1.25rem; }

/* ---------- wider screens ---------- */

@media (min-width: 46rem) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  section { padding: 4.5rem 0; }
}

/* ---------- small screens ---------- */

@media (max-width: 45.99rem) {
  .nav-toggle { display: block; }
  #sitenav { display: none; width: 100%; }
  #sitenav.open { display: block; }
  #sitenav ul { flex-direction: column; gap: 0.9rem; padding-top: 0.75rem; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */

@media print {
  .masthead nav, .nav-toggle, .skip { display: none; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
