/* Self-hosted, subset to Latin. No third-party request, so nothing
   outside this server can delay the first paint. */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }

/* joanneho.com — shared styles
   Colours take their lead from the JOHO logo (#2CD59F). */

:root {
  --paper: #F6F8F6;
  --surface: #FFFFFF;
  --ink: #15201B;
  --muted: #56625C;
  --line: #DDE3DF;
  --green: #2CD59F;        /* logo green: fills, highlights */
  --green-ink: #0B7453;    /* readable green for links and text */
  --green-soft: #DDF7EC;
  --panel: #E3EAE4;        /* selected-work blocks */

  --sans: "Onest", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1080px;
  --text: 64ch;
}

/* Light is the default. Dark only applies when the visitor picks it
   (the toggle in the header sets data-theme on <html>). */
:root[data-theme="dark"] {
  --paper: #0F1512;
  --surface: #161E1A;
  --ink: #E6EDE9;
  --muted: #9BA8A1;
  --line: #26312B;
  --green-ink: #5FE3B7;
  --green-soft: #173529;
  --panel: #1C2621;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0; }

.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.logo img { width: 38px; height: 38px; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.nav a:hover { color: var(--green-ink); }
.nav a[aria-current="page"] { color: var(--green-ink); font-weight: 600; }
.nav .hello {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 14px;
  border-radius: 999px;
}
.nav .hello:hover { background: var(--green-ink); color: var(--paper); }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--green-ink); border-color: var(--green-ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Sections */
main section { padding-block: 72px; border-top: 1px solid var(--line); }
main section:first-child { border-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: var(--text); }
.lead { font-size: 21px; color: var(--muted); max-width: var(--text); }
.prose { max-width: var(--text); display: flex; flex-direction: column; gap: 18px; }

/* Hero */
.hero { padding-block: 72px 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.18; max-width: 24ch; }

/* About */
.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.about-meta { color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
/* Hard breaks that tidy the rag on wide screens only - phones wrap naturally */
@media (max-width: 860px) { br.wide-only { display: none; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
  font-weight: 500;
  margin-bottom: -6px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green-ink); text-decoration: none; }

/* Hero photo: organic blob, with a soft green blob behind it */
.photo { margin: 0; position: relative; justify-self: center; width: min(100%, 330px); }
.photo::before {
  content: "";
  position: absolute;
  inset: -12% -8% 8% 4%;
  background: var(--green-soft);
  border-radius: 56% 44% 38% 62% / 48% 56% 44% 52%;
  z-index: 0;
}
.photo-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  background: var(--surface);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  display: grid;
  place-items: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* How we could work together */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card .icon { color: var(--ink); height: 48px; display: flex; align-items: flex-end; }
.offer-card .icon svg { width: 46px; height: auto; display: block; }
.offer-card h3 { font-size: 19px; }
.offer-card > p { color: var(--muted); font-size: 16px; }
.offer-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  color: var(--muted);
}
.offer-list li { padding-left: 14px; position: relative; }
.offer-list li::before { content: "\00b7"; position: absolute; left: 2px; }

/* Work: role entries */
.roles { display: flex; flex-direction: column; }
.role {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  padding-block: 46px;
  border-top: 1px solid var(--line);
}
.role:first-child { border-top: 0; padding-top: 6px; }
.role-meta { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.role-dates {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.role-title {
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.role-org {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-body { display: flex; flex-direction: column; gap: 16px; }
.role-body p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.role-points {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 62ch;
}
.role-points li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.role-points li::before {
  content: "\00b7";
  position: absolute;
  left: 6px;
  top: -0.15em;
  font-size: 1.35em;
  color: var(--muted);
}

/* Say hello */
/* Let's talk - a deliberately tall, centred closing section */
.hello-centre {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 36px;
  padding-block: 64px;
}
/* Same type as the hero h1, so the two big headings match. */
.hello-centre h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.hello-centre .contact-line { margin-top: 0; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-size: 18px;
  margin-top: 12px;
}
/* 44px tap targets - the two links are the whole point of the page */
.contact-line a { display: inline-block; padding-block: 11px; }

/* Stories (Work page) */
.stories { display: flex; flex-direction: column; }
.story {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.story:first-child { border-top: 0; padding-top: 0; }
.story .body { display: flex; flex-direction: column; gap: 12px; max-width: var(--text); }
.story .body p { color: var(--muted); }
.story.brewing .body p { font-style: italic; }

/* Notes list */
.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.note-list li:last-child { border-bottom: 1px solid var(--line); }
.note-list .title { font-weight: 600; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project p { color: var(--muted); font-size: 17px; }
.status {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status.progress { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }

/* Practice table */
.table-wrap { overflow-x: auto; max-width: 760px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Page intro (inner pages) */
.page-intro { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { font-size: clamp(40px, 6vw, 64px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green-ink); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 28px; height: 28px; }
.made { font-size: 15px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .hero-copy { align-items: center; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .photo::before { inset: -10% 0 8% 2%; }  /* keep the blob inside the viewport */
  .photo { width: min(100%, 340px); justify-self: center; }
  .offer { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 22px; padding-block: 36px; }
  .hello-centre { min-height: 56vh; padding-block: 48px; }
  .projects { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 18px; }
  main section { padding-block: 52px; }
  .nav { gap: 4px 14px; font-size: 15px; }
  .note-list li { grid-template-columns: 1fr; gap: 4px; }
}

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