/* Sandbox Realty: dark like the REIT dashboard, with large high-contrast text for easy reading. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #171717;
  --line: #262626;
  --border: #404040;
  --border-strong: #737373;
  --text: #f5f5f5;
  --text-soft: #d4d4d4;
  --text-muted: #a3a3a3;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-ink: #1a1206;
  --link: #fcd34d;
  --danger: #f87171;
  --danger-bg: #2a1212;
  --danger-ink: #fecaca;
  --ok: #34d399;
  --ok-bg: #0c2419;
  --ok-ink: #bbf7d0;
  --radius: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

/* 18px base text: bigger than most sites, for comfortable reading. */
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Shown on every page of the dev copy and the local copy, so they're never mistaken for the live site. */
.env-banner {
  margin: 0;
  padding: 0.5rem 1rem;
  background: #172554;
  color: #bfdbfe;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--line);
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Page content */

.page {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-soft);
}

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

.hero {
  padding: 1.5rem 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero .button {
  margin: 0.5rem 0 1rem;
}

@media (min-width: 40rem) {
  .page {
    padding-top: 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* Buttons: tall, with a clear label, easy to tap. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

.button-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger-ink);
}

.button-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.25rem 1rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav a {
    transition: background-color 0.15s, border-color 0.15s;
  }
}

/* Forms */

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.stack > form {
  margin: 0;
}

.stack .button {
  margin-top: 0.75rem;
}

label {
  font-weight: 600;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.625rem 1rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.1875rem;
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--accent);
}

input.code-input {
  max-width: 14rem;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

@media (max-width: 40rem) {
  .stack .button,
  .hero .button {
    width: 100%;
  }
}

/* Messages */

.notice,
.error {
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid;
  border-radius: var(--radius);
}

.notice {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok-ink);
}

.error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger-ink);
}

/* Lists of details, like an account's email and role */

.details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.details div {
  display: grid;
  gap: 0.125rem;
}

.details dt {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.details dd {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.actions form {
  margin: 0;
}

.panel {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.panel h2 {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel input[type="email"],
.panel input[type="text"] {
  background: var(--bg);
}

/* People (admin) */

.people {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* On a phone the Manage button moves under the text, so long emails don't break mid-word. */
.person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.person-text {
  flex: 1 1 14rem;
  min-width: 0;
}

.person-text p {
  margin: 0;
  overflow-wrap: anywhere;
}

.person-name {
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Tools */

.empty {
  padding: 2rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
}

.empty p:not(.lead) {
  color: var(--text-muted);
}

.empty p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-soft);
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card-title {
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 650;
}
