@font-face {
  font-family: "Onest";
  src: url("/shared/fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Prata";
  src: url("/shared/fonts/Prata-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --arc-bg: #0b1014;
  --arc-bg-soft: #11191d;
  --arc-surface: #151f23;
  --arc-surface-2: #1c282c;
  --arc-ink: #f4f0e8;
  --arc-ink-2: #c9c6bd;
  --arc-muted: #989d9a;
  --arc-line: rgba(240, 233, 220, 0.12);
  --arc-line-strong: rgba(240, 233, 220, 0.22);
  --arc-teal: #69b7ad;
  --arc-teal-soft: rgba(105, 183, 173, 0.13);
  --arc-berry: #c27a96;
  --arc-berry-soft: rgba(194, 122, 150, 0.13);
  --arc-gold: #d8b36a;
  --arc-gold-soft: rgba(216, 179, 106, 0.14);
  --arc-success: #79c79d;
  --arc-danger: #e9949f;
  --arc-focus: #8dcfc6;
  --arc-radius-xs: 8px;
  --arc-radius-sm: 11px;
  --arc-radius: 16px;
  --arc-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  --arc-font: "Onest", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --arc-display-font: "Prata", Georgia, "Times New Roman", serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --arc-bg: #f7f8f6;
  --arc-bg-soft: #edf2ef;
  --arc-surface: #ffffff;
  --arc-surface-2: #f1f5f3;
  --arc-ink: #202827;
  --arc-ink-2: #4d5956;
  --arc-muted: #68736f;
  --arc-line: rgba(32, 40, 39, 0.12);
  --arc-line-strong: rgba(32, 40, 39, 0.22);
  --arc-teal: #397f77;
  --arc-teal-soft: rgba(57, 127, 119, 0.10);
  --arc-berry: #96536d;
  --arc-berry-soft: rgba(150, 83, 109, 0.10);
  --arc-gold: #916f2f;
  --arc-gold-soft: rgba(145, 111, 47, 0.11);
  --arc-success: #317a51;
  --arc-danger: #a74552;
  --arc-focus: #397f77;
  --arc-shadow: 0 14px 36px rgba(34, 49, 45, 0.10);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--arc-bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, var(--arc-teal-soft), transparent 38%),
    linear-gradient(315deg, var(--arc-berry-soft), transparent 34%),
    var(--arc-bg);
  color: var(--arc-ink);
  font: 400 16px/1.5 var(--arc-font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; letter-spacing: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button, input):focus-visible {
  outline: 3px solid var(--arc-focus);
  outline-offset: 3px;
}

.arc-shell {
  width: min(100%, 880px);
  margin-inline: auto;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
}

.arc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.arc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.arc-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--arc-line-strong);
  border-radius: 50%;
  color: var(--arc-gold);
  background: var(--arc-surface);
  box-shadow: 0 0 0 4px var(--arc-gold-soft);
  font-size: 19px;
}
.arc-brand strong { display: block; font-size: 15px; line-height: 1.1; font-weight: 690; letter-spacing: -.018em; }
.arc-brand span { display: block; color: var(--arc-muted); font-size: 12px; margin-top: 3px; }
.arc-icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--arc-line);
  border-radius: var(--arc-radius);
  background: var(--arc-surface);
  color: var(--arc-ink);
  cursor: pointer;
}

.arc-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border: 1px solid var(--arc-line);
  border-radius: var(--arc-radius);
  background: var(--arc-surface);
  box-shadow: var(--arc-shadow);
}
.arc-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid var(--arc-line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 28px var(--arc-teal-soft), 0 0 0 56px var(--arc-gold-soft);
  pointer-events: none;
}
.arc-kicker { margin: 0 0 8px; color: var(--arc-gold); font-weight: 700; font-size: 12px; }
.arc-title { margin: 0; max-width: 17ch; font-size: 34px; line-height: 1.06; font-weight: 680; letter-spacing: -.038em; text-wrap: balance; }
.arc-lead { max-width: 66ch; margin: 12px 0 0; color: var(--arc-ink-2); text-wrap: pretty; }
.arc-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.arc-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--arc-line);
  border-radius: 999px;
  background: var(--arc-bg-soft);
  color: var(--arc-ink-2);
  font-size: 12px;
}
.arc-chip[data-tone="success"] { color: var(--arc-success); border-color: color-mix(in srgb, var(--arc-success), transparent 70%); }

.arc-section { margin-top: 26px; }
.arc-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.arc-section h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 680; letter-spacing: -.026em; text-wrap: balance; }
.arc-section-head p { margin: 4px 0 0; color: var(--arc-muted); font-size: 13px; }

.arc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 18px 0 0;
  padding: 4px;
  border: 1px solid var(--arc-line);
  border-radius: var(--arc-radius);
  background: var(--arc-bg-soft);
}
.arc-tab {
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--arc-radius-sm);
  background: transparent;
  color: var(--arc-ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.arc-tab[aria-selected="true"] { background: var(--arc-surface); color: var(--arc-ink); box-shadow: 0 1px 4px rgba(0,0,0,.09); }

.arc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.arc-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--arc-line);
  border-radius: var(--arc-radius);
  background: var(--arc-surface);
  color: var(--arc-ink);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform 160ms cubic-bezier(.23,1,.32,1), border-color 160ms ease, background-color 160ms ease;
}
.arc-card:hover { transform: translateY(-2px); border-color: var(--arc-line-strong); }
.arc-card:active { transform: scale(.98); }
.arc-card[data-featured="true"] { grid-column: 1 / -1; min-height: 116px; background: var(--arc-teal-soft); }
.arc-card[data-tone="mystic"] { background: var(--arc-berry-soft); }
.arc-card[data-tone="gold"] { background: var(--arc-gold-soft); }
.arc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.arc-symbol { color: var(--arc-teal); font-size: 21px; line-height: 1; }
.arc-card[data-tone="mystic"] .arc-symbol { color: var(--arc-berry); }
.arc-card[data-tone="gold"] .arc-symbol { color: var(--arc-gold); }
.arc-card h3 { margin: 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.arc-card p { margin: 5px 0 0; color: var(--arc-muted); font-size: 13px; text-wrap: pretty; }
.arc-card-arrow { color: var(--arc-muted); font-size: 18px; }
.arc-card-badge { color: var(--arc-muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.arc-button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.arc-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--arc-radius-sm);
  background: var(--arc-teal);
  color: #071412;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(.23,1,.32,1), filter 140ms ease;
}
.arc-button:hover { filter: brightness(1.06); }
.arc-button:active { transform: scale(.97); }
.arc-button[data-variant="secondary"] { border-color: var(--arc-line-strong); background: var(--arc-surface); color: var(--arc-ink); }
.arc-button:disabled { cursor: not-allowed; opacity: .55; }

.arc-note {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--arc-line);
  border-radius: var(--arc-radius);
  background: var(--arc-bg-soft);
  color: var(--arc-ink-2);
  font-size: 13px;
}

.arc-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--arc-bg);
  transition: opacity 180ms ease;
}
.arc-loader[hidden] { display: none; }
.arc-loader-card { width: min(100%, 300px); text-align: center; }
.arc-orbit {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  position: relative;
  border: 1px solid var(--arc-line-strong);
  border-radius: 50%;
  animation: arc-spin 1.25s linear infinite;
}
.arc-orbit::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  inset: -6px auto auto 22px;
  border-radius: 50%;
  background: var(--arc-gold);
  box-shadow: 0 0 18px var(--arc-gold);
}
.arc-orbit::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  inset: 18px;
  border-radius: 50%;
  background: var(--arc-teal);
}
.arc-loader strong { display: block; font-size: 16px; }
.arc-loader p { margin: 6px 0 0; color: var(--arc-muted); font-size: 13px; }
@keyframes arc-spin { to { transform: rotate(360deg); } }

.arc-state { padding: 22px 18px; border: 1px solid var(--arc-line); border-radius: var(--arc-radius); background: var(--arc-surface); text-align: center; }
.arc-state h2 { margin: 0; font-size: 20px; }
.arc-state p { margin: 8px auto 0; max-width: 52ch; color: var(--arc-ink-2); }

.arc-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 18px;
  border-radius: var(--arc-radius-xs);
  background: var(--arc-surface-2);
}
.arc-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: arc-shimmer 1.35s infinite;
}
@keyframes arc-shimmer { to { transform: translateX(100%); } }

.arc-footer { margin: 28px 0 0; color: var(--arc-muted); text-align: center; font-size: 12px; }
.arc-hidden { display: none !important; }

@media (max-width: 540px) {
  .arc-shell { padding-inline: 12px; }
  .arc-hero { padding: 21px 17px; }
  .arc-title { font-size: 29px; }
  .arc-grid { grid-template-columns: 1fr; }
  .arc-card[data-featured="true"] { grid-column: auto; }
  .arc-tabs { grid-template-columns: 1fr; }
  .arc-tab { min-height: 44px; }
  .arc-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Arcavira UI v12000: semantic shell tokens and shared controls. */
:root {
  --arc-canvas: #071828;
  --arc-surface: #0c2235;
  --arc-surface-raised: #112c42;
  --arc-surface-inset: #061421;
  --arc-text-primary: #f3e7d6;
  --arc-text-secondary: #afc1ce;
  --arc-text-tertiary: #8299a9;
  --arc-text-muted: #718b9a;
  --arc-border-soft: rgba(243, 231, 214, 0.10);
  --arc-border-emphasis: rgba(243, 231, 214, 0.20);
  --arc-focus-ring: #8ac5e7;
  --arc-plus: #f0b27e;
  --arc-danger: #e98f98;
  --arc-success: #72b99a;
  --arc-control-bg: #071b2b;
  --arc-control-border: rgba(243, 231, 214, 0.14);

  --weather-sky: #0b2a43;
  --weather-horizon: #173f57;
  --weather-cloud: #b9cad4;
  --weather-rain: #5e91be;
  --weather-warm: #f0b27e;
  --weather-berry: #b56a86;
  --weather-fog: #91a8b5;

  --arc-bg: var(--arc-canvas);
  --arc-bg-soft: var(--arc-surface-inset);
  --arc-surface-2: var(--arc-surface-raised);
  --arc-ink: var(--arc-text-primary);
  --arc-ink-2: var(--arc-text-secondary);
  --arc-muted: var(--arc-text-tertiary);
  --arc-line: var(--arc-border-soft);
  --arc-line-strong: var(--arc-border-emphasis);
  --arc-focus: var(--arc-focus-ring);
  --arc-teal: var(--weather-rain);
  --arc-teal-soft: color-mix(in srgb, var(--weather-rain) 14%, transparent);
  --arc-berry: var(--weather-berry);
  --arc-berry-soft: color-mix(in srgb, var(--weather-berry) 14%, transparent);
  --arc-gold: var(--weather-warm);
  --arc-gold-soft: color-mix(in srgb, var(--weather-warm) 14%, transparent);
  --arc-radius-xs: 8px;
  --arc-radius-sm: 11px;
  --arc-radius: 17px;
  --arc-radius-focal: 24px;
  --arc-shadow: 0 0 0 1px var(--arc-border-soft);
}

:root[data-theme="light"] {
  --arc-canvas: #e8f1f7;
  --arc-surface: #fafcfe;
  --arc-surface-raised: #ffffff;
  --arc-surface-inset: #dce9f1;
  --arc-text-primary: #17314c;
  --arc-text-secondary: #3f5f76;
  --arc-text-tertiary: #5d7586;
  --arc-text-muted: #536c7b;
  --arc-border-soft: rgba(23, 49, 76, 0.10);
  --arc-border-emphasis: rgba(23, 49, 76, 0.20);
  --arc-focus-ring: #276e9e;
  --arc-plus: #9f526f;
  --arc-danger: #a84255;
  --arc-success: #337b65;
  --arc-control-bg: #e1edf4;
  --arc-control-border: rgba(23, 49, 76, 0.16);

  --weather-sky: #cfe4f1;
  --weather-horizon: #f8f1e7;
  --weather-cloud: #ffffff;
  --weather-rain: #5b91ba;
  --weather-warm: #a84f34;
  --weather-berry: #9f526f;
  --weather-fog: #a8becb;

  --arc-shadow:
    0 0 0 1px rgba(23, 49, 76, 0.05),
    0 2px 5px rgba(31, 63, 85, 0.05),
    0 18px 44px rgba(31, 63, 85, 0.09);
}

html[data-experience="weather"] body {
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--weather-rain) 18%, transparent), transparent 34%),
    linear-gradient(180deg, var(--arc-canvas), color-mix(in srgb, var(--arc-canvas) 90%, var(--weather-horizon)));
}

.arc-shell {
  width: min(100%, 920px);
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
}

.arc-app-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin-bottom: 16px;
}

.arc-header-actions {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
}

.arc-nav-button,
.arc-home-link,
.arc-theme-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--arc-control-border);
  border-radius: var(--arc-radius-sm);
  background: color-mix(in srgb, var(--arc-surface) 92%, transparent);
  color: var(--arc-text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 140ms ease, background-color 140ms ease;
}

.arc-nav-button:hover,
.arc-home-link:hover,
.arc-theme-toggle:hover {
  border-color: var(--arc-border-emphasis);
  background: var(--arc-surface-raised);
}

.arc-nav-button:active,
.arc-home-link:active,
.arc-theme-toggle:active { transform: scale(.97); }

.arc-home-link { justify-self: center; }
.arc-nav-button { justify-self: start; }
.arc-theme-toggle { padding: 8px; }
.arc-nav-icon { width: 17px; height: 17px; flex: 0 0 17px; }

.arc-plus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--arc-plus) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--arc-plus) 12%, transparent);
  color: var(--arc-plus);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}

.arc-drawer {
  width: min(calc(100% - 24px), 660px);
  max-height: min(86vh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--arc-border-emphasis);
  border-radius: 24px;
  background: var(--arc-surface-raised);
  color: var(--arc-text-primary);
  box-shadow: var(--arc-shadow);
}

.arc-drawer::backdrop {
  background: rgba(2, 11, 18, .62);
  backdrop-filter: blur(6px);
}

.arc-drawer-layout { display: grid; max-height: inherit; grid-template-rows: auto minmax(0, 1fr); }
.arc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--arc-border-soft);
}
.arc-drawer-head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.arc-drawer-body { padding: 18px; overflow: auto; }
.arc-close-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--arc-control-border);
  border-radius: var(--arc-radius-sm);
  background: var(--arc-control-bg);
  color: var(--arc-text-primary);
  font-size: 22px;
  cursor: pointer;
}

.arc-button[data-variant="quiet"] {
  border-color: var(--arc-control-border);
  background: var(--arc-control-bg);
  color: var(--arc-text-secondary);
}

@media (max-width: 540px) {
  .arc-shell { padding-inline: 12px; }
  .arc-app-header { grid-template-columns: auto 1fr auto; }
  .arc-home-link { justify-self: stretch; }
  .arc-nav-button,
  .arc-home-link { padding-inline: 9px; }
  .arc-drawer { width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .arc-nav-button,
  .arc-home-link,
  .arc-theme-toggle { transition-property: color, background-color, border-color; }
}

html[data-experience="weather"] .arc-app-header {
  min-height: 48px;
  margin-bottom: 8px;
}

html[data-experience="weather"] .arc-nav-button,
html[data-experience="weather"] .arc-home-link {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

html[data-experience="weather"] .arc-theme-toggle {
  width: 44px;
  border-radius: 999px;
}

@media (max-width: 540px) {
  html[data-experience="weather"] .arc-drawer {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  html[data-experience="weather"] .arc-drawer-layout {
    height: 100%;
  }

  html[data-experience="weather"] .arc-drawer-head {
    padding:
      calc(10px + env(safe-area-inset-top))
      16px
      10px;
  }

  html[data-experience="weather"] .arc-drawer-body {
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  }
}
