/*
  LAVERTY website: the Chambers design (approved 16 Oct 2026).

  Every size, colour and space below is taken from the approved mockup,
  design/chambers/website.html; the colour roles are listed in
  design/chambers/README.md. Plain CSS: no framework, no build step.

  All fonts are served from this website (fonts/), so a visit sends nothing
  to Google or any other outside service.
*/

/* ---------- Fonts (from Fontsource; licences in fonts/OFL-*.txt) ---------- */

/* Newsreader with its optical sizes (6 to 72): large headlines get the
   display cut, as in the mockup. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Amiri: the Arabic letters, plus its Latin file for the spaces and
   punctuation inside Arabic lines. */
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/amiri-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/amiri-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/amiri-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/amiri-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  /* The dark page */
  --bg: #070B17;
  --text: #F2F3F5;
  --text-2: #B8BDC8;
  --text-3: #8E95A4;
  --rule: rgba(242, 243, 245, 0.18);
  --rule-faint: rgba(242, 243, 245, 0.12);
  --underline: rgba(242, 243, 245, 0.35);
  --hover: #00D4FF;

  /* The light product pictures */
  --paper: #FFFFFF;
  --panel: #F6F7F9;
  --selected: #E8EBF1;
  --border: #E7E9EE;
  --hairline: #EEF0F3;
  --ink: #070B17;
  --ink-body: #1F2533;
  --ink-2: #3A4152;
  --ink-3: #6A7080;
  --blue: #2563EB;
  --shadow-shot: 0 80px 160px -60px rgba(0, 0, 0, 0.95);
  --shadow-memo: 0 60px 120px -60px rgba(0, 0, 0, 0.95);

  /* Type */
  --serif: "Newsreader", serif;
  --sans: Inter, system-ui, sans-serif;
  --ui: Inter, sans-serif;
  --arabic: "Amiri", serif;

  /* Space: the mockup's values on wide screens, smaller on phones */
  --pad-x: 48px;
  --space-hero: 120px;
  --space-practice: 120px;
  --space-features: 180px;
  --space-section: 200px;
  --space-access: 220px;
  --space-end: 160px;
}

/* ---------- Base ---------- */

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keeps the deep shadows from widening the page on small screens. */
.page {
  overflow: hidden;
}

a {
  color: var(--text);
  transition: color 0.15s ease, background-color 0.15s ease;
}

:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Text links turn cyan on hover (the mockup's link hover colour). */
.text-link {
  color: var(--text-2);
  text-decoration: none;
}

.text-link:hover,
.link-underline:hover,
.note-ref a:hover {
  color: var(--hover);
}

.button {
  font-weight: 500;
  color: var(--ink);
  background: var(--text);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  color: var(--ink);
  background: #FFFFFF;
}

.button-large {
  font-size: 15px;
  padding: 14px 22px;
}

.link-underline {
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--underline);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

/* Wide sections share one column: 1280px, with the side padding inside. */
.site-header,
.hero,
.features,
.citations,
.arabic,
.security,
.access,
.footer-inner {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

.site-nav a[lang="ar"] {
  font-family: var(--arabic);
  font-size: 17px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  white-space: nowrap;
}

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

.hero {
  padding: var(--space-hero) var(--pad-x) 0;
}

.hero h1 {
  margin: 0;
  max-width: 1060px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-arabic {
  margin: 36px 0 0;
  max-width: 1060px;
  font-family: var(--arabic);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.6;
  color: var(--text-3);
  text-align: left;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 56px;
}

.hero-lede {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- In practice: the workspace picture ---------- */

.practice {
  padding: var(--space-practice) var(--pad-x) 0;
}

.practice figure {
  margin: 0 auto;
  max-width: 1184px;
}

.practice figcaption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.shot {
  display: flex;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  box-shadow: var(--shadow-shot);
}

.shot ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

/* As in the mockup, the column widths (220px, 260px) are inside the padding. */
.shot-side {
  flex: 0 0 220px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
}

.shot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
}

.shot-brand img {
  width: 22px;
  height: 22px;
}

.shot-label {
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-3);
}

.shot-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-2);
}

.shot-list li {
  padding: 6px 8px;
}

.shot-list .is-current {
  border-radius: 6px;
  background: var(--selected);
  font-weight: 500;
  color: var(--ink);
}

.shot-doc {
  flex: 1;
  box-sizing: border-box;
  height: 540px;
  padding: 56px 72px 64px;
  overflow: hidden;
}

.shot-court {
  font-size: 12px;
  color: var(--ink-3);
}

.shot-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.shot-section {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.shot-text {
  margin: 12px 0 0;
  max-width: 620px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-body);
}

.shot-text + .shot-text {
  margin-top: 16px;
}

.shot-text sup {
  margin-left: 2px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

.shot-citations {
  flex: 0 0 260px;
  border-left: 1px solid var(--border);
  padding: 22px 20px;
}

.shot-citations-title {
  font-weight: 600;
}

.shot .citation-list {
  margin-top: 14px;
  border-bottom: 1px solid var(--hairline);
}

.citation-list li {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.citation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-verified {
  color: var(--blue);
}

.status-open {
  color: var(--ink-3);
}

.citation-law {
  margin-top: 4px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- Three things it does ---------- */

.features {
  padding: var(--space-features) var(--pad-x) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
}

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.feature h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* The footnote mark looks as in the mockup; it also links to the note. */
.note-ref a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Citations ---------- */

.citations {
  padding: var(--space-section) var(--pad-x) 0;
}

.citations h2 {
  margin: 0;
  max-width: 1000px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.citations p {
  margin: 32px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- Arabic ---------- */

.arabic {
  padding: var(--space-section) var(--pad-x) 0;
}

.arabic-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.arabic-copy {
  flex: 1 1 360px;
}

.arabic-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.arabic-copy p {
  margin: 22px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.memo {
  flex: 1.3 1 520px;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 52px 56px;
  border-radius: 4px;
  font-family: var(--arabic);
  box-shadow: var(--shadow-memo);
}

.memo-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-3);
}

.memo-meta [lang="ar"] {
  font-family: var(--arabic);
  font-size: 15px;
}

.memo h3 {
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

.memo-parties {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-2);
}

.memo hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--border);
}

.memo-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.memo-body {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 2.05;
  color: var(--ink-body);
}

.memo-cite {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Security ---------- */

.security {
  padding: var(--space-section) var(--pad-x) 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 48px;
}

.security h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}

.security p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- Request access ---------- */

.access {
  padding: var(--space-access) var(--pad-x) var(--space-end);
}

.access h2 {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.access .actions {
  margin-top: 48px;
}

.access-note {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

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

.site-footer {
  border-top: 1px solid var(--rule-faint);
}

.footer-inner {
  padding: 40px var(--pad-x) 52px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-inner .footer-brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--text);
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

/* ---------- Page not found (404.html) ---------- */

.not-found {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-hero) var(--pad-x) var(--space-end);
}

.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.not-found .hero-arabic {
  margin-top: 24px;
}

.not-found .actions {
  margin-top: 48px;
}

/* ---------- Narrower screens ---------- */

/* Below the mockup's full width, the workspace picture keeps its columns
   but lets the document grow, so no text is cut off. */
@media (max-width: 1156px) {
  .shot-side {
    flex-basis: 200px;
  }

  .shot-citations {
    flex-basis: 240px;
  }

  .shot-doc {
    height: auto;
    min-height: 540px;
    padding: 48px 48px 56px;
  }
}

@media (max-width: 900px) {
  .shot-side {
    display: none;
  }
}

/* As in the mockup, the section links go away on small screens. */
@media (max-width: 860px) {
  :root {
    --pad-x: 32px;
    --space-hero: 88px;
    --space-practice: 88px;
    --space-features: 120px;
    --space-section: 128px;
    --space-access: 136px;
    --space-end: 112px;
  }

  .site-nav {
    display: none;
  }
}

/* Phones: the workspace picture stacks the citations under the memo. */
@media (max-width: 640px) {
  .shot {
    flex-direction: column;
  }

  .shot-doc {
    min-height: 0;
    padding: 32px 24px 34px;
  }

  .shot-title {
    font-size: 27px;
  }

  .shot-section {
    margin-top: 24px;
  }

  .shot-text {
    font-size: 17px;
  }

  .shot-citations {
    flex-basis: auto;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 20px 24px 24px;
  }

  .arabic-layout {
    gap: 48px;
  }

  .memo {
    padding: 32px 24px 36px;
  }

  .memo h3 {
    font-size: 24px;
  }

  .memo-body {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  :root {
    --pad-x: 20px;
    --space-hero: 64px;
    --space-practice: 72px;
    --space-features: 96px;
    --space-section: 104px;
    --space-access: 112px;
    --space-end: 88px;
  }

  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 20px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    gap: 16px;
  }

  .header-actions .button {
    padding: 9px 14px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-arabic {
    margin-top: 24px;
    font-size: 28px;
  }

  .hero-row {
    margin-top: 40px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .features-grid {
    gap: 44px;
  }

  .feature h2 {
    font-size: 30px;
  }

  .access .actions {
    margin-top: 40px;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
  }

  .brand {
    font-size: 18px;
    letter-spacing: 0.14em;
  }

  .header-actions {
    gap: 10px;
    font-size: 13px;
  }

  .header-actions .button {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 44px;
  }
}
