/* MycoMinds */
:root {
  --paper: #faf9f6;
  --ink: #161616;
  --grey: #5f5e5a;
  --light: #8c8a84;
  --rule: #dcd9d1;
  --green: #3f7a1f;
  --logo-green: #78b843;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --side: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 500; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 20px; flex-wrap: wrap; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font: 500 15px/1 var(--sans); flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--logo-green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav { gap: 10px 20px; }
}

/* page intro */
.intro { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.intro h1 {
  font: 500 clamp(40px, 6.2vw, 78px)/1.04 var(--serif);
  letter-spacing: -.02em; max-width: 15ch;
}
.intro .standfirst { margin-top: 36px; max-width: 34em; font-size: clamp(20px, 2vw, 23px); line-height: 1.5; color: #2b2b29; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 40px; font: 400 15px/1.4 var(--sans); color: var(--grey); }
.byline img { width: 52px; height: 52px; border-radius: 50%; filter: grayscale(1); }
.byline strong { color: var(--ink); font-weight: 600; display: block; }

/* sections: label in the margin, content on the right */
.section { border-top: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0; }
.section > .wrap { display: grid; grid-template-columns: 3fr 9fr; gap: 24px 40px; }
.label { font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); padding-top: 6px; }
.body { max-width: 44em; }
.body h2 { font: 500 clamp(28px, 3.2vw, 38px)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 20px; }
.body h3 { font: 600 17px/1.35 var(--sans); margin-bottom: 6px; }
.body .wide { max-width: none; }
@media (max-width: 760px) { .section > .wrap { grid-template-columns: 1fr; } }

/* two offers side by side */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.two > div { padding: 28px 32px 8px 0; }
.two > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.two h2 { font: 500 clamp(26px, 2.6vw, 32px)/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 14px; }
.two p { font-size: 18px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .two > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

.more { font: 500 15px/1.4 var(--sans); }

/* plain lists */
.dash { list-style: none; margin: 0; padding: 0; }
.dash li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .45em; }
.dash li::before { content: "–\00a0\00a0"; color: var(--light); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols h3 { margin-bottom: 12px; }
.cols .dash { font-size: 17px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 28px; } }

/* schedule table */
.schedule { width: 100%; border-collapse: collapse; font-size: 17px; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: 1px solid var(--rule); }
.schedule tr:first-child th, .schedule tr:first-child td { border-top: 1px solid var(--ink); }
.schedule th { font: 600 14px/1.5 var(--sans); white-space: nowrap; width: 8.5em; padding-top: 19px; }
.schedule td strong { font-weight: 600; }
@media (max-width: 600px) {
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: auto; }
  .schedule th { padding-bottom: 0; border-top: 1px solid var(--rule); }
  .schedule td { border-top: 0; padding-top: 6px; }
}

/* logos */
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; margin-top: 8px; }
.clients img { height: 26px; width: auto; filter: grayscale(1); opacity: .7; }
.clients img.sq { height: 38px; }

/* article list */
.articles { list-style: none; margin: 0; padding: 0; }
.articles li { border-top: 1px solid var(--rule); padding: 14px 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; }
.articles li:first-child { border-top: 0; padding-top: 0; }
.articles time { font: 400 14px/1.9 var(--sans); color: var(--grey); }
.articles a { text-decoration: none; }
.articles a:hover { text-decoration: underline; }
@media (max-width: 560px) { .articles li { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.email-big { font: 500 clamp(28px, 4vw, 44px)/1.2 var(--serif); letter-spacing: -.01em; }
.template { border: 1px solid var(--rule); background: #fff; margin: 18px 0 14px; }
.template-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--rule); font: 500 13px/1.4 var(--sans); color: var(--grey); }
.template pre { margin: 0; padding: 16px 18px; font: 400 14px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; color: #333; }
.copy { font: 500 13px/1 var(--sans); background: none; border: 0; padding: 4px 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy:hover { color: var(--green); }

/* buttons, used sparingly */
.button { display: inline-block; font: 600 16px/1 var(--sans); padding: 15px 22px; background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink); }
.button:hover { background: var(--paper); color: var(--ink); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* footer */
.site-footer { border-top: 1px solid var(--ink); margin-top: 40px; padding: 32px 0 48px; font: 400 15px/1.6 var(--sans); color: var(--grey); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

/* 404 */
.nf { padding: 120px 0; }

/* three offers on the home page */
.three { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.three > div { padding: 28px 28px 8px 0; }
.three > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.three h2 { font: 500 clamp(24px, 2.2vw, 29px)/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.three p { font-size: 17.5px; }
.when { font: 500 15px/1.45 var(--sans); color: var(--grey); margin-bottom: 14px; }
@media (max-width: 900px) {
  .three { grid-template-columns: 1fr; }
  .three > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.body strong { font-weight: 600; }

/* ---- second pass: a little more character ---- */
:root { --stone: #efece4; --forest: #1d2a1a; }

/* brand band across the top of every page */
body { border-top: 5px solid var(--logo-green); }

/* links carry the brand colour in their underline */
.body a, .standfirst a, .byline a, .more a { text-decoration-color: var(--logo-green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.body a:hover, .standfirst a:hover, .more a:hover { color: var(--green); }
.more a::after { content: " →"; }

/* section labels in deep green */
.label { color: var(--green); }

/* bigger, more assured headline on the home page */
.intro h1 { max-width: 16ch; }
.home .intro h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; }

/* each offer gets its own green rule */
.three { border-top: 0; gap: 0 40px; }
.three > div { border-top: 3px solid var(--logo-green); padding: 26px 0 8px; }
.three > div + div { border-left: 0; padding-left: 0; }
@media (max-width: 900px) { .three { gap: 36px; } .three > div + div { border-top: 3px solid var(--logo-green); } }

/* pull quote */
.pull { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.pull blockquote { margin: 0; max-width: 21em; padding-left: clamp(20px, 3vw, 36px); border-left: 3px solid var(--logo-green);
  font: 400 clamp(28px, 3.6vw, 46px)/1.22 var(--serif); letter-spacing: -.015em; font-style: italic; }
.pull cite { display: block; margin-top: 22px; font: 600 13px/1.4 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }

/* tinted band for alternating rhythm */
.section.tint { background: var(--stone); border-top-color: transparent; }
.section.tint + .section { border-top-color: transparent; }
.tint .clients img { opacity: .8; }

/* timeline days in green */
.schedule th { color: var(--green); }

/* drop cap on the about page */
.dropcap::first-letter { float: left; font: 500 4.1em/.82 var(--serif); margin: .08em .1em 0 0; color: var(--green); }

/* buttons: green on hover */
.button:hover { background: var(--logo-green); border-color: var(--logo-green); color: var(--ink); }
.button.secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* dark footer with a proper sign-off */
.site-footer { background: var(--forest); color: #b9c2b4; border-top: 0; margin-top: 0; padding: clamp(56px, 8vw, 96px) 0 40px; }
.site-footer .wrap { display: block; }
.foot-lead { font: 400 17px/1.5 var(--sans); color: #b9c2b4; margin-bottom: 14px; }
.foot-email { font: 500 clamp(32px, 5.4vw, 64px)/1.05 var(--serif); letter-spacing: -.02em; color: #fff; text-decoration: none; }
.foot-email:hover { color: var(--logo-green); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 80px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font: 400 14px/1.6 var(--sans); }
.foot-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #e6ebe3; text-decoration: none; }
.site-footer .foot-bottom a:hover { color: var(--logo-green); }

/* ---- footer: LinkedIn first, email small ---- */
.foot-title { font: 500 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.015em; color: #fff; margin-bottom: 14px; }
.foot-lead { font: 400 17px/1.6 var(--sans); max-width: 36em; margin-bottom: 26px; }
.foot-lead a { color: #fff; text-decoration: underline; text-decoration-color: var(--logo-green); text-underline-offset: 3px; }
.site-footer .foot-li { background: var(--logo-green); border-color: var(--logo-green); color: var(--forest); }
.site-footer .foot-li:hover { background: #fff; border-color: #fff; color: var(--forest); }

/* ---- article cards ---- */
.article-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 28px; }
.article-card a { display: block; text-decoration: none; color: var(--ink); }
.thumb { position: relative; aspect-ratio: 16 / 10; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .25s ease; }
.article-card a:hover .thumb { transform: translateY(-3px); }
.thumb-pub { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.thumb-topic { font: 400 clamp(26px, 2.4vw, 32px)/1.05 var(--serif); font-style: italic; letter-spacing: -.01em; max-width: 80%; }
.thumb-year { position: absolute; right: 16px; bottom: 12px; font: 500 13px/1 var(--sans); opacity: .7; }
.thumb::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid currentColor; opacity: .18; }
.t-forest { background: var(--forest); color: #e8eee4; }
.t-forest .thumb-pub { color: var(--logo-green); }
.t-stone { background: var(--stone); color: var(--ink); }
.t-stone .thumb-pub { color: var(--green); }
.t-green { background: var(--logo-green); color: var(--forest); }
.t-ink { background: var(--ink); color: #f1f0ec; }
.t-ink .thumb-pub { color: var(--logo-green); }
.article-card h3 { font: 500 19px/1.3 var(--serif); margin: 14px 0 8px; letter-spacing: -.005em; }
.article-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--logo-green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-meta { font: 400 13.5px/1.4 var(--sans); color: var(--grey); margin: 0; }

/* ---- contact form ---- */
.form-q { font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.tabs [role="tab"] { font: 500 16px/1 var(--sans); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 14px 18px 13px; cursor: pointer; color: var(--grey); }
.tabs [role="tab"]:first-child { padding-left: 0; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--logo-green); font-weight: 600; }
.panel { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.panel-intro { color: var(--grey); font-size: 17px; margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 8px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } .tabs [role="tab"] { padding: 12px 12px 11px; } .tabs [role="tab"]:first-child { padding-left: 0; } }
.field { margin: 0 0 20px; }
.field label, .field legend { display: block; font: 600 15px/1.4 var(--sans); margin-bottom: 6px; padding: 0; }
.field .hint { display: block; font: 400 14px/1.4 var(--sans); color: var(--grey); margin: -2px 0 8px; }
.req { color: var(--green); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select {
  width: 100%; font: 400 17px/1.5 var(--serif); color: var(--ink); background: #fff;
  border: 1px solid #cfccc3; border-radius: 0; padding: 11px 13px; -webkit-appearance: none; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(120,184,67,.35); }
.checks { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font: 400 16px/1.4 var(--sans); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.discreet { font: 400 15px/1.5 var(--sans); color: var(--grey); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .button { cursor: pointer; }
.form-actions .button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font: 400 15px/1.5 var(--sans); color: var(--grey); }
.form-status.error { color: #9a2c1c; }
.form-sent { border-left: 3px solid var(--logo-green); padding: 8px 0 8px 24px; }
.form-sent h2 { font: 500 clamp(26px, 3vw, 34px)/1.2 var(--serif); margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.body.wide { max-width: none; }
.form-section .body.wide { max-width: 760px; }

.tab-intro { color: var(--grey); font-size: 17px; margin: -14px 0 26px; }
.panel { margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--rule); }

/* LinkedIn button with logo */
.site-footer .foot-li { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px 15px 20px; font-size: 17px; }
.li-icon { flex: none; }
.foot-li-note { font: 400 14px/1.4 var(--sans); color: #9aa595; margin: 12px 0 0; }

/* ---- alignment fixes ---- */
/* LinkedIn icon sized to the text (cap height 12px at 17px), not towering over it */
.site-footer .foot-li { gap: 10px; }
.li-icon { width: 17px; height: 17px; }

/* checkboxes: same edge, border and height language as the other fields */
.checks legend { padding-bottom: 10px; margin-bottom: 0; }
.check-row { gap: 12px 28px; }
.check { gap: 10px; line-height: 20px; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 20px; height: 20px; border: 1px solid #cfccc3; background: #fff;
  display: grid; place-content: center; cursor: pointer;
}
.check input::before {
  content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::before { transform: scale(1); }
.check input:hover { border-color: var(--ink); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(120,184,67,.35); border-color: var(--ink); }

/* the select's placeholder and value sit on the same baseline as text inputs */
.field select { line-height: 1.5; height: 50px; color: var(--ink); }
.field select:invalid, .field select option[value=""] { color: var(--grey); }
.field .check { display: inline-flex; align-items: center; margin: 0; font: 400 16px/20px var(--sans); }

.form-detail { display: block; margin-top: 6px; font-size: 13.5px; color: var(--grey); }
.form-status.fallback { color: var(--ink); background: var(--stone); border-left: 3px solid var(--logo-green); padding: 14px 18px; flex-basis: 100%; }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fallback-actions .button { font-size: 15px; padding: 12px 18px; }
