/* ------------------------------------------------------------------
   lucdeflem.com
   One stylesheet. No framework, no build step, no dependencies.
   Colours are the same ones used in the Field Guide PDF, so the site
   and the document read as one hand.
   ------------------------------------------------------------------ */

:root {
  --ink:   #1a1a1a;   /* body text          */
  --soft:  #55524d;   /* secondary text     */
  --rule:  #c9c2b6;   /* hairlines          */
  --box:   #f4f1ea;   /* the one tinted block */
  --acc:   #6b6357;   /* labels, rules      */
  --paper: #fdfcfa;   /* background         */

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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 34em;          /* about 66 characters: a comfortable measure */
  margin: 0 auto;
  padding: 0 1.5rem;
}

p { margin: 0 0 1.15em; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
a:hover { border-bottom-color: var(--ink); }


/* ---------- 1. the door ---------- */

.hero {
  padding: 22vh 0 14vh;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.15rem;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}

.hero .ask {
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--soft);
  margin: 0;
}


/* ---------- sections ---------- */

section { margin-bottom: 4rem; }

.lead {
  font-size: 1.12rem;
  line-height: 1.58;
}

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.9em;
}

.action {
  margin-top: 1.4em;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.action a { border-bottom-width: 2px; }


/* ---------- the one tinted block ---------- */

.offer {
  background: var(--box);
  padding: 2rem 2rem 1.6rem;
  border-left: 3px solid var(--acc);
}

.offer .label { margin-top: 0; }


/* ---------- the honest paragraph ---------- */

.aside {
  font-size: 0.94rem;
  color: var(--soft);
  border-left: 2px solid var(--rule);
  padding-left: 1.1rem;
  margin-top: 2rem;
}


/* ---------- the door out ---------- */

.close {
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
  margin-bottom: 5rem;
}


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

footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 1.5rem 3rem;
  max-width: 34em;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--soft);
}

footer p { margin: 0; }


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

@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { padding: 14vh 0 9vh; }
  .hero h1 { font-size: 1.68rem; }
  .hero .ask { font-size: 1.15rem; }
  .offer { padding: 1.5rem 1.4rem 1.1rem; }
}


/* ==================================================================
   THE METHOD
   Everything below is only used by method.html
   ================================================================== */

.doc-head {
  padding: 8vh 0 0;
  margin-bottom: 3rem;
}

.back {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--soft);
  display: inline-block;
  margin-bottom: 3.5rem;
}
.back a { color: var(--soft); border-bottom-color: var(--rule); }

.doc-head h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: -0.015em;
}

.doc-head .standfirst {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--soft);
  margin: 0;
}

/* ---------- contents ---------- */

.toc {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  margin-bottom: 4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.9;
}
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { padding-left: 0.2em; }
.toc a { border-bottom: 0; }
.toc a:hover { border-bottom: 1px solid var(--rule); }

/* ---------- headings ---------- */

h2 {
  font-size: 1.62rem;
  line-height: 1.22;
  font-weight: 700;
  margin: 4.5rem 0 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.01em;
}

h2 .num {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.6rem 0 0.9rem;
}

/* ---------- Luc's own voice inside the instruction ---------- */

.mine {
  font-style: italic;
  color: var(--soft);
  border-left: 2px solid var(--rule);
  padding-left: 1.2rem;
  margin: 0 0 1.3em;
}

/* ---------- the prompts, made easy to find and copy ---------- */

.prompt {
  background: var(--box);
  border-left: 3px solid var(--acc);
  padding: 1.5rem 1.6rem 0.6rem;
  margin: 1.8rem 0;
  font-size: 0.97rem;
  line-height: 1.55;
}
.prompt p { margin-bottom: 1em; }

/* ---------- the safety lines ---------- */

.safety {
  border: 1px solid var(--acc);
  padding: 1.5rem 1.6rem 0.6rem;
  margin: 2rem 0;
}
.safety .label { margin-bottom: 0.7em; }

/* ---------- numbered lists that carry weight ---------- */

ol.steps { padding-left: 0; list-style: none; counter-reset: s; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.6em;
}
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--acc);
}

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.7em; }

/* ---------- the rhythm table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
}
td:first-child { width: 8.5em; font-weight: 700; }

/* ---------- the last line ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  margin-bottom: 5rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--soft);
}

@media (max-width: 560px) {
  .doc-head h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .prompt, .safety { padding-left: 1.1rem; padding-right: 1.1rem; }
  td:first-child { width: 6.5em; }
}


/* ==================================================================
   THE ARCHIVE
   ================================================================== */

.year {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acc);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin: 3.5rem 0 1.8rem;
}

.entries { margin: 0; padding: 0; list-style: none; }

.entries li { margin-bottom: 2rem; }

.entries .title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.34;
  margin: 0 0 0.25em;
}
.entries .title a { border-bottom: 0; }
.entries .title a:hover { border-bottom: 1px solid var(--rule); }

.entries .date {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--soft);
  margin: 0 0 0.5em;
}

.entries .blurb {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--soft);
  margin: 0;
}


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

@media print {
  body { background: #fff; font-size: 11pt; }
  a { border: 0; }
  .offer { background: #fff; }
}


/* ---------- the guides: one highlighted paragraph, the later steps, print ---------- */

.key {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  margin: 1.8rem 0;
}

ol.steps > li.later { counter-increment: s 3; }
ol.steps > li.later::before { content: "5\2013 7"; }
ol.steps > li.later p { color: var(--soft); }

.dots-note {
  font-size: 0.88rem;
  color: var(--soft);
  margin: 0 0 1.3em;
}

@media print {
  h2 { break-before: page; page-break-before: always; }
  h2, h3 { break-after: avoid-page; page-break-after: avoid; break-inside: avoid; page-break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  .prompt, .key, tr { break-inside: avoid; }
}

/* ---------- print: the last words get a page of their own, centred ---------- */
@media print {
  .colophon {
    break-before: page; page-break-before: always;
    break-inside: avoid; border-top: 0;
    margin: 0; padding: 95mm 0 0 0;
    text-align: center; font-size: 1.25rem;
  }
  .where-next { break-inside: avoid; page-break-inside: avoid; }
  footer { break-before: avoid; page-break-before: avoid; text-align: center; margin-top: 10mm; padding-top: 0; border-top: 0; }
}
