/* --- fonts, self hosted ------------------------------------------------ */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-serif-400i.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-serif-600.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-serif-600i.woff2") format("woff2"); }

/* Loosemore Advisory — one stylesheet.
   Custom properties below are the whole design system. Nothing is defined twice. */

:root {
  /* Colour. Warm off-white paper, near-black warm ink, one green in three depths. */
  --paper:        #f7f4ee;
  --paper-tint:   #e9ede5;   /* green-cast field for whole sections */
  --paper-deep:   #1d3a2c;   /* footer and inverted blocks */
  --ink:          #191b16;   /* body text, 13:1 on --paper */
  --ink-soft:     #45483d;   /* secondary prose, 8.7:1 on --paper */
  --ink-mute:     #6d6f62;   /* labels and dates, 5.1:1, never body text */
  --rule:         #d5cfc0;
  --rule-strong:  #191b16;
  --green:        #2f5b45;   /* rules, fills, marks */
  --green-link:   #26503c;   /* text-on-paper green, 7.4:1 */
  --green-light:  #a8c4b2;   /* on --paper-deep only */

  /* Type. Jost for headings, labels and the wordmark. Source Serif 4 for reading. */
  --sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --t-display: clamp(2.1rem, 1.35rem + 2.6vw, 3.25rem);
  --t-h2:      clamp(1.45rem, 1.2rem + 0.8vw, 1.75rem);
  --t-h3:      1.2rem;
  --t-body:    1.1875rem;   /* 19px */
  --t-small:   1.0625rem;
  --t-label:   0.8125rem;

  --lh-body: 1.62;
  --lh-tight: 1.14;
  --measure: 68ch;

  /* Space. A single 4px-derived scale. */
  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;    --s6: 3rem;    --s7: 4.5rem; --s8: 6rem;

  --shell: 72rem;
  --pad: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}

*, *::before, *::after { 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: var(--t-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 1px;
}

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

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; letter-spacing: -0.015em; margin: 0; text-wrap: pretty; }
h1 { font-size: var(--t-display); line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); line-height: 1.2; font-weight: 500; }
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 500; }

p { margin: 0 0 var(--s3); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--sans); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-link);
  margin: 0 0 var(--s4);
}
.lead-line { font-family: var(--serif); font-weight: 600; font-size: var(--t-body); margin: 0 0 var(--s1); max-width: var(--measure); }

/* --- shell ------------------------------------------------------------- */

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }
.reading { max-width: 38rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: var(--s2) var(--s3);
  font-family: var(--sans); z-index: 10;
}
.skip:focus { left: var(--s3); top: var(--s3); }

/* --- masthead ---------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead > .shell {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  align-items: baseline; justify-content: space-between;
  padding-block: var(--s4) var(--s3);
}
.wordmark {
  font-family: var(--sans); font-weight: 500; font-size: 1.1875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.6em;
}
.wordmark:hover { color: var(--green-link); }
.wordmark .mark { width: 1.5em; height: 1.5em; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: var(--s4); font-family: var(--sans); font-size: 1rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding-block: 0.15em; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--green); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

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

section { padding-block: var(--s7); }
section + section { border-top: 1px solid var(--rule); }
.field { background: var(--paper-tint); border-top: 1px solid var(--rule); }
.field + section { border-top: 0; }

.hero { padding-block: var(--s8) var(--s7); }
.hero h1 { max-width: 30ch; margin-bottom: var(--s5); }
.hero .body { font-size: 1.25rem; max-width: 62ch; margin-bottom: var(--s5); }

.action {
  font-family: var(--sans); font-size: 1.0625rem; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.5em;
  text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--green); padding-bottom: 0.2em;
}
.action:hover { color: var(--green-link); border-bottom-color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s7); }
  .split > .split-head { position: sticky; top: var(--s4); align-self: start; }
}
.split-head h2 { margin-bottom: var(--s3); }
.split-head p { color: var(--ink-soft); font-size: var(--t-small); }

.pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6) var(--s7); }
@media (min-width: 46rem) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pairs.single { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }

.item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s3); }
.item .num {
  font-family: var(--sans); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.1em;
  color: var(--green-link); padding-top: 0.45em;
}
.item p:not(.lead-line) { font-size: var(--t-small); color: var(--ink-soft); }

.areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 52rem) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); } }
.area { border-top: 1px solid var(--rule); padding-block: var(--s4) var(--s5); }
.area h3 { margin-bottom: var(--s2); color: var(--ink); }
.area p { font-size: var(--t-small); color: var(--ink-soft); }

.who { display: grid; gap: var(--s3); max-width: var(--measure); }
.who p { border-left: 2px solid var(--green); padding-left: var(--s3); margin: 0; }

/* --- boundary statement (never a disclaimer) --------------------------- */

.boundary { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding-block: var(--s5); }
.boundary p { font-size: var(--t-body); max-width: 70ch; }

/* --- writing list ------------------------------------------------------ */

.entries { display: grid; gap: 0; }
.entry { border-top: 1px solid var(--rule); padding-block: var(--s4) var(--s5); }
.entry .date { font-family: var(--sans); font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--s2); }
.entry h3 { font-size: 1.4rem; margin-bottom: var(--s2); }
.entry h3 a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.entry h3 a:hover { color: var(--green-link); border-bottom-color: var(--green); }
.entry p { font-size: var(--t-small); color: var(--ink-soft); }

/* --- essay ------------------------------------------------------------- */

.essay { padding-block: var(--s7) var(--s6); }
.essay-head { max-width: 44rem; margin-bottom: var(--s6); }
.essay-head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); margin-bottom: var(--s3); }
.essay-head .date { font-family: var(--sans); font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.prose { max-width: 38rem; }
.prose h2 { margin: var(--s6) 0 var(--s3); }
.prose h3 { margin: var(--s5) 0 var(--s2); font-style: italic; font-family: var(--serif); font-weight: 600; }
.prose p, .prose li { font-size: var(--t-body); }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 var(--s3); }
.prose li { margin-bottom: var(--s2); }
.prose blockquote {
  margin: var(--s4) 0; padding: 0 0 0 var(--s4);
  border-left: 2px solid var(--green); color: var(--ink-soft);
}
.prose blockquote p { font-size: var(--t-small); }
.prose figure { margin: var(--s5) 0; }
.prose figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.prose figcaption { font-size: 0.95rem; color: var(--ink-mute); font-style: italic; margin-top: var(--s2); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s6) 0; }
.footnote { font-size: 1rem; color: var(--ink-soft); }
.essay-foot { border-top: 1px solid var(--rule-strong); margin-top: var(--s6); padding-top: var(--s5); max-width: 38rem; }

/* --- forms ------------------------------------------------------------- */

form { max-width: 32rem; }
.f { display: grid; gap: var(--s1); margin-bottom: var(--s4); }
label { font-family: var(--sans); font-size: 1rem; color: var(--ink); }
input[type="text"], input[type="email"], textarea {
  font-family: var(--serif); font-size: var(--t-small); color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink-soft); border-radius: 0;
  padding: 0.6em 0.7em; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
button {
  font-family: var(--sans); font-size: 1.0625rem; letter-spacing: 0.02em;
  background: var(--green); color: #f7f4ee; border: 1px solid var(--green);
  padding: 0.65em 1.5em; border-radius: 0; cursor: pointer;
}
button:hover { background: var(--paper-deep); border-color: var(--paper-deep); }
.hp { position: absolute; left: -9999px; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1.0625rem; letter-spacing: 0.02em;
  background: var(--green); color: #f7f4ee; border: 1px solid var(--green);
  padding: 0.65em 1.5em; text-decoration: none;
}
.btn:hover { background: var(--paper-deep); border-color: var(--paper-deep); color: #f7f4ee; }
.booking-line { max-width: 34rem; margin-bottom: var(--s4); }
.booking-alt { max-width: 34rem; margin-top: var(--s4); color: var(--ink-soft); font-size: var(--t-small); }
.booking form { max-width: 46rem; }
.booking .row2 { display: grid; gap: 0 var(--s4); }
@media (min-width: 40rem) { .booking .row2 { grid-template-columns: 1fr 1fr; } }
.subscribe { border-top: 1px solid var(--rule); padding-top: var(--s5); margin-top: var(--s6); }
.subscribe .row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; }
.subscribe .f { margin-bottom: 0; flex: 1 1 16rem; }

/* --- portrait ---------------------------------------------------------- */

.portrait { margin: 0 0 var(--s5); max-width: 14rem; }
.portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.portrait figcaption { font-family: var(--sans); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-top: var(--s2); }
@media (min-width: 60rem) {
  .about-grid { display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 16rem); gap: var(--s7); align-items: start; }
  .about-grid .portrait { order: 2; position: sticky; top: var(--s4); max-width: none; }
}
.portrait.small { max-width: 12rem; }

/* --- books ------------------------------------------------------------- */

.books { display: grid; gap: var(--s4); max-width: var(--measure); }
.books p { margin: 0; }
.books cite { font-style: italic; }

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

.foot { background: var(--paper-deep); color: #e6ece6; margin-top: var(--s7); }
.foot > .shell { padding-block: var(--s6); display: grid; gap: var(--s5); }
@media (min-width: 52rem) { .foot > .shell { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: var(--s7); } }
.foot a { color: #ffffff; }
.foot a:hover { color: var(--green-light); }
.foot .name { font-family: var(--sans); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s2); }
.foot p { font-size: var(--t-small); color: #ccd8cd; }
.foot .quiet { font-size: 0.95rem; color: #a8bcae; max-width: 62ch; }
.foot .nav-foot { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); font-family: var(--sans); font-size: 1rem; margin-bottom: var(--s4); }
.foot .nav-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot .nav-foot a:hover { border-bottom-color: var(--green-light); }

@media print {
  .masthead, .foot, .subscribe { display: none; }
  body { background: #fff; }
}
