@font-face {
  font-family: "PahariSans";
  src: url("/fonts/sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Standalone fallback values are the existing DESIGN.md house tokens. */
.hw-not-found {
  /* This recovery surface follows the light-only house contract in every shell. */
  --ink: #2f2b28;
  --paper: #d0ccc9;
  --hw-field: var(--paper);
  --hw-field-raised: #d9d6d4;
  --nf-ink: var(--ink, #2f2b28);
  --nf-paper: var(--hw-field, var(--paper, #d0ccc9));
  --nf-raised: var(--hw-field-raised, #d9d6d4);
  --nf-button: var(--nf-ink);
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  background: var(--nf-paper);
  color: var(--nf-ink);
  font-family: var(--font-para, "PahariSans"), sans-serif;
  font-variant: normal;
  text-transform: none;
  letter-spacing: normal;
}
.hw-not-found[data-brand="templeworld"] {
  --nf-ink: var(--tw-ink, #5d524b);
  --nf-paper: var(--tw-paper, #fef9ed);
  --nf-raised: var(--tw-field, #f7ecd9);
  --nf-button: var(--tw-orange, #b3552a);
}
/* Healers World: the divine palette replaced the grey #d0ccc9 field on
   2026-10-04 (DESIGN.md, src/app/hw-divine.css). The other brands keep their
   own fields. */
.hw-not-found[data-brand="healersworld"] {
  --nf-ink: var(--dvn-ink, #26201b);
  --nf-paper: var(--dvn-paper, #f5f0e8);
  --nf-raised: var(--dvn-raised, #fbf8f3);
  --nf-button: var(--dvn-ink, #26201b);
}
.hw-not-found *, .hw-not-found *::before, .hw-not-found *::after { box-sizing: border-box; }
.hw-not-found__inner { max-width: 1120px; margin-inline: auto; }
.hw-not-found__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hw-not-found .hw-not-found__intro h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--nf-ink);
  font-family: var(--font-para, "PahariSans"), sans-serif;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  font-weight: 550;
  font-variant: normal;
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hw-not-found__intro p { max-width: 44ch; margin: 1rem 0 1.75rem; color: var(--nf-ink); font-size: 1.0625rem; line-height: 1.65; }
.hw-not-found .hw-not-found__primary, .hw-not-found__search button {
  display: inline-flex;
  min-height: 48px;
  padding: .8rem 1.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--hw-radius-pill, 999px);
  background: var(--nf-button);
  color: var(--nf-paper);
  font: 600 1rem/1.6 var(--font-para, "PahariSans"), sans-serif;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: transform 180ms ease-out;
}
.hw-not-found .hw-not-found__primary:hover, .hw-not-found__search button:hover { color: var(--nf-paper); transform: translateY(-2px); }
.hw-not-found__art { display: block; width: 100%; max-width: 440px; height: auto; max-height: 360px; object-fit: contain; justify-self: center; }
.hw-not-found__search { margin-top: 2rem; }
.hw-not-found__search label { display: block; margin-bottom: .65rem; font-weight: 550; line-height: 1.6; }
.hw-not-found__search > div { display: flex; flex-wrap: wrap; gap: .6rem; }
.hw-not-found__search input {
  min-width: 0;
  width: 100%;
  flex: 1 1 180px;
  min-height: 48px;
  padding: .8rem 1rem;
  border: 0;
  border-radius: var(--hw-radius-card, 20px);
  background: var(--nf-raised);
  color: var(--nf-ink);
  font: 400 1rem/1.6 var(--font-para, "PahariSans"), sans-serif;
}
.hw-not-found__search input::placeholder { color: var(--nf-ink); opacity: 1; }
.hw-not-found__destinations { margin-top: clamp(3rem, 6vw, 5rem); }
.hw-not-found .hw-not-found__destinations h2 { margin: 0 0 1.25rem; color: var(--nf-ink); font: 550 1.35rem/1.6 var(--font-para, "PahariSans"), sans-serif; font-variant: normal; text-transform: none; letter-spacing: normal; }
.hw-not-found__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hw-not-found .hw-not-found__card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 0;
  border-radius: var(--hw-radius-card, 20px);
  background: var(--nf-raised);
  color: var(--nf-ink);
  text-decoration: none;
  transition: transform 180ms ease-out;
}
.hw-not-found__card > span:last-child { min-width: 0; }
.hw-not-found__card strong { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.hw-not-found__card strong + span { display: block; margin-top: .3rem; font-size: .9375rem; line-height: 1.65; overflow-wrap: anywhere; }
.hw-not-found__icon { flex: 0 0 28px; padding-top: .2rem; }
.hw-not-found__icon svg { display: block; width: 28px; height: 28px; }
.hw-not-found .hw-not-found__card:hover { color: var(--nf-ink); transform: translateY(-3px); }
.hw-not-found .hw-not-found__card:active, .hw-not-found .hw-not-found__primary:active, .hw-not-found__search button:active { transform: scale(.98); }
.hw-not-found :is(a, button, input):focus-visible { outline: 3px solid var(--nf-ink); outline-offset: 4px; }

/* Healers World in the hw2 look (2026-10-10): slim logo bar, the ambient
   saffron hero panel with crayon art, and tinted cards with crayon icons.
   The values are the hw2 saffron tokens; this file also serves the hard 404,
   which has no site shell or hw2 stylesheet. */
.hw-not-found[data-brand="healersworld"] {
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  font-family: var(--hw2-geist, "Geist"), var(--hw2-deva, "Noto Sans Devanagari"), system-ui, -apple-system, "Segoe UI", sans-serif;
}
.hw-not-found[data-brand="healersworld"] .hw-not-found__inner { max-width: 1200px; padding-top: clamp(1rem, 3vw, 2rem); }
.hw-not-found__bar { display: flex; align-items: center; margin: -0.25rem 0 1rem; }
.hw-not-found .hw-not-found__logo { display: inline-flex; min-height: 44px; align-items: center; gap: .6rem; color: var(--nf-ink); font-size: 1.05rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.hw-not-found__logo img { display: block; width: 36px; height: auto; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__hero {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 95% at 50% 38%, var(--hero-a, #fff8f1) 0%, var(--hero-b, #ffe6cf) 30%, var(--hero-c, #ffb27c) 56%, var(--accent, #ff5e1f) 82%);
}
.hw-not-found[data-brand="healersworld"] .hw-not-found__intro h1 { font-family: inherit; font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__intro p { font-size: 1.125rem; }
.hw-not-found[data-brand="healersworld"] :is(.hw-not-found__primary, .hw-not-found__search button, .hw-not-found__search input, .hw-not-found__destinations h2) { font-family: inherit; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__search input { background: #ffffff; box-shadow: inset 0 0 0 1px #e7e6e2; }
/* The hw2 primary button: the brand saffron, as every other HW page. */
.hw-not-found[data-brand="healersworld"] :is(.hw-not-found__primary, .hw-not-found__search button) { background: var(--btn, #ff5e1f); color: var(--btn-ink, #ffffff); box-shadow: 0 10px 22px -12px rgb(255 94 31 / .7); }
.hw-not-found[data-brand="healersworld"] :is(.hw-not-found__primary, .hw-not-found__search button):hover { color: var(--btn-ink, #ffffff); }
.hw-not-found[data-brand="healersworld"] .hw-not-found__art { max-width: 400px; padding: 10px; border-radius: 28px; background: #ffffff; box-shadow: 0 18px 40px -24px rgb(60 30 0 / .45); }
.hw-not-found[data-brand="healersworld"] .hw-not-found__destinations h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__card {
  --nf-tint: #ff6a2b;
  align-items: center;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--nf-tint) 16%, #ffffff) 0%, #ffffff 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nf-tint) 22%, #e7e6e2), 0 10px 30px -22px rgb(60 30 0 / .35);
}
.hw-not-found[data-brand="healersworld"] .hw-not-found__card:nth-child(6n+2) { --nf-tint: #22a35e; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__card:nth-child(6n+3) { --nf-tint: #3d86e6; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__card:nth-child(6n+4) { --nf-tint: #8a72f0; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__card:nth-child(6n+5) { --nf-tint: #f5a800; }
.hw-not-found[data-brand="healersworld"] .hw-not-found__card:nth-child(6n+6) { --nf-tint: #e5476d; }
.hw-not-found__icon--cray { flex: 0 0 48px; padding-top: 0; }
.hw-not-found__icon--cray img { display: block; width: 48px; height: 48px; object-fit: contain; }

@keyframes hw-not-found-arrive { from { transform: translateY(8px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hw-not-found__hero, .hw-not-found__destinations { animation: hw-not-found-arrive 420ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-not-found *, .hw-not-found *::before, .hw-not-found *::after { animation: none; transition: none; }
  .hw-not-found :is(a, button):is(:hover, :active) { transform: none; }
}
@media (max-width: 800px) {
  .hw-not-found__hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hw-not-found__art { grid-row: 1; max-width: 260px; max-height: 190px; }
  .hw-not-found__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-not-found .hw-not-found__card { flex-direction: column; gap: .6rem; }
  .hw-not-found[data-brand="healersworld"] .hw-not-found__card { align-items: flex-start; }
}
@media (max-width: 420px) {
  .hw-not-found { padding-top: 2.5rem; }
  .hw-not-found .hw-not-found__card { padding: 1rem; }
  .hw-not-found__search button { flex: 1 0 auto; }
}
