/* Ponvel Group template: tokens, type, header, footer, buttons, forms.
   Slate threshold above and below, warm paper between; turmeric only on slate,
   leaf green for links on paper. Instrument Serif for names and years, Hanken Grotesk for the rest. */

:root {
  --slate: #22201c;
  --slate-2: #2e2b26;
  --rice: #f3eee2;
  --rice-dim: #c9c1b0;
  --paper: #f8f5ed;
  --paper-2: #efe9dc;
  --sheet: #fffdf8;
  --ink: #22201c;
  --muted: #5a5347;
  --rule: #d9d2c2;
  --gold: #d3a11c;
  --gold-ink: #7e5f08;
  --leaf: #2e6a4c;
  --leaf-dark: #1f4b35;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tamil: "Catamaran", "Hanken Grotesk", sans-serif;
  --header: 64px;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

:lang(ta) {
  font-family: var(--tamil);
}

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

img {
  height: auto;
}

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

h1 {
  font-size: clamp(2.6rem, 9vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 5.6vw, 3.4rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1em;
}

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

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

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

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

.narrow {
  max-width: 820px;
}

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.kicker-light {
  color: var(--gold);
}

.lede {
  font-size: 1.18rem;
  max-width: 62ch;
  color: var(--muted);
}

.dim {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.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: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--slate);
  font-weight: 700;
}

.skip:focus {
  top: 8px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--rule);
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--slate);
}

.btn-gold:hover {
  background: #e4b538;
  color: var(--slate);
}

.btn-ink {
  background: var(--slate);
  color: var(--rice);
}

.btn-ink:hover {
  background: var(--leaf-dark);
  color: var(--rice);
}

.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--rice);
}

.btn-line-light {
  border-color: var(--rice-dim);
  color: var(--rice);
}

.btn-line-light:hover {
  background: var(--rice);
  color: var(--slate);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate);
  color: var(--rice);
  border-bottom: 1px solid #3a3630;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rice);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

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

.logo .mark {
  flex: none;
}

.mark-line {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-dot {
  fill: var(--gold);
}

.mark-own {
  fill: var(--leaf);
}

.logo-words {
  display: grid;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rice-dim);
}

.nav-wide {
  display: none;
}

.header-main {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.95rem;
}

.hide-small {
  display: none;
}

.nav-small {
  position: relative;
}

.nav-small summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--rice);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.burger {
  position: relative;
}

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

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

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

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: var(--slate-2);
  border: 1px solid #4a453d;
  border-radius: 6px;
}

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

.nav-small a {
  display: block;
  padding: 12px 18px;
  color: var(--rice);
  text-decoration: none;
  font-weight: 600;
}

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

.notice .wrap {
  display: block;
}

.notice {
  margin: 0;
  padding: 10px 0;
  background: var(--paper-2);
  font-size: 0.95rem;
}

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

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

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

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

.site-footer .kicker {
  color: var(--gold);
}

.footer-companies {
  padding-bottom: 32px;
  border-bottom: 1px solid #3a3630;
}

.footer-companies ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.footer-companies li {
  display: grid;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--rice-dim);
}

.footer-companies li a {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--rice);
}

.footer-note-small {
  font-size: 0.85rem;
  color: var(--rice-dim);
  margin: 0;
}

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

.footer-promise {
  margin-top: 12px;
  color: var(--rice-dim);
  max-width: 34ch;
}

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

.footer-social {
  margin-top: 16px;
}

.imprint-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #3a3630;
  font-size: 0.85rem;
  color: var(--rice-dim);
}

.footer-base p {
  margin: 0;
}

/* label over value: imprints and registered details */
.kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

.kv > div {
  display: grid;
  gap: 1px;
}

.kv dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .kv dt {
  color: var(--rice-dim);
}

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---- 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: 650;
}

.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: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid #8a8272;
  border-radius: 6px;
}

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

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

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

.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: 500;
}

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

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

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

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

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

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

.form button,
.form [type="submit"] {
  justify-self: start;
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  color: var(--rice);
  background: var(--slate);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

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

.form button:disabled {
  background: var(--muted);
  cursor: progress;
}

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