/* ============================================================
   Deliberately plain — "text file" / old-web aesthetic.
   No cards, no color bands, no shadows, no rounded buttons,
   no bordered panel. Tight spacing, classic ink/rust palette.
   ============================================================ */
:root {
  --bg: #fdfcf8;
  --ink: #111111;
  --ink-soft: #444444;
  --link: #1a3c6e;
  --link-hover: #b23c1a;
  --rule: #cccccc;
  --mark-bg: #fdf070;
  --max: 640px;
}

* { box-sizing: border-box; }

/* DM Mono, self-hosted (SIL OFL 1.1 — see fonts/LICENSE.txt).
   Chosen as a JetBrains-Mono-style technical monospace with a
   more symmetrical "J" (no lopsided top serif) and a slightly
   more modern take on the classic typewriter/Courier feel.
   Only the Regular weight is bundled — bold text (headings, the
   button, nav) is browser-synthesized from it. See README for
   how to add a true bold file if you'd rather avoid that. */
@font-face {
  font-family: "Site Mono";
  src: url("fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Site Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: var(--max);
  margin: 0 0 0 max(20px, 6vw);
  padding: 36px 24px 100px 0;
}

img { max-width: 100%; }

a { color: var(--link); text-decoration-color: currentColor; }
a:visited { color: #4b2e83; }
a:hover { color: var(--link-hover); }

h1, h2, h3 {
  font-family: inherit;
  font-weight: bold;
  line-height: 1.28;
  margin: 1.15em 0 0.45em;
}
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 0.85em; }

ul, ol { margin: 0 0 0.85em; padding-left: 1.35em; }
li { margin-bottom: 0.32em; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.6em 0;
}

/* ---------- nav ---------- */
.site-name {
  font-weight: bold;
  text-decoration: none;
  color: var(--ink);
}
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  margin: 0.3em 0 0;
  font-size: 0.95em;
}
nav.site-nav a {
  color: var(--link);
  margin-right: 0;
}
nav.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.sep { color: var(--ink-soft); }

/* ---------- headshot ---------- */
img.headshot {
  width: 150px;
  height: 150px;
  object-fit: cover;
  float: left;
  margin: 0.2em 18px 8px 0;
  border: 1px solid var(--ink);
}
.clear { clear: both; }

/* ---------- image break ---------- */
img.art-break-img {
  max-width: 300px;
  width: 100%;
  border: 1px solid var(--ink);
  margin: 0.5em 0;
}

/* ---------- placeholder marker ---------- */
.todo {
  background: var(--mark-bg);
  color: var(--ink);
}

/* ---------- misc ---------- */
.meta {
  color: var(--ink-soft);
  font-size: 0.9em;
}
.tagline { color: var(--ink-soft); }

/* ---------- footer accreditation logos ---------- */
.footer-logos {
  margin: 0.85em 0 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-logos img {
  height: 32px;
  width: auto;
}

.arrow-link {
  display: inline-block;
  margin: 0.35em 0;
}

/* ---------- underground/rail roundel glyph (Contact addresses) ---------- */
.tube-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin: 0 0.1em;
  color: currentColor;
}

/* ---------- thoughtnotes quote generator ---------- */
blockquote.quote {
  margin: 0.2em 0 0.5em;
  padding: 0;
  border: none;
  font-size: 1.2rem;
  line-height: 1.55;
}
blockquote.quote::before { content: "\201C"; }
blockquote.quote::after { content: "\201D"; }
.quote-cite {
  color: var(--ink-soft);
  margin: 0 0 1.3em;
}
.quote-btn {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0.2em 0 1em;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.quote-btn-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.quote-btn:hover {
  background: #1e5631;
  border-color: #1e5631;
}
.quote-btn:hover .quote-btn-diamond {
  background: var(--bg);
  border-color: #1e5631;
}
.quote-btn:active { transform: translateY(1px); }

/* ---------- thoughtnotes easter egg (Home footer, next to the logos) ----------
   Same shape as the quote-generator button above, reused as a plain link to
   thoughtnotes.html. Margin reset so it centres on the same line as the
   32px-tall logo images instead of sitting slightly high (the standalone
   .quote-btn margin is tuned for its own vertical spacing on thoughtnotes.html,
   not for sitting inline in a flex row). Hover colour is the same dark green
   as the base .quote-btn:hover rule above — kept as its own rule here in case
   the footer and standalone versions ever need to diverge again. */
.footer-logos .quote-btn {
  margin: 0;
}
.footer-logos .quote-btn:hover {
  background: #1e5631;
  border-color: #1e5631;
}
.footer-logos .quote-btn:hover .quote-btn-diamond {
  background: var(--bg);
  border-color: #1e5631;
}

/* ---------- booking button (the one deliberate "designed" element) ---------- */
.btn-book {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  color: var(--bg) !important;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 24px;
  margin: 0.55em 0;
  text-decoration: none;
}
.btn-book:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
  color: var(--bg) !important;
}
.btn-book:visited { color: var(--bg) !important; }

/* button.btn-book reset — .btn-book was written for an <a>; the Services
   "Further information" toggle applies it to a real <button> instead
   (for keyboard/screen-reader support), so strip native button chrome. */
button.btn-book {
  -webkit-appearance: none;
  appearance: none;
  line-height: normal;
  cursor: pointer;
}

/* "Further information" toggle (Services, "Who I work with") — same
   shape/size as .btn-book, a slightly different fill and hover colour
   so it doesn't read as a second "book a consult" call to action. */
.btn-reveal {
  background: var(--link);
  border-color: var(--link);
}
.btn-reveal:hover,
.btn-reveal:focus-visible {
  background: #8f2f15;
  border-color: #8f2f15;
  color: var(--bg) !important;
}

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  .page {
    margin-left: 16px;
    padding: 26px 16px 72px 0;
  }
  h1 { font-size: 1.32rem; }
  img.headshot {
    float: none;
    width: 128px;
    height: 128px;
    margin: 0 0 14px;
  }
  img.art-break-img { max-width: 100%; }
  .btn-book {
    display: block;
    text-align: center;
  }
}
