/* the site's own fonts (SIL Open Font License, see /fonts) */
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/marcellus-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2'); }
[hidden] { display: none !important; }

/* Layout: the live sky-house.co.uk look. A fixed header over a navy or photo top, a white reading column beside a short side panel, navy closing bands and the site's white footer. One light theme, as on the site. */
:root {
  color-scheme: light;
  --deep: #0C1A3D;
  --deep-2: #15275A;
  --navy: #002089;
  --sky: #00BFFF;
  --sky-dim: #5C7DB3;
  --white: #FFFFFF;
  --ink: #1B2233;
  --body: #3A4252;
  --grey: #5E6779;
  --mist: #EEF1F6;
  --line: #DCE2EC;
  --on-dark: #E6ECF5;
  --todo-bg: #FFF0B3;
  --todo-ink: #4D3B00;
  --serif: 'Marcellus', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 8.4vw, 160px);
}
* { box-sizing: border-box; }
html { background: var(--white); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 300 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--deep); }
.menu-open body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* headings: classic serif first, light sans second, in capitals, as on the site */
.h { margin: 0; color: var(--sky); text-transform: uppercase; font-weight: 400; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; }
.h .s { display: block; font-family: var(--serif); color: var(--h-first, var(--sky)); }
.h .l { display: block; font-family: var(--sans); font-weight: 200; }
.on-dark { --h-first: var(--white); }
.kicker { margin: 0 0 18px; font: 500 14px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); text-wrap: balance; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 32px; border-radius: 999px; background: var(--white); color: var(--navy); font: 500 14px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.pill:hover { background: var(--sky); color: var(--white); }
.pill-solid { background: var(--navy); color: var(--white); }
.pill-line { background: transparent; border: 1.5px solid rgba(0, 191, 255, 0.6); color: var(--white); }
.pill-line:hover { border-color: var(--sky); }

/* header and menu */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: calc(env(safe-area-inset-top, 0px) + 26px); padding-bottom: 26px; transition: background .35s ease, padding .35s ease; }
.head.scrolled { background: rgba(10, 21, 50, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 16px; }
.menu-open .head { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: block; }
.brand img { width: 168px; height: auto; }
.head-end { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.head-contact { font: 500 15px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); padding: 14px 0; }
.head-contact:hover { color: var(--sky); }
.burger { width: 48px; height: 48px; margin-right: -10px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.burger i { position: relative; display: block; width: 30px; height: 1.6px; background: var(--white); transform: translateY(-4.5px); transition: transform .3s ease; }
.burger i::after { content: ""; position: absolute; left: 0; top: 9px; width: 30px; height: 1.6px; background: var(--white); transition: transform .3s ease, top .3s ease; }
.menu-open .burger i { transform: rotate(45deg); }
.menu-open .burger i::after { top: 0; transform: rotate(-90deg); }
.menu { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--deep); padding: 120px max(var(--gutter), env(safe-area-inset-right, 0px)) 60px max(var(--gutter), env(safe-area-inset-left, 0px)); overflow-y: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu a { display: block; font-family: var(--serif); font-size: clamp(36px, 6vw, 84px); line-height: 1.14; text-transform: uppercase; color: var(--sky-dim); transition: color .2s ease; }
.menu a:hover, .menu a:focus-visible, .menu a.on { color: var(--sky); }

/* navy page head and the list of posts */
.sec { padding-block: clamp(80px, 9.5vw, 150px); }
.sec-deep { background: var(--deep); color: var(--on-dark); }
.page-head { padding-top: clamp(150px, 15vw, 230px); }
.page-head .h { font-size: clamp(48px, 7vw, 120px); }
.lead-in { margin: 30px 0 0; max-width: 36em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--on-dark); }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(50px, 6vw, 80px); }
.card { position: relative; display: block; overflow: hidden; background: var(--deep-2); color: var(--white); }
.card img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s ease; }
.card:hover img { transform: scale(1.04); }
.card-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 120px 24px 24px; background: linear-gradient(180deg, rgba(8, 16, 38, 0) 0%, rgba(8, 16, 38, 0.72) 42%, rgba(8, 16, 38, 0.92) 100%); }
.card-text { display: flex; align-items: flex-end; min-height: 300px; padding: clamp(24px, 2.6vw, 40px); background: linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 75%); border: 1px solid rgba(0, 191, 255, 0.28); color: var(--white); transition: border-color .2s ease; }
.card-text:hover { border-color: var(--sky); }
.card-text .in { display: grid; gap: 12px; }
.card small, .card-text small { font: 500 13px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.card b, .card-text b { font: 400 clamp(24px, 2vw, 32px)/1.08 var(--serif); text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); text-wrap: balance; }
.card .t, .card-text .t { font-size: 16px; line-height: 1.5; color: var(--on-dark); text-wrap: pretty; }
.card em, .card-text em { margin-top: 6px; font: 500 13px/1 var(--sans); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.bgrid .card-cta { min-height: 0; }
.bgrid > .card-cta:nth-child(3n+1) { grid-column: 1 / -1; }
.bgrid > .card-cta:nth-child(3n+2) { grid-column: span 2; }

/* a post: cover, side panel, reading column */
.photo { position: relative; display: flex; align-items: flex-end; min-height: clamp(480px, 74vh, 860px); min-height: clamp(480px, 74svh, 860px); overflow: hidden; color: var(--white); background: var(--deep); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 38, 0.66) 0%, rgba(8, 16, 38, 0.08) 30%, rgba(8, 16, 38, 0.08) 52%, rgba(8, 16, 38, 0.74) 100%); }
.photo .inner { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: clamp(56px, 7vw, 100px); }
.photo .h { font-family: var(--serif); font-size: clamp(44px, 7vw, 120px); letter-spacing: 0.04em; color: var(--white); }
.post-head { padding-bottom: clamp(56px, 7vw, 100px); }
.post-head .h { font-size: clamp(40px, 6vw, 100px); }
.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 44px clamp(40px, 6vw, 100px); padding-block: clamp(50px, 6vw, 90px) clamp(70px, 8vw, 120px); align-items: start; background: var(--white); }
.side { display: grid; gap: 34px; min-width: 0; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 12px; font: 500 14px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); padding: 12px 0; }
.back:hover { color: var(--sky); }
.byline { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.byline p { margin: 0; }
.byline b { display: block; font: 400 19px/1.2 var(--serif); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.byline span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--grey); }
.facts { display: grid; gap: 22px; margin: 0; padding-top: 30px; border-top: 1px solid var(--line); }
.facts dt, .side-label { margin: 0; font: 500 13px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 6px 0 0; font: 400 clamp(19px, 1.5vw, 22px)/1.3 var(--serif); color: var(--ink); }
.checklist { padding-top: 30px; border-top: 1px solid var(--line); }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 2px; background: var(--sky); }
.main { min-width: 0; max-width: 40em; }
.stand { margin: 0; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.main h2 { margin: 2em 0 0; font: 400 clamp(24px, 2.1vw, 32px)/1.15 var(--serif); text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); text-wrap: balance; }
.main p { margin: 0.9em 0 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--body); text-wrap: pretty; }
.main p a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.side .ticks a, .main .ticks a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.side-logo { width: 170px; height: auto; margin-bottom: 26px; }
.main p a:hover { text-decoration-thickness: 2px; }
.main .stand { margin: 0; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.5; color: var(--ink); }
.main .ticks { margin-top: 1.1em; }
.main .ticks li { font-size: clamp(17px, 1.3vw, 19px); }
.pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin: 1.8em 0 0; }
.pics figure { margin: 0; min-width: 0; }
.pics img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--mist); }
.pics figcaption, .pic figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--grey); }
.pic { margin: 1.8em 0 0; }
.pic img { width: 100%; height: auto; background: var(--mist); }
.calc { margin: 1.4em 0 0; padding: clamp(18px, 2vw, 26px); background: var(--mist); }
.calc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; color: var(--ink); }
.calc caption { caption-side: top; text-align: left; padding-bottom: 10px; font: 500 13px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.calc th, .calc td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 300; text-align: left; vertical-align: top; }
.calc td { text-align: right; white-space: nowrap; padding-left: 16px; }
.calc .total th, .calc .total td { border-bottom: 0; padding-top: 12px; font-weight: 500; }
.calc thead th { padding-left: 16px; text-align: right; font: 500 13px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.calc { overflow-x: auto; }
@media (max-width: 600px) { .calc { padding: 16px 14px; } .calc td, .calc thead th { padding-left: 10px; } .calc td { white-space: normal; } }
.main .calc .src { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--grey); }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0.1em 0.35em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.post-cta { display: grid; gap: 14px; justify-items: start; margin-top: 2.8em; padding: clamp(26px, 3vw, 44px); background: var(--deep); color: var(--on-dark); }
.main .post-cta h2 { margin: 0; color: var(--white); }
.main .post-cta p { margin: 0; color: var(--on-dark); }
.post-cta .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.post-cta .tel { font: 500 14px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.post-cta .tel a:hover { color: var(--sky); }
.pnext { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-block: clamp(56px, 6vw, 96px); background: var(--deep); color: var(--on-dark); }
.next { display: grid; gap: 12px; min-width: 0; }
.next small { font: 500 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.next b { font: 400 clamp(30px, 4vw, 64px)/1.05 var(--serif); text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); text-wrap: balance; transition: color .2s ease; }
.next:hover b { color: var(--sky); }

/* footer, as on the site */
.foot { background: var(--white); padding-block: clamp(70px, 8vw, 120px) 40px; color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.75fr) minmax(0, 1fr); gap: 40px; }
.cols h2 { margin: 0 0 30px; font: 400 17px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 19px; font-weight: 400; }
.cols a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.foot-btns .pill { min-height: 54px; padding: 0 22px; font-size: 13px; letter-spacing: 0.1em; white-space: nowrap; }
.foot-rule { height: 1px; background: var(--sky); margin-top: 90px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 40px; padding-top: 36px; font-size: 15px; color: var(--grey); }
.foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: var(--navy); }
.foot-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-logos a { display: inline-flex; text-decoration: none; }
.foot-logos img { height: 40px; width: auto; }

@media (min-width: 901px) and (min-height: 720px) {
  .side { position: sticky; top: 120px; }
}
@media (max-width: 900px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid > .card-cta:nth-child(n) { grid-column: auto; }
  .bgrid > .card-cta:nth-child(2n+1) { grid-column: 1 / -1; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 30px; }
}
@media (max-width: 600px) {
  .head { padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 16px; }
  .brand img { width: 120px; }
  .head-contact { font-size: 13px; letter-spacing: 0.1em; }
  .page-head { padding-top: 130px; }
  .photo .inner { padding-top: 120px; }
  .bgrid { grid-template-columns: minmax(0, 1fr); }
  .card-text { min-height: 0; }
  .pnext { flex-direction: column; align-items: flex-start; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cols h2 { margin-bottom: 18px; }
  .foot-rule { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .head, .burger i, .burger i::after, .pill, .menu a, .card img, .next b, .card-text { transition: none; }
  .card:hover img { transform: none; }
}
/* Copy guard (a deterrent, not a lock): no text selection, no dragging or long-press saving of photos.
   Phone, email, address and form fields stay selectable so clients can still copy them. */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, a[href^="tel:"], a[href^="mailto:"], .copyable { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
