/* boldandfearless.me — "Bold and Fearless": dark earth rail, warm paper page, terracotta and gold accents. Mobile first:
   the rail is a top band below 60rem. Contrast: links/ink/soft text on the paper are all >= 4.5:1. */
:root {
  --earth: #3b2216;
  --sienna: #8a3b12;
  --paper: #fffaf3;
  --page: #f2e9dc;
  --ink: #2a1d17;
  --soft: #6e5a4e;
  --gold: #d9a23b;
  --terracotta: #b0502a;
  --rule: #e6d8c5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1.0625rem/1.68 var(--sans); }
a { color: var(--sienna); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--terracotta); }

.frame { min-height: 100vh; }
.rail { background: var(--earth); color: #f3e6d6; padding: 1rem 1.1rem .4rem; }
.mark { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; color: #fff; font-family: var(--serif); font-size: 1.55rem; }
.mark b { font-weight: 600; letter-spacing: .01em; }
.mark i { color: var(--gold); font-style: italic; font-weight: 400; font-size: .85em; }
.motto { margin: .2rem 0 .7rem; font-size: .86rem; line-height: 1.45; color: #dcc6aa; }
.menu ul { list-style: none; margin: 0 -1.1rem; padding: 0 1.1rem .6rem; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.menu li { flex: 0 0 auto; }
.menu a { display: block; padding: .38rem .75rem; border-radius: 6px; color: #f7ecdf; text-decoration: none; font-size: .92rem; border: 1px solid rgba(217, 162, 59, .35); }
.menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--earth); font-weight: 600; }

.sheet { padding: 1.4rem 1.1rem 2rem; }
.prose { max-width: 43rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.2rem 1.8rem; box-shadow: 0 1px 0 var(--rule); }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); color: var(--earth); line-height: 1.22; font-weight: 600; }
.prose h1 { font-size: clamp(1.75rem, 6vw, 2.45rem); margin: .1rem 0 .8rem; }
.prose h2 { font-size: 1.36rem; margin: 2rem 0 .55rem; }
.prose h2::before { content: ""; display: block; width: 2.2rem; height: 3px; background: var(--gold); margin-bottom: .6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .3rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--terracotta); }
.chapeau { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: #4a3428; }
.kicker { margin: 0; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.trail { font-size: .85rem; color: var(--soft); margin-bottom: .8rem; }
.trail a { color: var(--soft); }

.note { background: #f8ead2; border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; padding: .85rem 1rem; margin: 1.3rem 0; }
.note p:last-child { margin-bottom: 0; }
.prose dl dt { font-family: var(--serif); font-weight: 600; color: var(--earth); margin-top: 1.1rem; }
.prose dl dd { margin: .2rem 0 0; }
.questions details { border-bottom: 1px solid var(--rule); padding: .7rem 0; }
.questions summary { cursor: pointer; font-weight: 600; color: var(--earth); }
.questions details p { margin: .55rem 0 .2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--earth); font-weight: 600; }

.sommaire { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.sommaire li { counter-increment: s; position: relative; padding: .8rem 0 .8rem 2.6rem; border-bottom: 1px solid var(--rule); }
.sommaire li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .85rem; font-family: var(--serif); color: var(--terracotta); font-size: 1.12rem; }
.sommaire a { font-weight: 600; text-decoration: none; }
.sommaire span { display: block; font-size: .92rem; color: var(--soft); line-height: 1.5; margin-top: .15rem; }
.see { margin-top: 1.8rem; font-size: .95rem; color: var(--soft); }

.photo { margin: 1.3rem 0 1.7rem; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--rule); }
.photo figcaption { margin-top: .5rem; font-size: .88rem; line-height: 1.5; color: var(--soft); border-left: 3px solid var(--gold); padding-left: .7rem; }
.photo-credit { display: block; font-size: .76rem; margin-top: .15rem; }
.photo-credit a, .credits span a { color: var(--soft); }

.colophon { max-width: 43rem; font-size: .86rem; color: var(--soft); padding: 1.2rem .2rem 0; line-height: 1.55; }
.colophon p { margin: 0 0 .5rem; }
.colophon a { color: var(--soft); }

@media (min-width: 60rem) {
  .frame { display: grid; grid-template-columns: 17rem 1fr; }
  .rail { position: sticky; top: 0; height: 100vh; padding: 2.2rem 1.6rem; display: flex; flex-direction: column; }
  .mark { font-size: 1.9rem; flex-direction: column; gap: 0; }
  .motto { margin: .7rem 0 2rem; }
  .menu ul { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: .15rem; }
  .menu a { border: 0; padding: .5rem .7rem; font-size: 1rem; }
  .sheet { padding: 3rem 3.2rem; }
  .prose { padding: 2.2rem 2.6rem 2.6rem; }
}
