/* Isha look: warm neutrals, Isha orange (#ec671b, darkened for readable
   white button text), compact type. Loaded after Pico, same specificity,
   so these win in light and dark mode. */
:root {
  /* Pico scales text up to 131% on wide screens; keep it calm */
  --pico-font-size: 100%;
  --pico-line-height: 1.5;
  --pico-border-radius: 0.5rem;
  --pico-spacing: 0.875rem;
  --pico-form-element-spacing-vertical: 0.6rem;
  --pico-form-element-spacing-horizontal: 0.85rem;
  --pico-font-family-sans-serif:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

:root:not([data-theme="dark"]),
[data-theme="light"] {
  --isha-page: #f7f3ee;
  --isha-card: #ffffff;
  --isha-line: #e8e0d6;
  --pico-background-color: var(--isha-page);
  --pico-color: #3b3530;
  --pico-h1-color: #2a2420;
  --pico-h2-color: #2a2420;
  --pico-muted-color: #857a70;
  --pico-card-background-color: var(--isha-card);
  --pico-form-element-background-color: #fffdfa;
  --pico-form-element-border-color: #ddd3c7;
  --pico-primary: #b8501a;
  --pico-primary-background: #c2531a;
  --pico-primary-border: #c2531a;
  --pico-primary-underline: rgba(184, 80, 26, 0.5);
  --pico-primary-hover: #9c4314;
  --pico-primary-hover-background: #a8470f;
  --pico-primary-hover-border: #a8470f;
  --pico-primary-focus: rgba(236, 103, 27, 0.25);
  --pico-form-element-focus-color: #c2531a;
  --pico-primary-inverse: #fff;
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --isha-page: #15120f;
    --isha-card: #1e1a16;
    --isha-line: #2e2822;
    --pico-background-color: var(--isha-page);
    --pico-color: #e6ddd3;
    --pico-h1-color: #f5eee6;
    --pico-h2-color: #f5eee6;
    --pico-muted-color: #9d9185;
    --pico-card-background-color: var(--isha-card);
    --pico-form-element-background-color: #171410;
    --pico-form-element-border-color: #3a332c;
    --pico-primary: #f08a4b;
    --pico-primary-background: #c2531a;
    --pico-primary-border: #c2531a;
    --pico-primary-underline: rgba(240, 138, 75, 0.5);
    --pico-primary-hover: #f5a574;
    --pico-primary-hover-background: #d65f1f;
    --pico-primary-hover-border: #d65f1f;
    --pico-primary-focus: rgba(236, 103, 27, 0.3);
    --pico-form-element-focus-color: #ec671b;
    --pico-primary-inverse: #fff;
  }
}

[x-cloak] {
  display: none !important;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--isha-page);
}

main.container {
  max-width: 25rem;
  padding-block: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-inline: 0.25rem;
}
.brand h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.brand .tagline {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}

/* Isha logo (inline SVG): letters follow the text colour */
.brand .logo {
  height: 2.6rem;
  width: auto;
  flex-shrink: 0;
  color: var(--pico-color);
}

article {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--isha-line);
  box-shadow:
    0 1px 2px rgba(60, 40, 20, 0.04),
    0 8px 24px rgba(60, 40, 20, 0.06);
}

article h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

article p {
  font-size: 0.925rem;
  color: var(--pico-muted-color);
}

label {
  font-size: 0.875rem;
  font-weight: 500;
}

article > button,
article form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 500;
}

select + small {
  display: block;
  margin-top: -0.4rem;
}

small {
  font-size: 0.8rem;
}

.error {
  color: var(--pico-del-color);
}

.note {
  color: var(--pico-muted-color);
}

/* Quiet text-style buttons for secondary actions */
button.link {
  background: none;
  border: none;
  padding: 0;
  width: auto;
  margin-top: 0.75rem;
  color: var(--pico-primary);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.link:disabled {
  color: var(--pico-muted-color);
  text-decoration: none;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
