/* ==========================================================================
   Romesh De Silva — Site Redesign
   Design tokens: warm ivory + near-black + one brick-red accent.
   Fonts: Fraunces (display serif) / Manrope (body sans).
   ========================================================================== */

:root{
  --ink: #16161A;
  --ink-soft: #3A3A38;
  --paper: #FAF9F5;
  --paper-dim: #F1EFE9;
  --line: #E4E1D8;
  --muted: #6B6B66;
  --muted-2: #8A8676;
  --accent: #B3312C;
  --accent-soft: #D98A82;

  --max: 1180px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  margin: 0;
}

p{ margin: 0; }

a{ text-decoration: none; color: inherit; }

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

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary{ background: var(--ink); color: var(--paper); }
.btn--primary:hover{ background: var(--accent); }
.btn--outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: var(--paper); }
.btn--dark{ background: var(--paper); color: var(--ink); }
.btn--dark:hover{ background: var(--accent); color: var(--paper); }

/* ---------- Nav ---------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: rgba(250,249,245,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__logo{
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav__links{
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link{
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .15s ease;
}
.nav__link:hover, .nav__link.is-active{ color: var(--accent); }
.nav__cta{ padding: 10px 20px; font-size: 12px; }
.nav__toggle{ display: none; }

@media (max-width: 900px){
  .nav__links{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 32px 24px;
  }
  .nav__links.is-open{ display: flex; }
  .nav__link{ padding: 10px 0; width: 100%; }
  .nav__cta{ margin-top: 8px; }
  .nav__toggle{
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
  }
  .nav__toggle span{ width: 22px; height: 2px; background: var(--ink); display: block; }
}

/* ---------- Layout sections ---------- */

.section{ padding: 96px 0; }
.section--sm{ padding: 64px 0; }
.section--dark{ background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: var(--paper); }
.section--muted{ background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.section--dark .eyebrow{ color: var(--accent-soft); }

/* ---------- Hero ---------- */

.hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 88px 0 72px;
}
.hero__content{ max-width: 580px; }
.hero h1{ font-size: 58px; line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero__lede{ font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 30px; }
.hero__actions{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero__image{
  width: 420px;
  height: 520px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ECE8DE, #DCD5C4);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.placeholder-label{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

@media (max-width: 900px){
  .hero{ flex-direction: column; padding-top: 56px; }
  .hero h1{ font-size: 40px; }
  .hero__image{ width: 100%; height: 320px; }
}

/* ---------- Stats ---------- */

.stats{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 48px 0;
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__num{ font-family: 'Fraunces', serif; font-size: 36px; font-weight: 600; color: var(--accent); }
.stat__label{ font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); max-width: 180px; margin-top: 6px; }

/* ---------- Cards / grids ---------- */

.grid-2{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 900px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.card{
  display: block;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px rgba(22,22,26,0.08); }
.card h3{ font-size: 22px; margin-bottom: 12px; }
.card p{ font-size: 15px; line-height: 1.6; color: #5A584F; margin-bottom: 18px; }
.card__cta{ font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }

.card--sm{ padding: 24px; }
.card--sm h3{ font-size: 18px; margin-bottom: 8px; }
.card--sm p{ font-size: 14px; margin-bottom: 0; }

/* ---------- Timeline (career / education) ---------- */

.timeline__item{
  display: flex;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  transition: border-color .15s ease;
}
.timeline__item:hover{ border-color: var(--accent); }
.timeline__period{
  width: 170px;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.timeline__title{ font-family: 'Fraunces', serif; font-size: 21px; margin-bottom: 6px; }
.timeline__tag{ font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.timeline__desc{ font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 640px; }

@media (max-width: 700px){
  .timeline__item{ flex-direction: column; gap: 8px; }
  .timeline__period{ width: auto; }
}

/* ---------- Badges ---------- */

.badge-row{ display: flex; gap: 14px; flex-wrap: wrap; }
.badge{ padding: 11px 20px; border-radius: 100px; background: var(--paper-dim); font-size: 13px; font-weight: 700; }
.badge--dark{ background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */

.footer{ background: var(--ink); color: var(--paper); padding: 68px 0 28px; }
.footer__top{ display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; }
.footer__brand{ max-width: 340px; }
.footer__brand-name{ font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.footer__tagline{ font-size: 14px; line-height: 1.6; color: #B7B4A9; }
.footer__cols{ display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col-title{ font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #7A776C; margin-bottom: 14px; }
.footer__col{ display: flex; flex-direction: column; gap: 11px; }
.footer__link{ color: #C9C6BC; font-size: 14px; transition: color .15s ease; }
.footer__link:hover{ color: var(--paper); }
.footer__bottom{ display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #2B2B2A; padding-top: 22px; font-size: 13px; color: #7A776C; flex-wrap: wrap; gap: 8px; }

.social-row{ display: flex; gap: 12px; margin-top: 18px; }
.social-icon{
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #4A4844;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: opacity .15s ease;
}
.social-icon:hover{ opacity: 0.6; }

.social-row--lg .social-icon{
  width: 60px; height: 60px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.social-row--lg .social-icon:hover{ opacity: 1; border-color: var(--accent); transform: translateY(-3px); }

/* ---------- CTA band ---------- */

.cta-band{ text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band h2{ font-size: 32px; max-width: 620px; }
.cta-band p{ font-size: 16px; color: #5A584F; max-width: 480px; }
.section--dark .cta-band p{ color: #C9C6BC; }
.cta-band .btn{ margin-top: 8px; }

/* ---------- Quote ---------- */

.quote{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  max-width: 720px;
}

/* ---------- Utility ---------- */

.text-center{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }
.small-link{ font-size: 13px; font-weight: 700; color: var(--accent); }
