/* All Our Company — house styles.
   Palette and type taken from the approved UI mockups (docs/mockups). */

:root {
  --paper: #f2f1ec;
  --card: #ffffff;
  --ink: #1a2030;
  --ink-soft: #4a5368;
  --muted: #c9ccd6;
  --line: #c9c5ba;
  --accent: #e8735a;
  --accent-ink: #9e3119;
  --accent-ink-hover: #6f2211;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 32, 48, 0.06), 0 8px 24px rgba(26, 32, 48, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 500; }
h3 { font-size: 1.0625rem; font-weight: 600; }

a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-hover); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.75rem 2rem;
}
.masthead h1 { color: var(--paper); }
.masthead p { margin: 0; color: var(--muted); }
.masthead__brand { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.875rem; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 1.75rem; }
.wrap--narrow { max-width: 34rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card h2, .card h3 { margin-top: 0; }

.stack > * + * { margin-top: 0.75rem; }

.btn,
button[type="submit"],
.allauth button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 500 1rem "IBM Plex Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary,
button[type="submit"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--primary:hover,
button[type="submit"]:hover { background: #121726; color: #fff; }

/* A secondary choice that sits beside the primary one, as the Google button
   does on the sign-in page. */
button.btn--outline,
.btn--outline {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
button.btn--outline:hover,
.btn--outline:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 400 1rem "IBM Plex Sans", system-ui, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

label { display: block; font-weight: 500; margin-bottom: 0.25rem; }

.hint { color: var(--ink-soft); font-size: 0.9375rem; }

.notice {
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.notice--warn { border-left-color: var(--warn); }
.notice--bad { border-left-color: var(--bad); }
.notice--ok { border-left-color: var(--ok); }

.banner-staging {
  background: var(--warn);
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.sitefoot {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 1.75rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.rolebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.rolebar a { margin-left: auto; }

.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
}

.todo { list-style: none; padding: 0; margin: 0; }
.todo li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }

@media (min-width: 48rem) {
  .btn { width: auto; display: inline-flex; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
