/* jjharding.uk, v2: slate, mist and one green that means "accepted" */
:root {
  --slate: #1f2b33;
  --slate-2: #2a3943;
  --mist: #f5f6f4;
  --white: #ffffff;
  --rule: #d6dad7;
  --graphite: #5b666d;
  --on-slate: #e9edeb;
  --on-slate-2: #a9b5b9;
  --green: #2f6b4f;
  --green-soft: #e4eee8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --text: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--slate); font: 400 17px/1.7 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: .55em; }
h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--text); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* Header sits on the slate hero */
.site-header { background: var(--slate); color: var(--on-slate); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 76px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--white); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: .95rem; }
.nav a { color: var(--on-slate-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--on-slate-2); }

/* Home hero */
.hero { background: var(--slate); color: var(--on-slate); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.hero-text { padding: 72px 0 88px; }
.hero h1 { font-size: clamp(3.4rem, 8.5vw, 6.6rem); line-height: .95; color: var(--white); margin-bottom: 28px; letter-spacing: -0.025em; }
.identity { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; color: var(--white); max-width: 30ch; margin-bottom: 18px; }
.statement { color: var(--on-slate-2); max-width: 46ch; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.btn-primary { background: var(--white); color: var(--slate); }
.btn-primary:hover { background: var(--green-soft); color: var(--slate); }
.btn-quiet { color: var(--white); border: 1px solid var(--on-slate-2); }
.btn-quiet:hover { border-color: var(--white); color: var(--white); }
.hero figure { margin: 0; align-self: end; }
.hero figure img { width: 100%; max-width: 440px; margin-left: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
.about p { font-size: 1.08rem; }
.glance { font-size: .95rem; padding-top: 8px; }
.glance dl { margin: 0; }
.glance dt { color: var(--graphite); font-size: .85rem; margin-top: 18px; }
.glance dt:first-child { margin-top: 0; }
.glance dd { margin: 2px 0 0; font-weight: 500; }

/* Dragons' Den ledger: the one bold element */
.den { background: var(--white); }
.den .lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.25; max-width: 30ch; margin-bottom: 40px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger caption { text-align: left; color: var(--graphite); font-size: .9rem; padding-bottom: 12px; }
.ledger th { text-align: left; font-weight: 500; color: var(--graphite); font-size: .85rem; padding: 0 16px 10px 0; border-bottom: 1px solid var(--slate); }
.ledger td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ledger .who { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.ledger .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .bar { width: 40%; }
.ledger .bar span { display: block; height: 10px; background: var(--slate); border-radius: 0 2px 2px 0; }
.ledger .status { white-space: nowrap; text-align: right; padding-right: 0; color: var(--graphite); font-size: .9rem; }
.ledger tr.won td { background: var(--green-soft); }
.ledger tr.won td:first-child { box-shadow: inset 4px 0 0 var(--green); padding-left: 16px; }
.ledger tr.won .bar span { background: var(--green); }
.ledger tr.won .status { color: var(--green); font-weight: 600; padding-right: 12px; }
.ledger tr.ask td { color: var(--graphite); font-size: .92rem; }
.ledger tr.ask .who { font-size: 1.05rem; }
.ledger tr.ask .bar span { background: transparent; border: 1px dashed var(--graphite); }
.den .close { margin-top: 32px; max-width: 56ch; font-size: 1.08rem; }
.den-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }

/* Ventures and press */
.ventures { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.ventures h3 a { color: inherit; text-decoration: none; }
.ventures h3 a:hover { text-decoration: underline; }
.ventures .role { color: var(--graphite); font-size: .95rem; margin-bottom: 8px; }
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.press-list .outlet { font-weight: 600; }
.press-list a { font-family: var(--serif); font-size: 1.15rem; color: var(--slate); }
.press-list a:hover { color: var(--green); }
.press-list .when { display: block; color: var(--graphite); font-size: .88rem; font-weight: 400; }

/* Contact band */
.contact { background: var(--slate); color: var(--on-slate); }
.contact h2 { color: var(--white); }
.contact p { color: var(--on-slate-2); max-width: 52ch; }
.contact .mail { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--white); text-decoration: none; border-bottom: 1px solid var(--on-slate-2); overflow-wrap: anywhere; }
.contact .mail:hover { border-color: var(--white); }
.contact a { color: var(--white); }

/* Video, loads YouTube only on click */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--slate); overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; }
.video button:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--slate); font: 600 .9rem var(--sans); padding: 10px 16px 10px 14px; border-radius: 3px; }
.video .play::before { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--slate); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure { margin: 0; }
figcaption { color: var(--graphite); font-size: .88rem; margin-top: 10px; }

/* Inner pages */
.page-head { background: var(--slate); color: var(--on-slate); padding: 56px 0 72px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: var(--white); margin-bottom: 22px; }
.page-head .identity { margin-bottom: 0; max-width: 40ch; }
.crumbs { font-size: .85rem; color: var(--on-slate-2); margin-bottom: 26px; }
.crumbs a { color: var(--on-slate-2); }
.article { padding: 72px 0 96px; }
.article h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.8em; }
.article .measure > h2:first-child { margin-top: 0; }
.article figure { margin: 40px 0; }
.article .wide { max-width: 900px; }
.article ul { padding-left: 1.2em; }
.quote { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; margin: 36px 0; padding-left: 22px; border-left: 3px solid var(--green); max-width: 34ch; }
.quote cite { display: block; font: 400 .9rem var(--sans); color: var(--graphite); margin-top: 10px; font-style: normal; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 36px 0; padding: 28px 0; border-top: 1px solid var(--slate); border-bottom: 1px solid var(--rule); }
.figures strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; }
.figures span { color: var(--graphite); font-size: .92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.gallery .landscape { grid-column: span 2; }
.gallery .landscape img { aspect-ratio: 16 / 10; }

/* Press kit */
.bio { background: var(--white); border-top: 3px solid var(--slate); padding: 26px 28px 10px; margin-bottom: 24px; }
.bio h3 { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--graphite); margin-bottom: 10px; letter-spacing: 0; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.facts th { width: 34%; font-weight: 500; color: var(--graphite); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.downloads img { background: var(--white); }

/* Links page */
.links-page { min-height: 100vh; background: var(--slate); color: var(--on-slate); padding: 64px 20px; }
.links-page .inner { max-width: 460px; margin: 0 auto; text-align: center; }
.links-page img { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; margin: 0 auto 22px; }
.links-page h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 10px; }
.links-page p { color: var(--on-slate-2); margin-bottom: 30px; }
.links-page ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links-page li a { display: block; padding: 15px 18px; border: 1px solid var(--slate-2); background: var(--slate-2); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 3px; }
.links-page li a:hover { border-color: var(--on-slate-2); }
.links-page .home-link { display: inline-block; margin-top: 30px; color: var(--on-slate-2); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--slate); color: var(--on-slate-2); border-top: 1px solid var(--slate-2); padding: 40px 0 48px; font-size: .88rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.site-footer a { color: var(--on-slate); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer .official { max-width: 60ch; margin: 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding: 48px 0 32px; }
  .hero figure img { max-width: 340px; margin: 0 auto; }
  .about .wrap, .den-grid, .ventures { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
  .press-list li { grid-template-columns: 1fr; gap: 4px; }
  .ledger .bar { display: none; }
  .ledger .who { font-size: 1.1rem; }
  .figures { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .ledger td { padding-right: 10px; }
  .ledger .status { font-size: .8rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .landscape { grid-column: auto; }
}

/* Keep the offers readable within narrow mobile screens. */
@media (max-width: 480px) {
  .ledger .who, .ledger .amt, .ledger .status { white-space: normal; }
}

/* Draft visual refinement: preserve content and desktop identity. */
:root { --on-slate-2: #c2cccf; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
h1, h2, .identity { text-wrap: balance; }
.menu-toggle { display: none; }
.section { padding: 80px 0; }
.den-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.den-grid > figure { padding-top: 38px; }
.video .play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); white-space: nowrap; padding: 14px 20px; box-shadow: 0 3px 20px #0003; }
.video button:focus-visible { outline: 3px solid white; outline-offset: -6px; }
.ventures-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.venture-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.ventures-layout .ventures { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; }
@media(max-width: 900px) {
 .den-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .den-grid > figure { padding-top: 0; }
 .section { padding: 56px 0; }
 .ventures-layout { gap: 28px; }
}
@media(max-width: 600px) {
 .site-header .wrap { min-height: 64px; gap: 0; }
 .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; background: transparent; border: 1px solid #c2cccf66; border-radius: 3px; color: white; cursor: pointer; }
 .menu-toggle span { height: 1px; width: 100%; background: currentColor; }
 .nav { display: none; width: 100%; padding: 8px 0 18px; gap: 0; }
 .nav.is-open { display: flex; flex-direction: column; }
 .nav a { padding: 10px 0; }
 .hero-text { padding: 30px 0 28px; }
 .hero h1 { margin-bottom: 20px; }
 .hero .actions { margin-top: 22px; }
 .hero figure img { max-width: none; width: 100%; height: 350px; object-fit: cover; object-position: center 25%; }
 .hero figure { margin-bottom: 0; }
 .ventures-layout { grid-template-columns: minmax(0,1fr); gap: 26px; }
 .venture-photo img { aspect-ratio: 16 / 10; }
 .ledger .who, .ledger .amt, .ledger .status { white-space: normal; }
}
