/* ============================================================
   Global Corporate Law — stylesheet
   Traditional academic character (serif display, claret + gold),
   modern delivery (sans body, generous space, soft cards).
   Change colours & fonts in the :root block below.
   ============================================================ */

:root {
  /* palette */
  --claret:     #6d1f2a;
  --claret-dk:  #4a141b;
  --gold:       #a9812f;
  --gold-soft:  #d8be7f;
  --ink:        #211d18;
  --muted:      #6f665a;
  --paper:      #faf7f1;
  --panel:      #ffffff;
  --line:       #e8e0d2;
  --line-soft:  #f0e9dc;
  --link:       #1f4a7d;

  /* type */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Charter, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* shape */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(74,20,27,.05), 0 8px 24px rgba(74,20,27,.06);
  --shadow-lift: 0 2px 4px rgba(74,20,27,.06), 0 14px 34px rgba(74,20,27,.10);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--claret); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--claret-dk);
  background-image: linear-gradient(180deg, #571a22 0%, var(--claret-dk) 100%);
  color: #f7efe1;
}
.masthead__inner { display: flex; align-items: center; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 16px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--claret-dk);
  background: var(--gold-soft);
  background-image: linear-gradient(160deg, #e7d3a0, var(--gold));
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .3px;
}
.brand__tag { font-size: 12.5px; color: var(--gold-soft); font-style: italic; margin-top: 3px; }

/* ---------- Navigation ---------- */
.mainnav {
  background: var(--claret);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.mainnav__inner { display: flex; flex-wrap: wrap; padding: 0 24px; }
.mainnav a {
  color: #f2e6d8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 14px 18px;
  position: relative;
}
.mainnav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px;
  height: 2px; background: transparent; border-radius: 2px; transition: background .15s;
}
.mainnav a:hover { text-decoration: none; color: #fff; }
.mainnav a:hover::after { background: rgba(216,190,127,.5); }
.mainnav a[aria-current="page"] { color: #fff; }
.mainnav a[aria-current="page"]::after { background: var(--gold); }

/* ---------- Page + page header ---------- */
.page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 8px;
}
.pagehead { margin-bottom: 28px; max-width: 60ch; }
.pagehead__eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 8px;
}
.pagehead__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1; margin: 0; color: var(--claret-dk); font-weight: 600;
}
.pagehead__intro { color: var(--muted); font-size: 18px; margin: 12px 0 0; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 20px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  max-width: 70ch;
}
.hero__eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 8px 0 14px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04; letter-spacing: -.5px;
  margin: 0; color: var(--claret-dk); font-weight: 600;
}
.hero__lede { font-size: 19px; color: var(--muted); margin: 20px 0 26px; max-width: 56ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 8px; border: 1.5px solid transparent;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--claret); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--claret-dk); box-shadow: var(--shadow-lift); color: #fff; }
.btn--ghost { color: var(--claret); border-color: var(--line); background: var(--panel); }
.btn--ghost:hover { border-color: var(--gold); color: var(--claret-dk); }

/* ---------- Layout grid ---------- */
.grid--sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
.stack > * + * { margin-top: 22px; }

/* ---------- Prose ---------- */
.prose h2, .section-h {
  font-family: var(--serif); color: var(--claret-dk);
  font-size: 26px; font-weight: 600; margin: 0 0 14px; line-height: 1.2;
}
.section-h { position: relative; padding-bottom: 10px; margin-bottom: 20px; }
.section-h::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.prose p { margin: 0 0 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.card__title {
  font-family: var(--serif); color: var(--claret-dk);
  font-size: 23px; font-weight: 600; margin: 10px 0 6px; line-height: 1.22;
}
.card__meta { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.card__sub {
  font-family: var(--serif); color: var(--claret); font-size: 17px;
  margin: 20px 0 4px; font-weight: 600;
}

/* Feature block (home) with claret spine */
.feature {
  background: linear-gradient(180deg, #fffdf8, #fbf6ec);
  border: 1px solid var(--line);
  border-left: 4px solid var(--claret);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  margin-top: 26px;
}
.feature__title { font-family: var(--serif); color: var(--claret-dk); font-size: 22px; margin: 10px 0 4px; font-weight: 600; }
.feature__meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 4px;
}
.tag--open  { background: #eaf3ea; color: #2f6b39; box-shadow: inset 0 0 0 1px #cfe4d0; }
.tag--closed{ background: #efece6; color: #7a7266; box-shadow: inset 0 0 0 1px #e2dccf; }
.tag--guest { background: #f6edda; color: #8a6414; box-shadow: inset 0 0 0 1px #ecdcb3; }

/* ---------- Topic list (call) ---------- */
.topics {
  list-style: none; margin: 16px 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px;
}
.topics li { position: relative; padding-left: 20px; font-size: 15.5px; }
.topics li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--gold); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- Events ---------- */
.event__speaker { margin: 0 0 10px; }

/* ---------- Publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line-soft);
  position: relative; font-size: 16px;
}
.pubs li:last-child { border-bottom: none; }
.pubs li::before {
  content: ""; position: absolute; left: 0; top: 1.25em;
  width: 8px; height: 2px; background: var(--gold);
}

/* ---------- Blog post ---------- */
.post__body p { margin: 0 0 14px; }
.post__body p:last-child { margin-bottom: 0; }

/* ---------- People ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.person {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow); transition: box-shadow .12s, transform .12s, border-color .12s;
}
.person:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); border-color: var(--gold-soft); }
.person__name { font-family: var(--serif); color: var(--claret-dk); font-size: 19px; font-weight: 600; margin: 0; }
.person__aff { color: var(--muted); font-size: 15px; margin: 3px 0 0; }
.person__link { flex: none; font-weight: 600; font-size: 14.5px; color: var(--claret); }
.person__link:hover { color: var(--claret-dk); }

/* ---------- Sidebar rail ---------- */
.rail { display: grid; gap: 20px; position: sticky; top: 68px; }
.rail__card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.rail__card h3 {
  font-family: var(--serif); color: var(--claret-dk);
  font-size: 16px; margin: 0 0 12px; font-weight: 600;
}
.rail__card p { margin: 0 0 8px; font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.arrow { font-weight: 600; }
.arrow::after { content: " \2192"; }
.muted { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.sitefoot {
  margin-top: 56px; background: var(--claret-dk); color: #eaddcb;
  border-top: 4px solid var(--gold);
}
.sitefoot__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding: 30px 24px 20px;
}
.sitefoot__name { font-family: var(--serif); font-size: 20px; margin: 0; color: #fff; }
.sitefoot__tag { font-size: 13px; font-style: italic; color: var(--gold-soft); margin: 4px 0 0; }
.sitefoot__contact p { margin: 0 0 6px; font-size: 14px; }
.sitefoot a { color: var(--gold-soft); }
.sitefoot a:hover { color: #fff; }
.sitefoot__legal {
  border-top: 1px solid rgba(255,255,255,.12); padding: 14px 24px 26px;
}
.sitefoot__legal p { margin: 0; font-size: 12.5px; color: #c9b79f; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .mainnav__inner { overflow-x: auto; flex-wrap: nowrap; }
  .mainnav a { white-space: nowrap; }
  .topics { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .person { flex-direction: column; align-items: flex-start; }
  .brand__name { font-size: 21px; }
}

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