/* edhung.com, first draft, 13 October 2026.
   The cover is lit like a studio backdrop: deep warm grey behind the text, easing into Ed's own backdrop grey
   around the portrait. Below it, light and dark bands alternate for contrast: charcoal on white, Stone on deep grey.
   Approved by Ed: the cover (round 4), Stone headline with white smaller text (round 5), the Ed H logo from his signature. */
:root {
  --deep: #36312d;      /* cover shadow, dark bands */
  --mid: #5e5751;       /* the step between */
  --backdrop: #8d847d;  /* the grey of Ed's portrait backdrop */
  --stone: #e2d7c6;     /* the headline on dark grounds */
  --white: #ffffff;
  --paper: #ffffff;
  --mist: #f4f1ec;      /* a quiet light band */
  --ink: #221e1b;       /* text on light grounds, deep charcoal rather than black */
  --soft: #463f3a;
  --label: #5f5751;
  --umber: #7a5f4b;     /* the title of Ed's note, his choice of 14 October 2026 */
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* The logo: Ed H, cut from his signature, used as a mask so it takes the colour of the text around it */
.logo { display: inline-block; height: 44px; aspect-ratio: 1220 / 484; background: currentColor; text-indent: -9999px; overflow: hidden;
  -webkit-mask: url("assets/ed-h-small.webp") center / contain no-repeat; mask: url("assets/ed-h-small.webp") center / contain no-repeat; }
.signature { display: inline-block; height: 78px; aspect-ratio: 1982 / 532; background: currentColor;
  -webkit-mask: url("assets/signature.webp") center / contain no-repeat; mask: url("assets/signature.webp") center / contain no-repeat; }

/* Navigation */
.nav { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding-block: 22px; color: var(--white); }
.nav .links { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.nav .links a { text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav .links a:hover { border-bottom-color: currentColor; }

/* Cover */
.cover { position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(90deg, var(--deep) 0%, var(--deep) 30%, var(--mid) 48%, var(--backdrop) 64%, var(--backdrop) 100%); }
.cover .portrait { position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, transparent 0%, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, transparent 0%, #000 7%);
  mask-composite: intersect; }
.cover .inner { position: relative; z-index: 1; min-height: min(760px, 92vh); display: grid; grid-template-rows: auto 1fr; }
.cover .copy { align-self: end; max-width: 54%; padding-block: 48px 88px; display: grid; gap: 26px; }
.eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0; }
.cover h1 { margin: 0; color: var(--stone); font: 500 clamp(38px, 5.4vw, 70px)/1.04 var(--serif); letter-spacing: -.015em; text-wrap: balance; font-variation-settings: "opsz" 36; }
.cover .cred { margin: 0; font-size: 15px; font-weight: 500; max-width: 52ch; border-top: 1px solid rgba(255,255,255,.45); padding-top: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .04em; padding: 14px 24px; border: 1.5px solid currentColor; text-decoration: none; }
.cover .btn { color: var(--stone); }
.cover .btn.solid { background: var(--stone); color: var(--deep); border-color: var(--stone); }
.light .btn.solid, .mist .btn.solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dark .btn.solid { background: var(--stone); color: var(--deep); border-color: var(--stone); }

/* Bands */
.band { padding-block: clamp(64px, 9vw, 112px); }
.light { background: var(--paper); color: var(--ink); }
.mist { background: var(--mist); color: var(--ink); }
.dark { background: var(--deep); color: var(--white); }
.band h2 { margin: 0; font: italic 500 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; max-width: 26ch; font-variation-settings: "opsz" 28; }
.dark h2 { color: var(--stone); }
.label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--label); margin: 0; }
.dark .label { color: var(--stone); opacity: .85; }
.band p { margin: 0; max-width: 62ch; }
.light p, .mist p { color: var(--soft); }
.dark p { color: #ece6dc; }
.stack { display: grid; gap: 22px; }

/* Missions */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 2px solid var(--ink); padding-top: 26px; margin-top: 36px; }
.lead > div, .card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.lead .name { font: 600 clamp(36px, 4vw, 48px)/1.05 var(--serif); font-variation-settings: "opsz" 30; }
.biz-logo { display: block; height: 56px; width: auto; max-width: 100%; }
.lead-logo { height: clamp(56px, 6vw, 76px); margin-top: 4px; }
.card-logo { height: 40px; margin-block: 6px 4px; }
.card-logo.wordmark { height: 27px; margin-block: 12px 11px; }
.band .practice { margin-top: 44px; }  /* .band p sets margin: 0, so this needs the same weight */
.cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); margin-top: 14px; }
.card { padding: 24px 32px 4px 0; }
.card + .card { padding-left: 32px; border-left: 1px solid rgba(34,30,27,.3); }
.card .name { font: 600 30px/1.1 var(--serif); }
.go { font-size: 14px; font-weight: 600; text-underline-offset: 5px; }

/* The note */
.note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.note .letter { display: grid; gap: 20px; }
.note .letter h2 { color: var(--umber); }
.note .opening { font: 500 clamp(22px, 2.2vw, 27px)/1.4 var(--serif); color: var(--ink) !important; max-width: 34ch; font-variation-settings: "opsz" 24; }
.note .sign { display: grid; gap: 8px; justify-items: start; margin-top: 10px; color: var(--ink); }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts h3 { margin: 18px 0 8px; font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid rgba(34,30,27,.18); font-size: 15px; color: var(--soft); }

/* Gaps Ed fills: visible on the draft, never shipped */
.todo { border: 1.5px dashed #b4552d; background: rgba(180,85,45,.07); color: #7c3a1e !important; padding: 14px 16px; font-size: 15px; font-style: normal; }
.todo b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.dark .todo { color: #f3c6b0 !important; border-color: #e0906a; background: rgba(224,144,106,.1); }

/* The Fifth Elevation */
.fifth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.fifth svg { width: 100%; height: auto; max-height: 560px; }

/* Writing */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid var(--ink); }
.article { padding: 24px 28px 8px 0; display: grid; gap: 10px; align-content: start; text-decoration: none; min-width: 0; }
.article + .article { padding-left: 28px; border-left: 1px solid rgba(34,30,27,.25); }
.article .t { font: 600 24px/1.15 var(--serif); }
.article .s { font-size: 15px; color: var(--soft); }
.article .more { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.article:hover .t { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; font-weight: 600; font-size: 15px; }

/* Work with me, speaking */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.topics { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.topics li { padding: 18px 0; border-bottom: 1px solid rgba(34,30,27,.2); display: grid; gap: 4px; }
.topics .t { font: 600 22px/1.2 var(--serif); color: var(--ink); }
.topics .d { font-size: 15px; color: var(--soft); }

/* Contact and footer */
.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; border-top: 1px solid rgba(226,215,198,.45); padding-top: 26px; }
.contact div { display: grid; gap: 6px; min-width: 0; }
.contact a, .contact span.v { font-size: 16px; font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.footer { background: var(--deep); color: #d9d1c4; border-top: 1px solid rgba(226,215,198,.25); padding-block: 36px 44px; }
.footer .line { font: italic 500 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); color: var(--stone); margin: 0 0 22px; }
.footer .small { font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #bdb4a8; }

/* Press page */
.press-head { background: var(--deep); color: var(--white); }
.press-head .title { padding-block: 40px 72px; display: grid; gap: 18px; }
.press-head h1 { margin: 0; color: var(--stone); font: 500 clamp(40px, 5vw, 64px)/1.05 var(--serif); font-variation-settings: "opsz" 36; text-wrap: balance; }
.press-head p { margin: 0; max-width: 60ch; color: #ece6dc; }
.bio { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; }
.bio + .bio { margin-top: 40px; }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bio-head h3 { margin: 0; font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.copy-btn { font: 600 13px var(--sans); background: none; border: 1.5px solid var(--ink); color: var(--ink); padding: 7px 14px; cursor: pointer; }
.bio p { font-size: 17px; color: var(--ink); max-width: 68ch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid rgba(34,30,27,.18); }
.table th { width: 30%; font-weight: 600; color: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.photo { display: grid; gap: 10px; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: var(--backdrop); }
.photo a { font-size: 14px; font-weight: 600; }
.credit { margin-top: 20px !important; font-size: 14px; color: var(--soft); }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.marks div { min-height: 160px; display: grid; place-items: center; }
.marks .on-dark { background: var(--deep); color: var(--white); }
.marks .on-light { background: var(--mist); color: var(--ink); }
.marks .logo { height: 72px; }

@media (max-width: 860px) {
  /* Phones, Ed 14 October 2026: the portrait comes first, under the logo and menu, fading into the deep grey above and below */
  .cover { display: flex; flex-direction: column; background: var(--deep); }
  .cover .inner { display: contents; }
  .cover .nav { order: 0; padding-inline: var(--gutter); }
  .cover .portrait { order: 1; position: relative; width: 100%; height: auto; max-height: 480px; object-fit: cover; object-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%); }
  .cover .copy { order: 2; max-width: none; padding: 0 var(--gutter) 48px; margin-top: -24px; position: relative; }
  .lead, .cards, .note, .fifth, .split, .articles, .photos, .marks { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card, .article, .article + .article { padding: 22px 0 6px; border-left: 0; }
  .card + .card, .article + .article { border-top: 1px solid rgba(34,30,27,.25); }
  .contact { grid-template-columns: 1fr 1fr; }
  .nav .links { gap: 6px 18px; font-size: 13px; }
}
@media (max-width: 480px) { .contact { grid-template-columns: 1fr; } .logo { height: 38px; } }
