/* Color tokens follow the maintained Browser Pro Studio WordPress theme. */
:root {
  --surface: #131314;
  --card: #1f1f21;
  --ink: #f2f0f1;
  --muted: #c6c6cd;
  --line: #45464c;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover,
.file-button:hover {
  background: #2a2a2b;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: white;
}
.primary:hover {
  background: #1d4ed8;
}
header {
  max-width: 1280px;
  margin: auto;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  text-decoration: none;
}
.brand span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.5rem;
}
nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0;
}
nav a[aria-current] {
  border-bottom: 2px solid var(--blue);
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 2rem 3rem;
}
.intro {
  padding: 4rem 0 2.5rem;
  max-width: 850px;
}
.intro.compact {
  padding: 2.5rem 0 1.5rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 0.75rem 0 1.25rem;
}
h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
}
p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  min-width: 0;
}
.card p {
  color: var(--muted);
}
.card .button {
  margin-top: 0.75rem;
}
.note {
  margin-top: 1.5rem;
  max-width: 850px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.draftbar {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.name-label {
  flex: 1;
  min-width: 200px;
}
#save-status {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.7rem 0;
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vertical {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1rem;
}
label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #909097;
}
.file-button {
  position: relative;
  margin: 0;
  font-size: 1rem;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.file-button:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.wide {
  grid-column: 1/-1;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin: 1rem 0;
}
legend {
  padding-right: 0.5rem;
  font-weight: 600;
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.error,
#message.error {
  color: #fca5a5;
}
.success {
  color: var(--muted);
}
#message:empty {
  display: none;
}
#message {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.preview dl {
  margin: 0 0 1.5rem;
}
.preview dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.preview dd {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.preview-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 100px;
  padding: 1rem;
  background: var(--surface);
  border-radius: 0.5rem;
}
.preview h2:not(:first-child) {
  margin-top: 2rem;
}
.row-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.row-card .actions {
  margin-bottom: 1rem;
}
.row-card label:last-child {
  margin-bottom: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
th,
td {
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.help-sections {
  display: grid;
  gap: 1rem;
  max-width: 850px;
}
li {
  margin: 0.5rem 0;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  padding: 0.75rem;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  max-width: 480px;
  padding: 1.5rem;
}
dialog::backdrop {
  background: #000b;
}
code {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  header {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }
  h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  main,
  header,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .card {
    padding: 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .intro {
    padding-top: 2rem;
  }
  footer {
    flex-direction: column;
  }
  .draftbar .actions {
    width: 100%;
  }
  .draftbar .actions > * {
    flex: 1;
  }
  nav {
    gap: 0.75rem;
  }
  h1 {
    font-size: 2rem;
  }
}

/* Homepage styles stay scoped to the landing page. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 4rem; padding: 5rem 0 4rem; }
.home-page .eyebrow { letter-spacing: .1em; font-size: .75rem; }
.home-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); letter-spacing: -.045em; line-height: 1.05; }
.home-hero h1 span { color: #91baff; }
.hero-copy .lead { max-width: 550px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.home-page .button { gap: .75rem; }
.hero-note { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }
.workflow-panel { background: linear-gradient(145deg, #202c42, var(--card) 70%); border: 1px solid #4c6184; border-radius: 1rem; padding: 2rem; }
.workflow-panel h2 { margin-top: 1rem; font-size: 1.8rem; letter-spacing: -.025em; }
.workflow-list { list-style: none; margin: 1.75rem 0; padding: 0; }
.workflow-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.step-number { color: #91baff; font-size: .85rem; padding-top: .15rem; font-variant-numeric: tabular-nums; }
.workflow-list h3 { margin: 0 0 .35rem; }
.workflow-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.workflow-foot { border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; color: #91baff; font-size: .8rem; }
.makers-section { scroll-margin-top: 2rem; padding: 1rem 0 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: 1.9rem; margin: .65rem 0 0; letter-spacing: -.025em; }
.section-heading > p { max-width: 300px; margin: 0; color: var(--muted); font-size: .9rem; }
.maker-card { display: flex; flex-direction: column; padding: 1.75rem; border-radius: .75rem; }
.maker-number { color: #91baff; font-size: 1.7rem; margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.maker-card h3 { font-size: 1.4rem; margin: .75rem 0 0; }
.maker-card > p:not(.eyebrow) { margin-bottom: 1.75rem; }
.maker-card .button { margin-top: auto; justify-content: space-between; text-align: left; }
.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding: 2.5rem 0 1rem; }
.draft-note h2 { margin: .75rem 0; }
.draft-note p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }
.draft-note .button { flex-shrink: 0; }
@media (max-width: 1000px) { .home-hero { gap: 2rem; } .maker-card { padding: 1.25rem; } }
@media (max-width: 850px) { .home-hero { grid-template-columns: 1fr; padding: 3rem 0; } .section-heading, .draft-note { flex-direction: column; align-items: start; gap: 1rem; } .section-heading > p { max-width: none; } .maker-number { margin-bottom: .75rem; } }
@media (max-width: 480px) { .home-hero { padding-top: 2rem; } .workflow-panel { padding: 1.25rem; } .home-hero h1 { font-size: 2.7rem; } .section-heading h2 { font-size: 1.6rem; } .hero-actions .button { width: 100%; } }
