:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152423;
  background: #f5f1e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 6%, #d8f27d 0 0, #d8f27d 7%, transparent 26%),
    linear-gradient(135deg, #f5f1e9 0%, #f8f7f2 55%, #edf2e4 100%);
}

button, textarea { font: inherit; }

button { cursor: pointer; }

button:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #284d43;
  outline-offset: 3px;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.eyebrow, .kicker, .card-label {
  margin: 0;
  color: #557066;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(64px, 11vw, 130px) 0 48px;
}

h1 {
  max-width: 780px;
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.lede {
  max-width: 590px;
  margin: 0;
  color: #4c5c58;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.privacy-note {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: #2d463e;
  font-size: 0.88rem;
  font-weight: 700;
}

.privacy-note span { color: #78a911; }

.converter {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #cfd8cc;
  border-radius: 24px;
  background: rgba(255, 255, 252, 0.78);
  box-shadow: 0 22px 55px rgba(34, 53, 45, 0.08);
}

.field-card {
  padding: 16px;
  border-radius: 16px;
}

.input-card { background: #19322d; }
.output-card { border: 1px solid #d5ddd2; background: #fffef9; }

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

label { color: #f7f8ef; font-size: 0.84rem; font-weight: 800; }
.output-card label { color: #2d443c; }
.output-state { color: #52645d; font-size: 0.78rem; font-weight: 700; }

textarea {
  display: block;
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 0;
  border-radius: 10px;
  padding: 16px;
  color: #f5f8ef;
  background: #25463e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  line-height: 1.55;
}

textarea::placeholder { color: #a8beb5; }
.output-card textarea { color: #1f302c; background: #f3f6ee; }

.text-button, .quiet-button {
  border: 0;
  padding: 4px 0;
  color: inherit;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.input-card .text-button { color: #d8f27d; }

.action-rail {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  color: #547265;
}

.action-rail span:not(.arrow) { flex: 1; height: 1px; background: #d8dfd5; }
.arrow { font-size: 1.2rem; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

.primary-button, .secondary-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-button { color: #183129; background: #d8f27d; }
.primary-button:hover { background: #c7e962; }
.secondary-button { color: #244039; border-color: #a6b7a9; background: transparent; }
.secondary-button:disabled { cursor: not-allowed; opacity: 0.45; }
.quiet-button { margin-left: 5px; color: #607069; }

.status { min-height: 1.45em; margin: 14px 0 0; color: #476258; font-size: 0.9rem; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.guide-grid article {
  min-height: 152px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 252, 0.6);
}

.guide-grid article:nth-child(2) { background: #d8f27d; }
.guide-grid p:not(.card-label) { margin: 12px 0 0; color: #3d514b; font-size: 0.94rem; line-height: 1.52; }
samp { font-size: 0.83rem; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 24px, 620px); padding-top: 18px; }
  .hero { display: block; padding: 72px 0 36px; }
  .privacy-note { margin-top: 24px; }
  .converter { padding: 14px; border-radius: 18px; }
  .field-card { padding: 12px; }
  textarea { min-height: 185px; padding: 13px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { min-height: auto; }
  .quiet-button { margin-left: 0; }
}
