/* hilaitach.com, main site. One stylesheet for every page. */
:root {
  --paper: #F4F6F3;
  --paper-deep: #E6ECE7;
  --ink: #1D2723;
  --ink-soft: #4C5A54;
  --forest: #23463D;
  --forest-hover: #2E5A4F;
  --accent: #1F6F6C;
  --accent-soft: #DFEEEC;
  --line: rgba(29, 39, 35, .14);
  --serif: "Frank Ruhl Libre", "David", serif;
  --sans: "Assistant", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 74rem;
}

*, *::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(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.4rem; font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--forest); color: var(--paper); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* links and buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3.2rem; padding: .75rem 1.7rem;
  border-radius: 999px; border: 0; background: var(--forest); color: var(--paper);
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--forest-hover); }
.btn.light { background: var(--paper); color: var(--forest); }
.btn.light:hover { background: #fff; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.more {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--forest);
  text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.more:hover { color: var(--accent); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 246, 243, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.4rem; }
.mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.mark b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.mark span { font-size: .85rem; color: var(--ink-soft); }
.nav { display: flex; gap: 1.8rem; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.top .btn { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: .98rem; }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: grid; }
.menu nav a { text-decoration: none; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav, .top .btn { display: none; }
  .menu { display: block; }
}

/* ---------- hero (home) ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(3.4rem, 8.5vw, 7rem); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.hero .role { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--accent); margin: 1.2rem 0 1.8rem; line-height: 1.4; }
.hero .lead { max-width: 33rem; margin-bottom: 2.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.portrait { position: relative; margin: 0; max-width: 26rem; justify-self: end; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 0; transform: translate(-1.1rem, 1.1rem);
  border: 1px solid var(--accent); border-radius: 2px; pointer-events: none;
}
.portrait img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 17rem; justify-self: start; }
}

/* ---------- her words ---------- */
.words { background: var(--forest); color: var(--paper); }
.words blockquote { margin: 0 auto; max-width: 52rem; text-align: center; }
.words blockquote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.35; }
.words cite { display: block; margin-top: 1.6rem; font-style: normal; color: #BFD2C8; font-size: 1rem; }

/* ---------- about (home) ---------- */
.story .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story h2 { position: sticky; top: 6.5rem; }
.story .body { max-width: 36rem; }
.story .body p { font-size: 1.2rem; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; } .story h2 { position: static; } }

/* ---------- approach ---------- */
.approach { background: var(--paper-deep); }
.approach .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.approach figure { margin: 0; }
.approach figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px 2px 2px 160px; }
.approach h2 { margin-bottom: 2rem; }
.principles { margin: 0; }
.principles div { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.principles div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--forest); }
.principles dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .approach .wrap { grid-template-columns: 1fr; }
  .approach figure img { aspect-ratio: 4 / 3; border-radius: 2px 2px 2px 90px; }
  .principles div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- who ---------- */
.who h2 { margin-bottom: 2.4rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.people li { padding: 1.6rem 1.2rem 1.6rem 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.3; border-bottom: 1px solid var(--line); }
.people li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 1.2rem; }
.research { margin-top: 2.6rem; max-width: 40rem; padding: 1.4rem 1.6rem; border-radius: 14px; background: var(--accent-soft); }
.research strong { color: var(--accent); }
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr 1fr; }
  .people li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- articles ---------- */
.articles-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.6rem; }
.articles-head p { margin: .8rem 0 0; color: var(--ink-soft); max-width: 34rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 1.1rem; transition: opacity .2s ease; }
.card:hover img { opacity: .88; }
.card .meta { font-size: .92rem; color: var(--ink-soft); margin-bottom: .4rem; }
.card .meta .cat { color: var(--accent); font-weight: 600; }
.card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: .6rem; }
.card:hover h3 { color: var(--forest); }
.card p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- workshop ---------- */
.workshop .wrap { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 22px; overflow: hidden; background: #0E3A42; color: #F2F7F5; }
.workshop img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; object-position: 20% 50%; }
.workshop .text { padding: clamp(2rem, 5vw, 3.6rem); align-self: center; }
.workshop .kicker { color: #F0C766; font-weight: 600; margin-bottom: .6rem; }
.workshop h2 { margin-bottom: 1rem; }
.workshop p { color: #B9D3D2; }
.workshop .btn { margin-top: 1.6rem; background: #F0C766; color: #072127; }
.workshop .btn:hover { background: #F6D484; }
@media (max-width: 860px) { .workshop .wrap { grid-template-columns: 1fr; } .workshop img { min-height: 14rem; max-height: 18rem; } }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }
.contact .lead { margin: 1.2rem auto 2.2rem; max-width: 32rem; }
.contact .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact .btn.outline { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.contact .btn.outline:hover { background: var(--paper-deep); }
.social { display: flex; justify-content: center; gap: 1.6rem; margin-top: 2.4rem; }
.social a { text-decoration: none; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.social a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; color: var(--ink-soft); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot b { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.1rem; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--accent); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 300; letter-spacing: -.015em; }
.page-head .lead { margin-top: 1.2rem; max-width: 38rem; }

.essay { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: clamp(4rem, 9vw, 7rem); }
.essay aside { position: sticky; top: 6.5rem; }
.essay aside img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; margin-bottom: 1.2rem; }
.essay aside ul { list-style: none; padding: 0; margin: 0; font-size: .98rem; color: var(--ink-soft); }
.essay aside li { padding: .55rem 0; border-top: 1px solid var(--line); }
.essay .body { max-width: 38rem; }
.essay .body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; }
.essay .body h2:first-child { margin-top: 0; }
.essay .body p { font-size: 1.2rem; }
.essay .body .pull { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.4; color: var(--forest); border-inline-start: 2px solid var(--accent); padding-inline-start: 1.4rem; margin: 2.4rem 0; }
@media (max-width: 860px) {
  .essay { grid-template-columns: 1fr; }
  .essay aside { position: static; display: grid; grid-template-columns: 7rem 1fr; gap: 1.2rem; align-items: center; }
  .essay aside img { margin: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.6rem; }
.filters button {
  font: 600 .98rem var(--sans); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.list { display: grid; gap: 0; padding-bottom: clamp(4rem, 9vw, 7rem); }
.row { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(1.4rem, 4vw, 3rem); padding: 2rem 0; border-top: 1px solid var(--line); text-decoration: none; align-items: center; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.row .meta { font-size: .95rem; color: var(--ink-soft); margin-bottom: .4rem; }
.row .meta .cat { color: var(--accent); font-weight: 600; }
.row h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.row:hover h2 { color: var(--forest); }
.row p { color: var(--ink-soft); max-width: 40rem; }
.row .more { margin-top: .9rem; }
.row[hidden] { display: none; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

/* meta lines: category, date, reading time, separated by a hairline */
.meta span + span::before { content: ""; display: inline-block; width: 1px; height: .85em; background: var(--line); margin-inline: .65rem; vertical-align: -.05em; }


/* ---------- her logo ---------- */
.mark { flex-direction: row; align-items: center; gap: .7rem; }
.mark-logo { width: 3.1rem; height: auto; }
.mark-text { display: flex; flex-direction: column; line-height: 1.1; }
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand img { width: 5.5rem; height: auto; }

/* ---------- one article ---------- */
.post-head { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 4.5rem) 2rem; }
.back { display: inline-block; margin-bottom: 1.6rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.back::before { content: "\2192"; margin-inline-end: .45rem; }
.back:hover { color: var(--accent); }
.post-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 300; letter-spacing: -.012em; margin: .4rem 0 1.2rem; }
.standfirst { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.55; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; font-weight: 600; line-height: 1.3; }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.byline small { font-weight: 400; color: var(--ink-soft); }
.post-cover { max-width: 58rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.prose { max-width: 40rem; padding-bottom: clamp(3rem, 7vw, 5rem); font-family: var(--serif); font-size: 1.3rem; line-height: 1.85; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: 1.4rem; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 2rem 0; padding-inline-start: 1.4rem; border-inline-start: 2px solid var(--accent); color: var(--forest); font-size: 1.45rem; }
.prose a { color: var(--accent); }
.prose img { margin: 2rem 0; border-radius: 2px; }
.soon-note { font-family: var(--sans); font-size: 1.1rem; padding: 1.6rem 1.8rem; border-radius: 14px; background: var(--accent-soft); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 58rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { color: var(--ink-soft); font-weight: 600; }
.post-nav span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.post-nav .older { grid-column: 2; text-align: left; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } .post-nav .older { grid-column: 1; text-align: right; } }
