/* ==========================================================================
   Jocelyne Lakis — jocelynelakis.com
   Palette and typeface preserved from the original identity:
   oxblood #60212e · ice blue #ffffff · warm taupe #D8D1BD · ink #111 · white
   Single family: Manrope (variable 200–800), self-hosted.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Manrope-Variable.woff2') format('woff2');
}

:root {
  /* palette (blue family; oxblood original in src/themes/oxblood-style.css) */
  --ox: #69ACC2;           /* accent — header band */
  --ox-deep: #2A606F;      /* deep accent — buttons, drawer, ink on light surfaces (7:1 on white) */
  --ox-deepest: #1F4854;   /* deeper — hover on deep surfaces */
  --ox-tint: rgba(105, 172, 194, .16);
  --blue: #E8F4FF;         /* light ice-blue tint — portrait frame, blue bands, inverse-btn hover */
  --taupe: #D8D1BD;
  --taupe-soft: #EDE8E1;   /* tint of taupe — taupe bands */
  --footer-bg: #E8F4FF;    /* footer surface — kept LIGHT, separate from --ox-deep */
  --ink: #111111;
  --ink-2: #333333;
  --muted: #5F5851;        /* darkened taupe — deliberate palette exception: a tint would not reach 7:1 contrast on white */
  --paper: #FFFFFF;
  --line: #D8D1BD;

  /* type scale */
  --fs-display: clamp(34px, 5vw, 52px);
  --fs-h2: clamp(27px, 3.2vw, 36px);
  --fs-h3: 24px;
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-overline: 12px;

  /* layout */
  --container: 1140px;
  --gutter: 24px;
  --radius: 10px;
  --radius-card: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 10px 28px -14px rgba(17, 17, 17, .18);
  --header-h: 72px;

  /* stacking contract */
  --z-sticky-rail: 50;
  --z-header: 100;
  --z-drawer: 150;
  --z-skip-link: 200;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--ox-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ox-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-ox :focus-visible, .drawer :focus-visible {
  outline-color: #FFFFFF;
}
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #ffffff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip-link);
  background: var(--paper); color: var(--ox-deep);
  padding: 10px 18px; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- typography roles ---------- */

.display { font-size: var(--fs-display); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.h2      { font-size: var(--fs-h2);      line-height: 1.2;  font-weight: 700; letter-spacing: -.01em; }
.h3      { font-size: var(--fs-h3);      line-height: 1.3;  font-weight: 700; }
.lead    { font-size: var(--fs-lead);    line-height: 1.6; }
.small   { font-size: var(--fs-small);   line-height: 1.55; font-weight: 500; }
.overline {
  font-size: var(--fs-overline); line-height: 1.35; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}

/* ---------- layout ---------- */

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .section--tight { padding-block: 48px; }
}

.band-blue  { background: var(--blue); }
.band-taupe { background: var(--taupe-soft); }
.band-ox    { background: var(--ox); color: #111111; }
/* Links on dark bands read the component-scoped --link-ink; plain links fall back to white.
   Any component placed on a dark band declares its own --link-ink once — no per-context overrides. */
.band-ox a  { color: var(--link-ink, #111111); }

.sect-head { max-width: 640px; margin-bottom: 40px; }
.sect-head .overline { color: var(--ox-deep); display: block; margin-bottom: 10px; }
.band-ox .sect-head .overline { color: rgba(17, 17, 17, .62); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 1.5px solid var(--ox-deep); border-radius: var(--radius);
  background: var(--ox-deep); color: #FFFFFF;
  font: 700 15px/1 'Manrope', sans-serif; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ox-deepest); border-color: var(--ox-deepest); }

.btn--inverse { background: #FFFFFF; border-color: #FFFFFF; --link-ink: var(--ox-deep); color: var(--link-ink); }
.btn--inverse:hover { background: var(--blue); border-color: var(--blue); --link-ink: var(--ox-deepest); }

.btn--ghost { background: transparent; color: var(--ox-deep); }
.btn--ghost:hover { background: var(--ox-tint); }

.band-ox .btn--ghost { color: #111111; border-color: rgba(17, 17, 17, .45); }
.band-ox .btn--ghost:hover { background: rgba(17, 17, 17, .07); border-color: #111111; }

.btn svg { flex: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--ox);
  min-height: var(--header-h);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: #111111; text-decoration: none;
  font-weight: 700; font-size: 17px; letter-spacing: .01em;
  margin-right: auto;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; }
/* Jocelyne's name — standard serif (Georgia) in italic, a touch larger than
   the nav for presence. */
.brand__name { font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-weight: 600; font-size: 23px; letter-spacing: .01em; color: #111111; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: #111111; text-decoration: none;
  font-weight: 600; font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: rgba(17, 17, 17, .5); }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: #111111; }
.site-nav .btn { margin-left: 8px; }

.site-nav a.lang-switch {
  border: 1.5px solid rgba(17, 17, 17, .45);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.site-nav a.lang-switch:hover { border-color: #111111; background: rgba(17, 17, 17, .06); }
.drawer nav a.lang-switch {
  align-self: flex-start;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .06em;
  padding: 8px 18px;
  margin-top: 10px;
}
.drawer nav a.lang-switch:hover { border-color: #FFFFFF; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: #111111; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(17, 17, 17, .07); }

/* drawer (mobile nav) */
.drawer {
  display: none;
  position: fixed; inset: 0; z-index: var(--z-drawer);
}
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .5); border: 0; padding: 0; cursor: pointer; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--ox-deep); color: #FFFFFF;
  display: flex; flex-direction: column;
  padding: 20px 24px 28px;
  box-shadow: -12px 0 40px rgba(17, 17, 17, .35);
}
.drawer__close {
  align-self: flex-end;
  width: 48px; height: 48px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: #FFFFFF; cursor: pointer;
  font-size: 26px; line-height: 1;
}
.drawer__close:hover { background: rgba(255, 255, 255, .12); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.drawer nav a {
  color: #FFFFFF; text-decoration: none;
  font-weight: 700; font-size: 20px;
  padding: 13px 10px; border-radius: var(--radius);
}
.drawer nav a:hover { background: rgba(255, 255, 255, .1); }
.drawer nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.drawer .btn { margin-top: auto; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

body.drawer-locked { overflow: hidden; }

/* ---------- hero (home) ---------- */

.hero { padding-block: 88px; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero__roles { margin: 24px 0 8px; }
.hero__roles li {
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; font-weight: 500;
  color: rgba(17, 17, 17, .85);
}
.hero__note { margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: rgba(17, 17, 17, .78); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.portrait-frame {
  background: var(--blue);
  padding: 14px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  max-width: 460px;
  justify-self: end;
}
.portrait-frame img { border-radius: 6px; width: 100%; }

@media (max-width: 900px) {
  .hero { padding-block: 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .portrait-frame { justify-self: center; max-width: 400px; }
}

/* ---------- credentials band ---------- */

.credentials { padding-block: 56px; }
.credentials ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px 36px;
}
.credentials li {
  position: relative;
  padding-left: 20px;
  font-size: 20px; line-height: 1.5; font-weight: 600;   /* matches .tile-word (TEENAGERS/KIDS/…) */
  color: var(--ink);
}
.credentials li::before {
  content: "";
  position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px;
  background: #8d021f;
}

/* ---------- practice areas ---------- */

.practice .container {
  display: grid; grid-template-columns: 1fr .9fr;
  gap: 56px; align-items: center;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 30px 26px 26px;
}
.tile .tile-word { font-size: 20px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; margin: 0; }
.tile::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  background: #8d021f;
  margin-top: 12px;
}
.practice__media img { border-radius: var(--radius-card); box-shadow: var(--shadow); }
.practice .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .practice .container { grid-template-columns: 1fr; gap: 40px; }
  .practice__media { order: -1; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- publications preview + grid ---------- */

.pub-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pub-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pub-card .pub-title { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; }
.pub-card .small { color: var(--muted); margin-top: auto; }

/* ---------- timeline (publications page) ---------- */

.timeline-layout {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 56px; align-items: start;
}
.year-rail {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 2px;
}
.year-rail a {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 15px;
  color: var(--ink-2); text-decoration: none;
  padding: 7px 14px; border-left: 3px solid var(--line);
}
.year-rail a:hover { color: var(--ox-deep); border-left-color: var(--ox-deep); }
.year-rail a.active { color: var(--ox-deep); border-left-color: var(--ox-deep); background: var(--ox-tint); }

.year-block { padding-bottom: 56px; }
.year-block:last-child { padding-bottom: 0; }
.year-block h2 {
  font-size: var(--fs-h3); font-weight: 800;
  color: var(--ink);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.year-block h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.entries li {
  position: relative;
  padding: 7px 0 7px 22px;
  line-height: 1.55;
}
.entries li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 7px; height: 7px;
  background: var(--taupe);
}
.entries li ul { margin-top: 4px; }
.entries li ul li { padding: 3px 0 3px 22px; color: var(--ink-2); }
.entries li ul li::before { width: 5px; height: 5px; top: 12px; background: var(--line); }
.entries .month { font-weight: 700; color: var(--ox-deep); }

@media (max-width: 760px) {
  .timeline-layout { grid-template-columns: 1fr; gap: 28px; }
  .year-rail {
    position: sticky; top: var(--header-h);
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    background: var(--paper);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    z-index: var(--z-sticky-rail);
  }
  .year-rail a { border-left: 0; border-bottom: 3px solid var(--line); padding: 6px 12px; }
  .year-rail a.active, .year-rail a:hover { border-left: 0; border-bottom-color: var(--ox); }
}

/* ---------- contact ---------- */

.contact-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.action-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  text-decoration: none;
  --link-ink: var(--ink); color: var(--link-ink);
}
.action-card:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(17,17,17,.08), 0 14px 34px -14px rgba(17,17,17,.28); }
.action-card svg { flex: none; color: var(--ox-deep); }
.action-card .overline { color: var(--muted); display: block; }
.action-card .val { font-weight: 700; font-size: 16.5px; line-height: 1.3; word-break: break-word; }
.action-card:hover .val { color: var(--ox-deep); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* form */
.form-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 34px;
}
@media (max-width: 480px) { .form-card { padding: 24px 20px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 'Manrope', sans-serif;
  padding: 13px 15px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--ox-deep); outline-offset: 0;
  border-color: var(--ox-deep);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); margin-top: 14px; }
.form-status { font-weight: 600; margin-top: 14px; color: var(--ox-deep); }
.hp { display: none; } /* display:none is reliably excluded from browser autofill, unlike off-screen positioning */

/* CTA strip (about) */
.cta-strip { text-align: center; }
.cta-strip .lead { margin: 10px auto 26px; max-width: 46ch; }

/* ---------- about ---------- */

.bio .container {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 64px; align-items: start;
}
.bio .portrait-frame { justify-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.bio__roles { margin: 18px 0 30px; }
.bio__roles li { font-size: var(--fs-lead); line-height: 1.55; font-weight: 500; color: var(--ink-2); }
.bio .credentials-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--taupe-soft);
  font-weight: 600; font-size: 16.5px;
}
.bio .credentials-list li::before {
  content: "";
  position: absolute; left: 0; top: 21px;
  width: 8px; height: 8px;
  background: var(--ox);
}
@media (max-width: 860px) {
  .bio .container { grid-template-columns: 1fr; gap: 40px; }
  .bio .portrait-frame { position: static; max-width: 400px; justify-self: center; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg); color: var(--ink);
  padding: 64px 0 28px;
  font-size: 15px;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(17, 17, 17, .12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--ink); }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
/* handwritten name in the footer — sized by height, aspect kept, no radius */
.footer-brand__name { font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-weight: 600; font-size: 21px; letter-spacing: .01em; color: var(--ink); }
.footer-roles { margin-top: 14px; line-height: 1.6; color: rgba(17, 17, 17, .72); font-size: 14px; }
.site-footer .overline { color: rgba(17, 17, 17, .7); display: block; margin-bottom: 14px; }
.footer-list li { margin-bottom: 9px; }
.footer-bottom { padding-top: 24px; font-size: 13.5px; color: rgba(17, 17, 17, .6); }

/* ---------- print ---------- */

@media print {
  .site-header, .year-rail { position: static; }
  .nav-toggle, .drawer, .skip-link, .site-footer nav { display: none !important; }
  .band-ox, .site-footer { color: #111 !important; background: #FFF !important; }
  .band-ox a, .site-footer a { color: #111 !important; }
}
