/* hillhome.uk — shared styles
   Black ink on white paper. Helvetica for reading, JetBrains Mono for labels.
   Deliberately single-theme: this page is a sheet of paper, not a screen. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rule: #000000;
  --quiet: #5f5f63;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad-y: clamp(32px, 7vw, 96px);
  --pad-x: clamp(20px, 5vw, 56px);
  --stack: clamp(32px, 5vw, 60px);
}

html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  -webkit-font-smoothing: antialiased;
  /* 92vh rather than 100vh: the footer is still pushed to the bottom on a tall
     window, but a quarter less dead space opens up above it on the home page. */
  min-height: 92vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--pad-y);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.sheet {
  width: 100%;
  max-width: 880px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---- mono label, used for every piece of furniture on the page ---- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- masthead ---- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 24px;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.masthead nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---- titles ---- */
.title-block { display: flex; flex-direction: column; gap: clamp(20px, 3.2vw, 32px); }

h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
  font-size: clamp(42px, 10vw, 104px);
}
h1.home { font-size: clamp(56px, 15vw, 168px); line-height: 0.88; }

.standfirst {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.standfirst.home { max-width: 20ch; }

/* ---- prose ---- */
.rule-top { border-top: 1px solid var(--rule); padding-top: clamp(24px, 3vw, 32px); }

.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.prose p.lead { font-size: 17px; }

/* ---- three-across grid of blocks ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.block h2, .block h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.block p { margin: 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* ---- a numbered sequence: only where order genuinely carries meaning ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  border-top: 1px solid var(--rule);
  padding: 16px 0 22px;
}
.step .num { grid-row: span 2; padding-top: 3px; }
.step h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.step p { margin: 0; max-width: 58ch; font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* ---- label / value rows ---- */
.specs { display: flex; flex-direction: column; gap: 0; }
.spec {
  display: grid;
  grid-template-columns: minmax(0, 13ch) minmax(0, 1fr);
  gap: 6px 20px;
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  align-items: baseline;
}
.spec dt {
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec dd { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.specs--data dd {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---- section heading ---- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: clamp(20px, 2.6vw, 28px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

/* ---- footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  border-top: 1px solid var(--rule);
  padding-top: clamp(20px, 3vw, 28px);
  margin-top: auto;
}
.foot .links { display: flex; flex-wrap: wrap; gap: 16px 20px; }

@media (max-width: 420px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step .num { grid-row: auto; padding-top: 0; }
  .spec { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- article-level elements ---- */
.prose h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.prose ul, .prose ol {
  margin: 0;
  padding-left: 1.35em;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose li { text-wrap: pretty; }
.prose li::marker { color: var(--quiet); }
.step .prose p, .step ul, .step ol { max-width: 58ch; }

/* a deliberate exception to the no-boxes rule: safety text should stop the eye */
.note {
  border-left: 3px solid var(--ink);
  padding: 2px 0 2px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 64ch;
}
.note p { margin: 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.note .mono { color: var(--quiet); }

/* reference tables */
.tablewrap { overflow-x: auto; border-top: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td {
  text-align: left;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  white-space: nowrap;
}
td:last-child, th:last-child { padding-right: 0; }

/* onward links */
.onward { display: flex; flex-direction: column; gap: 0; }
.onward a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding: 18px 0;
  text-decoration: none;
}
.onward a:hover { text-decoration: none; }
.onward a:hover .onward-title { text-decoration: underline; text-underline-offset: 4px; }
.onward-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.onward-note { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.5; max-width: 58ch; }
