:root {
  color-scheme: dark;
  --void: #080c0a;
  --panel: #101713;
  --panel-strong: #152019;
  --line: #30443a;
  --ink: #eef5ef;
  --muted: #a8b7ac;
  --teal: #3dffd0;
  --amber: #d4a017;
  --danger: #ffb4a8;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  margin: 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(61, 255, 208, 0.08), transparent 28rem),
    var(--void);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal);
}

a:hover {
  color: #a8ffec;
}

:focus-visible {
  outline: 0.18rem solid var(--amber);
  outline-offset: 0.2rem;
}

.site-header,
.site-footer,
.page-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.wordmark::before {
  color: var(--amber);
  content: "∴ ";
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 5.7rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.page-wrap {
  padding: 5rem 0 6rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  min-height: 32rem;
  align-content: center;
  max-width: 56rem;
}

.hero p,
.intro {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  color: var(--amber) !important;
  font-family: "Courier New", monospace;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button,
button {
  border: 1px solid var(--teal);
  border-radius: 0.2rem;
  background: var(--teal);
  color: var(--void);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button:hover,
button:hover {
  border-color: #a8ffec;
  background: #a8ffec;
  color: var(--void);
}

.button.secondary,
button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-row,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section {
  margin-top: 5rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading p {
  max-width: 34rem;
  color: var(--muted);
}

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

.card,
.tool-card,
.note-card {
  border: 1px solid var(--line);
  background: rgba(16, 23, 19, 0.9);
  padding: 1.4rem;
}

.card {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  justify-content: space-between;
}

.card p,
.note-card p,
.muted {
  color: var(--muted);
}

.card-link {
  align-self: flex-start;
  margin-top: 1rem;
  font-weight: 700;
}

.privacy-note {
  border-left: 0.25rem solid var(--amber);
  color: var(--muted);
  margin-top: 2rem;
  max-width: 50rem;
  padding: 0.2rem 0 0.2rem 1rem;
}

.tool-intro {
  max-width: 48rem;
  margin-bottom: 2.2rem;
}

.tool-intro h1 {
  max-width: 16ch;
}

.tool-card {
  max-width: 56rem;
}

.tool-card form,
.field-stack {
  display: grid;
  gap: 1rem;
}

label,
.field-label {
  color: var(--ink);
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: #0b110d;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem;
}

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

select {
  min-height: 3rem;
}

.field-help {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.message,
.result {
  border: 1px solid var(--line);
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.message.error {
  border-color: var(--danger);
  color: var(--danger);
}

.result {
  background: var(--panel-strong);
}

.result pre {
  overflow-x: auto;
  white-space: pre-wrap;
  font: 1rem/1.6 "Courier New", monospace;
}

.thought-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.thought-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 12rem);
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.thought-label {
  font-weight: 400;
}

.result textarea {
  min-height: 14rem;
  background: #0b110d;
}

.guide-list {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.guide-link {
  display: block;
  border: 1px solid var(--line);
  padding: 1.2rem;
  text-decoration: none;
}

.guide-link strong,
.guide-link span {
  display: block;
}

.guide-link span {
  color: var(--muted);
  margin-top: 0.3rem;
}

.article {
  max-width: 48rem;
}

.article h1 {
  max-width: 16ch;
}

.article h2 {
  margin-top: 3rem;
}

.article ul,
.article ol {
  padding-left: 1.4rem;
}

.article li {
  margin: 0.55rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 3rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

@media (max-width: 46rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-wrap {
    padding-top: 3.5rem;
  }

  .hero {
    min-height: 25rem;
  }

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

  .thought-row {
    grid-template-columns: 1fr;
  }
}
