@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --arthour-bg: #faf8f5;
  --arthour-panel: #f5f2ed;
  --arthour-surface: #ffffff;
  --arthour-ink: #1a2744;
  --arthour-body: #48484a;
  --arthour-muted: #8e8e93;
  --arthour-tertiary: #c4c0b9;
  --arthour-line: #d4cfc7;
  --arthour-blue: #2b4c8c;
  --arthour-blue-soft: #e9eef8;
  --arthour-deep: #1f242b;
  --arthour-deep-panel: #2f3944;
  --arthour-midnight: #0f1b2d;
  --arthour-error: #c44040;
  --arthour-alert: #b42318;
  --arthour-alert-surface: #fff3f0;
  --arthour-alert-border: #fda29b;
  --arthour-success: #2f6f54;
  --arthour-focus: #2b4c8c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-hero: clamp(3.4rem, 8vw, 5.6rem);
  --text-page: clamp(2.1rem, 4vw, 4rem);
  --text-section: clamp(1.55rem, 2.4vw, 2.2rem);
  --text-card: 1.25rem;
  --text-body-lg: 1.0625rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-meta: 0.6875rem;
  --shadow-card: 0 2px 6px rgba(15, 27, 45, 0.03);
  --shadow-float: 0 12px 28px rgba(15, 27, 45, 0.12);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--arthour-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--arthour-ink);
  background: var(--arthour-bg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  color: #ffffff;
  background: var(--arthour-blue);
}

.minimal-home {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  padding: 32px 20px;
  text-align: center;
}

.minimal-home h1 {
  max-width: none;
  font-size: clamp(3.5rem, 12vw, 7rem);
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
}

.home-links a {
  color: var(--arthour-body);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-links a:hover {
  color: var(--arthour-blue);
}

.footer-links a:hover,
.legal-nav a:hover,
.text-link:hover {
  color: var(--arthour-blue);
}

.page-wordmark {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--arthour-ink);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--arthour-blue);
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--arthour-ink);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
}

h2 {
  margin: 0;
  color: var(--arthour-ink);
  font-size: var(--text-section);
  font-weight: 600;
  line-height: 1.14;
}

h3 {
  margin: 0;
  color: var(--arthour-ink);
  font-weight: 600;
}

.lede {
  margin: 22px 0 0;
  max-width: 39rem;
  color: var(--arthour-body);
  font-size: var(--text-body-lg);
  line-height: 1.65;
}

.page-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  place-items: center;
}

.landing-shell {
  place-items: center;
}

.auth-shell {
  align-content: center;
}

.legal-shell {
  display: block;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px) 20px;
}

.brand-panel,
.auth-panel,
.legal-panel {
  width: min(100%, 620px);
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 22px;
  background: var(--arthour-surface);
  box-shadow: var(--shadow-card);
}

.brand-panel {
  padding: clamp(32px, 7vw, 68px);
}

.auth-panel {
  padding: clamp(26px, 5vw, 48px);
}

.legal-panel {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
}

.legal-document {
  width: min(100%, 960px);
}

.legal-header {
  margin-bottom: 28px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid var(--arthour-line);
  border-radius: 50%;
  color: var(--arthour-ink);
  background: var(--arthour-surface);
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 600;
}

.auth-panel h1 {
  max-width: none;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.06;
}

.legal-panel h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.04;
}

.legal-document h1 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 6vw, 4.45rem);
}

.legal-panel h2 {
  margin: 34px 0 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}

.legal-document h2 {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--arthour-line);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
}

.legal-document h3 {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal-panel p,
.legal-panel li {
  color: var(--arthour-body);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-panel p {
  margin: 14px 0 0;
}

.legal-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-panel strong {
  color: var(--arthour-ink);
}

.legal-panel .lede {
  max-width: 48rem;
}

.legal-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.legal-meta {
  margin-top: 0;
  color: var(--arthour-blue);
  font-weight: 700;
}

.legal-contact {
  padding: 16px 18px;
  border: 1px solid rgba(43, 76, 140, 0.14);
  border-radius: 18px;
  background: var(--arthour-blue-soft);
}

.legal-document a {
  overflow-wrap: anywhere;
}

.legal-document .app-path {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 76, 140, 0.22);
  border-radius: 14px;
  color: var(--arthour-ink);
  background: var(--arthour-blue-soft);
  font-weight: 700;
  line-height: 1.45;
}

.status {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--arthour-line);
  border-radius: 16px;
  color: var(--arthour-body);
  background: var(--arthour-panel);
  line-height: 1.5;
}

.status[data-tone="error"] {
  color: var(--arthour-error);
  border-color: var(--arthour-alert-border);
  background: var(--arthour-alert-surface);
}

.status[data-tone="success"] {
  color: var(--arthour-success);
  border-color: rgba(47, 111, 84, 0.28);
  background: rgba(47, 111, 84, 0.08);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-form[hidden],
.success-actions[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--arthour-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--arthour-line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--arthour-ink);
  background: var(--arthour-surface);
  font: inherit;
}

input:focus,
a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(43, 76, 140, 0.28);
  outline-offset: 2px;
  border-color: var(--arthour-focus);
}

.action-row,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--arthour-ink);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--arthour-ink);
  background: var(--arthour-surface);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--arthour-ink);
  box-shadow: 0 8px 14px rgba(15, 27, 45, 0.09);
}

.button.secondary {
  color: var(--arthour-blue);
  border-color: rgba(43, 76, 140, 0.28);
  background: var(--arthour-surface);
}

.button:hover {
  transform: translateY(-1px);
}

.footer-links,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 34px;
}

.legal-document .legal-nav {
  padding-top: 24px;
  border-top: 1px solid var(--arthour-line);
}

.footer-links a,
.legal-nav a,
.text-link {
  color: var(--arthour-blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.support-shell {
  padding-block: clamp(24px, 5vw, 64px);
}

.support-panel {
  width: min(100%, 980px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.support-header {
  max-width: 760px;
  margin: 0 auto clamp(20px, 4vw, 32px);
}

.support-header .page-wordmark {
  margin-bottom: 24px;
}

.support-panel h1 {
  max-width: none;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
}

.support-contact-card,
.support-section,
.important-notice {
  margin-top: 22px;
  padding: clamp(20px, 3.4vw, 32px);
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 22px;
  background: var(--arthour-surface);
  box-shadow: var(--shadow-card);
}

.support-contact-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
}

.support-contact-card div {
  min-width: 0;
}

.support-contact-card dt {
  margin: 0 0 6px;
  color: var(--arthour-ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-contact-card dd {
  margin: 0;
  color: var(--arthour-body);
  font-size: 1rem;
  line-height: 1.55;
}

.support-panel .support-section h2,
.support-panel .important-notice h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.support-topic {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--arthour-line);
}

.support-section h2 + .support-topic,
.faq-list .support-topic:first-child {
  margin-top: 18px;
}

.support-topic h3 {
  margin: 0;
  color: var(--arthour-ink);
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.4;
  font-weight: 700;
}

.support-topic h3 + p {
  margin-top: 10px;
}

.support-panel .app-path {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 76, 140, 0.22);
  border-radius: 14px;
  color: var(--arthour-ink);
  background: var(--arthour-blue-soft);
  font-weight: 700;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 0;
}

.important-notice {
  border-color: rgba(196, 64, 64, 0.28);
  background: var(--arthour-alert-surface);
}

.important-notice h2 {
  color: var(--arthour-error);
}

.important-notice p {
  color: var(--arthour-body);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 24px 14px;
    place-items: stretch;
  }

  .brand-panel,
  .auth-panel,
  .legal-panel {
    align-self: center;
  }

  .action-row,
  .success-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .support-contact-card dl {
    grid-template-columns: 1fr;
  }

  .support-contact-card,
  .support-section,
  .important-notice {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
  }
}
