@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-var.woff2") format("woff2");
}

:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #78716c;
  --border: #eae6df;
  --border-strong: #d6d3d1;
  --accent: #d97706;
  --link: #b45309;
  --link-hover: #78350f;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 880px;
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 8px;
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 88px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-subtle);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.footer-links a:hover,
.link-button:hover {
  color: var(--text);
}

.link-button[hidden] {
  display: none;
}

/* Cookie consent banner */

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}

.consent[hidden] {
  display: none;
}

.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-actions {
  display: flex;
  gap: 12px;
}

.consent .button {
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 88px 0 72px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--text);
  color: var(--text);
}

.button-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #44403c;
  border-color: #44403c;
  color: var(--bg);
}

/* Sections */

.section {
  padding: 24px 0 48px;
}

.section h2 {
  margin: 0 0 24px;
  font-size: 26px;
}

.page-intro {
  padding: 56px 0 32px;
}

.page-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 48px);
}

.page-intro p {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  color: var(--text-muted);
}

/* Practice cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

a.card:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.card-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.card-text {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Practice areas (practices page) */

.practice {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.practice h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.practice p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.practice .status {
  font-size: 15px;
  color: var(--text-subtle);
}

/* Blog timeline */

.timeline {
  margin: 0 0 0 6px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
}

.timeline li:first-child::before {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline time {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-subtle);
}

.timeline a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.timeline a:hover {
  text-decoration: underline;
}

.timeline p {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Articles */

.article {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 48px;
}

.article header {
  margin-bottom: 40px;
}

.article header time {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-subtle);
}

.article h1 {
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 46px);
}

.article .lede {
  margin: 0;
  font-size: 21px;
  color: var(--text-muted);
}

.article h2 {
  margin: 48px 0 12px;
  font-size: 26px;
}

.article p,
.article ul {
  margin: 0 0 20px;
}

.article li {
  margin-bottom: 8px;
}

.article code {
  padding: 2px 6px;
  background: #f5f3ee;
  border-radius: 6px;
  font-size: 0.88em;
}

.table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.article th,
.article td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article th {
  font-weight: 600;
  white-space: nowrap;
}

.article td {
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  font-weight: 600;
}
