:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #5f6c64;
  --line: #dfe5dd;
  --accent: #176b5b;
  --accent-strong: #0d4c40;
  --warn: #8b5a00;
  --error: #a93226;
  --success: #146c43;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: .6rem .8rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, .94);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: .3rem;
}

.nav-links a,
.back-link,
.button-link {
  border-radius: 7px;
  color: var(--muted);
  padding: .45rem .65rem;
  text-decoration: none;
}

.nav-links a:hover,
.back-link:hover,
.button-link:hover {
  background: #e9eee8;
  color: var(--ink);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero,
.tool-hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem;
}

.hero {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section,
.content-band,
.workspace,
.status-grid {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

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

.tool-group,
.panel,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.tool-list {
  display: grid;
  gap: .7rem;
}

.tool-card {
  display: grid;
  gap: .25rem;
  min-height: 96px;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  background: #fbfcfa;
}

.tool-card:hover {
  border-color: #9fb8ae;
  box-shadow: 0 10px 26px rgba(23, 33, 27, .08);
}

.tool-card span {
  font-weight: 750;
}

.tool-card small,
.status-card p,
.content-band p,
li {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.panel {
  display: grid;
  gap: .75rem;
  min-width: 0;
}

label {
  font-weight: 750;
}

textarea {
  width: 100%;
  min-width: 0;
  min-height: 340px;
  resize: vertical;
  border: 1px solid #cfd8d1;
  border-radius: 7px;
  padding: .85rem;
  background: #fcfdfb;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92rem;
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 107, 91, .25);
  outline-offset: 2px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

button,
.button-link {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: white;
  padding: .55rem .8rem;
  font-weight: 750;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
  color: white;
}

button.secondary {
  border-color: #cbd7d0;
  background: #eef3ef;
  color: var(--ink);
}

button.secondary:hover {
  background: #e1e9e3;
}

.status {
  margin: 0;
  min-height: 1.5rem;
  color: var(--muted);
}

.status.success {
  color: var(--success);
}

.status.warn {
  color: var(--warn);
}

.status.error {
  color: var(--error);
}

.content-band {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

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

.faq details {
  border-top: 1px solid var(--line);
  padding: .9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.large-status {
  color: var(--success) !important;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .category-grid,
  .workspace,
  .copy-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 260px;
  }
}

@media (max-width: 430px) {
  .nav,
  main {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  h1 {
    font-size: 2.25rem;
  }

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

  button {
    width: 100%;
    padding-left: .45rem;
    padding-right: .45rem;
  }
}
