/* Pehle Aap: white thread on white muslin. Base: tokens, type, header, buttons, forms, footer.
   Phone first; wide.css adds tablet and desktop. */

:root {
  --muslin: #f5f1e8;
  --white: #ffffff;
  --kohl: #1f1c19;
  --muted: #5e574d;
  --stitch: #cfc7b6;
  --stitch-dark: #b3a88f;
  --amber: #8a5119;
  --amber-deep: #6e3f12;
  --khus: #e9e6d3;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Gulzar", "Noto Nastaliq Urdu", serif;
  --gutter: 20px;
  --head: 60px;
  --radius: 4px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--muslin);
  color: var(--kohl);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "lnum" 1;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 5.25rem);
}

h2 {
  font-size: clamp(1.875rem, 5.4vw, 3rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0;
}

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber-deep);
}

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

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

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

.narrow {
  max-width: 760px;
}

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

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

.skip:focus {
  top: 12px;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40em;
}

.small,
.form-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- The stitch: dotted chikan lines as the only ornament --------------------------- */

.seam {
  height: 8px;
  margin: 0 auto;
  max-width: 1320px;
  background-image: radial-gradient(circle, var(--stitch-dark) 1.4px, transparent 1.8px);
  background-size: 12px 8px;
  background-repeat: repeat-x;
  background-position: center;
}

.arc {
  color: var(--amber);
}

.stitches {
  color: var(--amber);
  flex: none;
}

/* ---- Header (sticky at every width) ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--muslin);
  border-bottom: 1px dashed var(--stitch-dark);
}

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

.logo {
  color: var(--kohl);
  text-decoration: none;
  margin-right: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.wm-latin {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wm-last {
  position: relative;
  display: inline-block;
}

.wm-arc {
  position: absolute;
  left: -6px;
  bottom: -11px;
  color: var(--amber);
}

.wm-urdu {
  font-family: var(--urdu);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1;
  display: none;
}

.nav-wide {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.head-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  color: var(--kohl);
  text-decoration: none;
  font-weight: 500;
}

.hide-small {
  display: none;
}

.nav-small {
  position: relative;
}

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

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

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

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

.burger::after {
  position: absolute;
  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% + 8px);
  width: min(86vw, 320px);
  background: var(--white);
  border: 1px dashed var(--stitch-dark);
  padding: 8px 0;
  box-shadow: 0 12px 30px rgba(31, 28, 25, 0.12);
}

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

.nav-small a {
  display: block;
  padding: 12px 20px;
  color: var(--kohl);
  text-decoration: none;
  font-size: 1.0625rem;
}

.nav-small a[aria-current="page"] {
  color: var(--amber);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

.btn-amber:hover {
  background: var(--amber-deep);
  color: var(--white);
}

.btn-quiet {
  background: transparent;
  color: var(--kohl);
  border-color: var(--kohl);
}

.btn-quiet:hover {
  background: var(--white);
  color: var(--kohl);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.glyph {
  flex: none;
}

.doors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  font-weight: 600;
}

/* ---- Bands --------------------------------------------------------------------------- */

.band {
  padding: 64px 0;
}

.band-tight {
  padding: 40px 0;
}

.band-white {
  background: var(--white);
}

.band-muslin {
  background: var(--muslin);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.section-head .more a,
.more a {
  font-weight: 600;
}

.h-small {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.h-plain {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  margin-bottom: 24px;
}

.page-head {
  padding: 48px 0 36px;
}

.page-head .wrap {
  display: grid;
  gap: 12px;
}

.head-arc {
  color: var(--amber);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 32px 0 10px;
}

.prose p {
  margin-bottom: 12px;
}

/* ---- Lists --------------------------------------------------------------------------- */

.small-list,
.terms,
.stitch-list,
.never-list,
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.small-list li {
  font-size: 0.9375rem;
  color: var(--muted);
}

.terms {
  margin-top: 24px;
  max-width: 52em;
}

.terms li,
.stitch-list li,
.ticks li {
  position: relative;
  padding-left: 24px;
}

.terms li {
  font-size: 0.9375rem;
  color: var(--muted);
}

.terms li::before,
.stitch-list li::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 12px;
  border-top: 2px dashed var(--amber);
}

.never-list li {
  position: relative;
  padding-left: 24px;
}

.never-list li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: -0.05em;
  color: var(--amber);
  font-weight: 600;
}

/* ---- Forms (the platform's <Form>, styled through its unrigid-* classes) ------------ */

.form {
  display: grid;
  gap: 18px;
  align-items: start;
}

.form .unrigid-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.form label {
  font-weight: 600;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="number"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  font: inherit;
  color: var(--kohl);
  background: var(--white);
  border: 1.5px solid #8b8274;
  border-radius: var(--radius);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--kohl);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--kohl) 50%), linear-gradient(135deg, var(--kohl) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form textarea {
  min-height: 110px;
}

.form .unrigid-field-checkbox,
.form .unrigid-field-consent {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.form .unrigid-field-checkbox label,
.form .unrigid-field-consent label {
  font-weight: 400;
  font-size: 0.96875rem;
}

.form .unrigid-field-checkbox .unrigid-error,
.form .unrigid-field-consent .unrigid-error,
.form .unrigid-field-checkbox .unrigid-help,
.form .unrigid-field-consent .unrigid-help {
  grid-column: 1 / -1;
}

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

.form .unrigid-required,
.form .unrigid-help {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.form .unrigid-error {
  color: #9b1c1c;
  font-weight: 600;
  font-size: 0.92rem;
}

.form .unrigid-form-status {
  padding: 12px 14px;
  border: 1px dashed var(--amber);
  background: var(--muslin);
}

.form .unrigid-form-status:empty {
  display: none;
}

.form button,
.form [type="submit"] {
  justify-self: stretch;
  min-height: 54px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  background: var(--amber);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.form button:hover,
.form [type="submit"]:hover {
  background: var(--amber-deep);
}

.form button:disabled,
.form [type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

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

.site-footer {
  background: var(--kohl);
  color: #e9e3d6;
  padding: 56px 0 28px;
  font-size: 0.96875rem;
}

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

.site-footer a:hover {
  color: var(--white);
}

.site-footer .logo,
.site-footer .logo:hover {
  color: var(--white);
}

.site-footer .wm-arc {
  color: #e2b47a;
}

.site-footer .wm-urdu {
  color: #cfc4b0;
}

.site-footer .kicker {
  color: #cfc4b0;
  margin-bottom: 12px;
}

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

.footer-id {
  display: grid;
  gap: 14px;
}

.footer-promise {
  max-width: 28em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-imprint .imprint-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.kv {
  margin: 0;
  display: grid;
  gap: 8px;
}

.kv dt {
  font-size: 0.8125rem;
  color: #cfc4b0;
}

.kv dd {
  margin: 0;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #5b544a;
  color: #cfc4b0;
  font-size: 0.875rem;
}
