:root {
  --ink: #14181f;
  --muted: #5c6570;
  --paper: #f4f1eb;
  --card: #fffcf8;
  --line: #e4ddd2;
  --accent: #1c6b58;
  --warn: #9a3412;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 50% -40px, #fff, transparent 70%),
    var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
}

.bar nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.12;
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}

p {
  margin: 0.7rem 0 0;
}

header p:first-of-type {
  color: var(--muted);
}

#gate,
#app,
main > section {
  margin-top: 1.5rem;
  max-width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: 0 16px 40px rgba(20, 24, 31, 0.05);
  overflow-wrap: break-word;
}

#lease-log,
#coding-log {
  max-height: 22rem;
  overflow: auto;
  overflow-wrap: anywhere;
}

.chat {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f4;
  padding: 0.35rem 0.9rem 0.9rem;
}

.chat-compose textarea {
  min-height: 4.5rem;
}

.spec-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: 9.5rem;
  margin-top: 0.9rem;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  font: inherit;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

label.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

label.check input {
  width: auto;
  margin-top: 0.2rem;
}

label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

input, textarea, select, button {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

button {
  margin-top: 1rem;
  background: var(--ink);
  color: #f6f3ee;
  border-color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #2a3140;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.choices button {
  width: auto;
  margin-top: 0;
}

.audience-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.audience-choices button {
  margin-top: 0.85rem;
}

.audience-choices button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.links {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.account-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-links > a {
  justify-self: start;
}

.account-links > button {
  justify-self: end;
}

.path-center {
  text-align: center;
}

.path-center .path {
  justify-content: center;
  margin-top: 0;
}

#path-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

button.link {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

button.link:hover {
  background: none;
}

button.link[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

.card {
  margin-top: 1rem;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.warn {
  margin-top: 0.8rem;
  color: var(--warn);
}

table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  gap: 1rem;
}

footer p {
  margin-top: 0.45rem;
}

.risk {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.soon {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.85rem;
  }

  .account-links {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .account-links > a,
  .account-links > button {
    justify-self: center;
  }
}
