/* ==========================================================================
   karin-lagziel.com — one design language for index.html and about.html
   (for-karin.html keeps its own inline styles, by the owner's choice)
   Direction: 3-work/now/karin-40/_process/2026-10-08-site-design-direction.md
   Built 2026-10-08; v2 same day: display font Frank Ruhl Libre -> Rubik.
   No JavaScript. RTL-first (logical properties only).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --bg: #f6f4ed;
  --surface: #fffdf8;
  --bg-alt: #eceee7;
  --ink: #1f2a2a;
  --muted: #5a6663;            /* 5.4:1 on --bg, 5.1:1 on --bg-alt */
  --pine: #223d3c;
  --pine-deep: #142b2b;
  --gold: #8f6334;             /* 4.77:1 on --bg, 5.16:1 on --surface */
  --gold-alt: #885d2f;         /* same gold, a touch deeper: 4.49 -> 4.9:1 on --bg-alt */
  --gold-light: #d9b98c;       /* on dark: 6.3:1 pine, 8.0:1 pine-deep */
  --on-dark: #fbfaf5;
  --on-dark-muted: #d8e4dc;
  --line: rgba(31, 42, 42, .12);

  /* shape */
  --radius: 22px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(20, 43, 43, .04), 0 12px 32px -12px rgba(20, 43, 43, .12);

  /* type */
  --display: Rubik, Heebo, Arial, sans-serif;
  --sans: Heebo, Arial, sans-serif;
  --fs-display: clamp(3.6rem, 8vw, 7.5rem);
  --fs-page: clamp(3.2rem, 7vw, 6.5rem);
  --fs-h2: clamp(2.6rem, 5vw, 4.75rem);
  --fs-h3: clamp(1.6rem, 2.4vw, 2rem);
  --fs-lead: clamp(1.12rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;        /* 17px */
  --fs-label: .9375rem;        /* nav, meta, small labels */
  --fs-overline: .8rem;

  /* rhythm and motion */
  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --pad-surface: clamp(1.5rem, 3vw, 2.5rem);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Keyboard focus: one gold ring everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.manifesto :focus-visible,
.about-close :focus-visible,
footer :focus-visible {
  outline-color: var(--gold-light);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 50;
  padding: .6rem 1.2rem;
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--pine);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.shell {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

/* ---------- 3. Type scale ---------- */
h1, h2, h3, p, figure, ul { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--gold);
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 0;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -.005em;
}

p { text-wrap: pretty; }

.overline {
  margin: 0 0 1.25rem;
  font: 600 var(--fs-overline)/1.4 var(--sans);
  letter-spacing: .06em;
  color: var(--gold);
}
.overline.light { color: var(--gold-light); }
.events .overline { color: var(--gold-alt); }

/* ---------- 4. Header: sticky, translucent material ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 237, .72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 2rem;
  min-height: var(--header-h);
}

.brand {
  font: 500 1.6rem/1 var(--display);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

.site-header nav {
  display: flex;
  gap: .15rem;
  min-width: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .85rem;
  border-radius: var(--pill);
  font-size: var(--fs-label);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease-out), transform .1s var(--ease-out);
}
.site-header nav a:active { transform: scale(.97); }

/* ---------- 5. Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.7rem;
  border-radius: var(--pill);
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none;
  transition: background-color .2s var(--ease-out), transform .1s var(--ease-out);
}
.button:active { transform: scale(.97); }

.button-dark { background: var(--pine); color: #fff; }
.button-light { background: var(--bg); color: var(--pine); }

.text-link,
.light-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .1s var(--ease-out);
}
.text-link { color: var(--pine); }
.light-link { color: var(--gold-light); margin-top: .5rem; }

.text-link span,
.light-link span { transition: transform .25s var(--ease-out); }
.text-link:active,
.light-link:active { transform: scale(.97); }

/* ---------- 6. Surfaces: one shape for every card and list ---------- */
.practice article,
.event-list,
.project-links,
.story-steps .shell,
.about-side {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 7. Home ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--space-section);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 2rem;
}

.hero-intro {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: var(--fs-lead);
  line-height: 1.8;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.hero-portrait {
  width: 100%;
  max-width: 520px;
  margin: 0;
  justify-self: center;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(.9);
}
.hero-portrait figcaption {
  padding-top: .85rem;
  font-size: .875rem;
  color: var(--muted);
  text-align: end;
}

/* Manifesto: full pine section */
.manifesto {
  background: var(--pine);
  color: var(--on-dark);
  padding-block: var(--space-section);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.manifesto-copy { padding-top: 2.4rem; }
.manifesto-copy p {
  max-width: 34rem;
  margin-bottom: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
}

/* Practice: three identical surfaces */
.practice { padding-block: var(--space-section); }

.section-heading { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-heading h2 { margin: 0; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.practice article { padding: var(--pad-surface); }
.index {
  font: 500 1.75rem/1 var(--display);
  color: var(--gold);
}
.practice h3 { margin: 3rem 0 .75rem; }
.practice p { margin: 0; color: var(--muted); }

/* Events: one grouped surface on the secondary background */
.events {
  background: var(--bg-alt);
  padding-block: var(--space-section);
}
.events-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.events-heading > p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
}

.event-list { padding-inline: var(--pad-surface); }

.event {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.6rem;
}
.event + .event { border-top: 1px solid var(--line); }

/* Date block: numeral-first and month-first sit on the same line */
.date {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 3.4rem;
  color: var(--pine);
}
.date strong {
  font: 500 3.25rem/1 var(--display);
  font-variant-numeric: lining-nums;
}
.date span {
  font-size: .875rem;
  line-height: 1.35;
  color: var(--muted);
}
.date-month strong { font-size: 2rem; }
.date-month span { font-size: 1.05rem; color: var(--pine); font-weight: 500; }

.event-info h3 { margin: 0 0 .2rem; }
/* An English title keeps dir="ltr" for correct letter order, but lines up with the Hebrew titles */
.event-info h3[dir="ltr"] { text-align: right; text-align: match-parent; }
.event-info p { margin: 0; color: var(--muted); }

.event-type {
  justify-self: end;
  padding: .3rem .9rem;
  border-radius: var(--pill);
  background: var(--bg-alt);
  font-size: .875rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Connect: grouped list of projects */
.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: var(--space-section);
}
.connect h2 { margin-bottom: 1.5rem; }
.connect p:not(.overline) {
  max-width: 30rem;
  margin: 0;
  font-size: var(--fs-lead);
  color: var(--muted);
}

.project-links { overflow: hidden; }
.project-links a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.35rem var(--pad-surface);
  text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.project-links a + a::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--pad-surface);
  border-top: 1px solid var(--line);
}
.project-links a:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.project-links a:active { background: rgba(31, 42, 42, .05); }
.project-links a span:first-child {
  grid-column: 1;
  grid-row: 1;
  font-size: .875rem;
  color: var(--muted);
}
.project-links strong {
  grid-column: 1;
  grid-row: 2;
  font: 500 var(--fs-h3)/1.2 var(--display);
  letter-spacing: -.005em;
}
.project-links a span:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform .25s var(--ease-out);
}

/* Footer: deep pine, same on every page */
footer {
  background: var(--pine-deep);
  color: #c9d4ce;
}
.footer {
  display: flex;
  align-items: center;
  gap: .25rem 2rem;
  min-height: 88px;
  font-size: var(--fs-label);
}
.footer span { margin-inline-end: auto; }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color .2s var(--ease-out);
}

/* ---------- 8. About ("הדרך שלי") ---------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
}
.about-hero h1 {
  font-size: var(--fs-page);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.about-lead {
  max-width: 44rem;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.8;
  color: var(--muted);
}
.about-side {
  min-width: 13rem;
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--muted);
}
.about-side span {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
}
.about-side p { margin: 0; }

/* Four stations in one rounded surface */
.story-steps { padding-block: 0 var(--space-section); }
.story-steps .shell { padding-inline: clamp(1.5rem, 4vw, 3.5rem); }

.story-step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}
.story-step + .story-step { border-top: 1px solid var(--line); }
.story-number {
  align-self: start;
  font: 500 1.75rem/1.2 var(--display);
  color: var(--gold);
}
.story-step h2 { margin: 0; }
.story-step > p { margin: 0; color: var(--muted); }

.about-close {
  background: var(--pine);
  color: var(--on-dark);
  padding-block: var(--space-section);
}
.about-close h2 { margin-bottom: 2.5rem; }

/* ---------- 10. Hover: only on devices that really hover ---------- */
@media (hover: hover) {
  .site-header nav a:hover { background: rgba(31, 42, 42, .06); }
  .button-dark:hover { background: var(--pine-deep); }
  .button-light:hover { background: #fff; }
  .text-link:hover span,
  .light-link:hover span { transform: translateX(-3px); }
  .project-links a:hover { background: rgba(31, 42, 42, .03); }
  .project-links a:hover span:last-child { transform: translate(3px, -3px); }
  .footer a:hover { color: #fff; }
}

/* ---------- 11. Scroll reveal (CSS only, never hides content by default) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @supports (animation-timeline: view()) {
    .section-heading,
    .practice-grid > article,
    .event-list,
    .manifesto-grid > *,
    .connect > *,
    .story-step,
    .about-close .shell {
      animation: rise var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
}

/* ---------- 12. Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .button, .text-link, .light-link, .site-header nav a,
  .project-links a, .text-link span, .light-link span,
  .project-links a span:last-child { transition: none; }
  .button:active, .text-link:active, .light-link:active,
  .site-header nav a:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .site-header { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--ink); }
  .practice article, .event-list, .project-links, .story-steps .shell, .about-side {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 900px) {
  .hero, .manifesto-grid, .connect { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; }
  .manifesto-copy { padding-top: 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice h3 { margin-top: 1.75rem; }
  .story-step { grid-template-columns: 3rem minmax(0, 1fr); align-items: start; }
  .story-step > p { grid-column: 2; }
  .about-hero { grid-template-columns: 1fr; }
  .about-side { display: none; }
}

@media (max-width: 680px) {
  :root { --header-h: 104px; }

  .shell { width: min(100% - 2.5rem, 1180px); }

  /* Brand on the first row; links on a second row that scrolls sideways */
  .nav {
    flex-wrap: wrap;
    min-height: 0;
    padding-top: .9rem;
  }
  .brand { font-size: 1.45rem; }
  .site-header nav {
    flex: 1 0 calc(100% + 2.5rem);   /* bleeds to both screen edges */
    margin-inline: -1.25rem;
    padding-inline: .7rem;           /* first link's text lines up with the brand */
    padding-bottom: .3rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { padding-inline: .55rem; }

  .hero { gap: 2.5rem; padding-top: 2.5rem; }
  .actions { gap: .75rem 1.5rem; }

  .events-heading { display: block; }
  .events-heading > p { margin-top: 1.25rem; }

  .event {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: .6rem 1rem;
    align-items: start;
    padding-block: 1.35rem;
  }
  .date {
    grid-row: 1 / 3;
    display: block;
    min-height: 0;
  }
  .date strong { display: block; font-size: 2.5rem; }
  .date span { display: block; margin-top: .35rem; font-size: .8125rem; }
  .date-month strong { font-size: 1.5rem; padding-top: .45rem; }
  .date-month span { font-size: 1rem; margin-top: .2rem; }
  .event-type { grid-column: 2; justify-self: start; font-size: .8125rem; }

  .story-steps .shell { width: min(100% - 1.5rem, 1180px); }
  .story-step { grid-template-columns: 1fr; gap: .75rem; }
  .story-step > p { grid-column: 1; }

  .footer {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 1.5rem;
    gap: 0 1.5rem;
  }
  .footer span { flex-basis: 100%; margin-bottom: .25rem; }
}
