/* Lekha & Co.: tokens, type, header, footer, buttons and the platform's form.
   Paper and ink, one teal for the firm's voice and actions, vermilion only for today and dates within a week. */

:root {
  --paper: #f5f5f0;
  --white: #ffffff;
  --tint: #e8eeec;
  --ink: #17211f;
  --ink-2: #4b5654;
  --teal: #0f4c52;
  --teal-dark: #0a3539;
  --teal-pale: #d5e3e2;
  --tick: #b3361a;
  --rule: #c5cdca;
  --rule-strong: #17211f;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gurmukhi: "Noto Serif Gurmukhi", "Raavi", serif;
  --wrap: 1360px;
  --gutter: 16px;
  --header-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 400;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 0.9em;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.sel {
  user-select: all;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip:focus {
  top: 8px;
}

.ico {
  flex: none;
  vertical-align: -0.15em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55em 1.05em;
  border: 1.5px solid var(--teal);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ink {
  background: var(--teal);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-line {
  background: transparent;
  color: var(--teal);
}

.btn-line:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.btn-big {
  min-height: 52px;
  font-size: 1.0625rem;
  padding: 0.7em 1.3em;
}

/* ---- Header: sticky at every width ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.logo {
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.year-mark {
  color: var(--ink);
  flex: none;
}

.wm-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.wm-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wm-sub {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.wm-local {
  font-family: var(--gurmukhi);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.nav-wide {
  display: none;
}

.nav-wide ul,
.nav-small ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-call {
  display: none;
}

.header-cta {
  min-height: 40px;
  padding: 0.4em 0.85em;
}

.hide-small {
  display: none;
}

.nav-small {
  position: relative;
}

.nav-small summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.nav-small summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -7px;
}

.burger::after {
  top: 7px;
}

.nav-small[open] .burger {
  background: transparent;
}

.nav-small[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-small[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: min(300px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 10px 24px rgb(23 33 31 / 0.14);
}

.nav-small li a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav-small li:last-child a {
  border-bottom: 0;
  color: var(--teal);
}

.nav-small a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
}

.law-line {
  margin: 0;
  border-top: 1px solid var(--rule);
  background: var(--tint);
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 5px 0;
  color: var(--ink);
}

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

.site-footer {
  background: var(--ink);
  color: #e6ebe9;
  padding: 48px 0 24px;
  margin-top: 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .logo,
.site-footer .year-mark {
  color: #ffffff;
}

.site-footer .wm-sub {
  color: #c5cfcc;
}

.site-footer .year-mark path[stroke="var(--tick)"] {
  stroke: #f08a6c;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-promise {
  margin-top: 14px;
  max-width: 34ch;
}

.foot-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5cfcc;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.foot-small {
  font-size: 0.875rem;
  margin-top: 14px;
}

.kv {
  margin: 0;
}

.kv > div {
  display: grid;
  grid-template-columns: minmax(8rem, 40%) 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

.kv dt {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.kv dd {
  margin: 0;
}

.kv-sub {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-footer .kv > div {
  border-top-color: #3d4846;
}

.site-footer .kv dt,
.site-footer .kv-sub {
  color: #c5cfcc;
}

.footer-base {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #3d4846;
  font-size: 0.875rem;
  color: #c5cfcc;
}

.footer-base p {
  margin-bottom: 6px;
}

/* ---- The platform's form (unrigid-* classes) ---- */

form {
  display: grid;
  gap: 18px;
}

.unrigid-field {
  display: grid;
  gap: 6px;
}

.unrigid-field label {
  font-weight: 600;
}

.unrigid-required {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 0.875rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="url"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #6c7774;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
  outline: 3px solid var(--tick);
  outline-offset: 1px;
  border-color: var(--ink);
}

form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
  margin: 2px 10px 0 0;
  flex: none;
}

.unrigid-field:has(input[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.unrigid-field:has(input[type="checkbox"]) label {
  flex: 1;
  font-weight: 400;
}

.unrigid-help {
  font-size: 0.875rem;
  color: var(--ink-2);
  flex-basis: 100%;
}

.unrigid-error {
  color: #8f2a14;
  font-weight: 600;
  font-size: 0.9375rem;
}

.unrigid-form-status {
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: var(--white);
}

form button[type="submit"] {
  justify-self: start;
  min-height: 52px;
  padding: 0.7em 1.4em;
  border: 0;
  border-radius: 2px;
  background: var(--teal);
  color: var(--white);
  font: 600 1.0625rem var(--sans);
  cursor: pointer;
}

form button[type="submit"]:hover {
  background: var(--teal-dark);
}

form button[disabled] {
  background: #7c8a88;
  cursor: not-allowed;
}

form iframe {
  max-width: 100%;
}
