/* Shared stylesheet for the static SEO pages under /guides/ and /label-maker/.
   These are hand-authored HTML files served straight from Firebase Hosting
   (real files win over the SPA rewrite) — no Tailwind build touches them, so
   the design tokens from src/index.css @theme are mirrored here. If the brand
   palette changes there, change it here too. */

:root {
  --paper: #f6f1e7;
  --surface: #fffefb;
  --tint: #fbefe6;
  --ink: #211c16;
  --ink-deep: #1a160f;
  --muted: #5c584e;
  --muted-2: #8a8071;
  --accent: #b85c38;
  --accent-hover: #a04e2e;
  --soft: #ead9cc;
  --line: #e3dac9;
  --line-2: #ece3d4;
  --input-border: #ddd2bd;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
}

/* Class display rules (e.g. .msg-btn's inline-block) outrank the UA's
   [hidden] { display: none } — restore hidden's meaning unconditionally. */
[hidden] {
  display: none !important;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .shell {
  margin: 0 auto;
  max-width: 1020px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pmark {
  display: inline-flex;
  height: 34px;
  width: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.wordmark {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

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

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.site-nav a.btn-ink {
  color: var(--paper);
}

/* ---- article ---- */

.article {
  margin: 0 auto;
  max-width: 720px;
  padding: 48px 24px 72px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.article h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

.article h2 {
  margin-top: 44px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.article h3 {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.article p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.article ul,
.article ol {
  margin-top: 14px;
  padding-left: 26px;
}

.article li {
  margin-top: 7px;
  font-size: 15px;
  color: var(--muted);
}

.article strong {
  font-weight: 600;
  color: var(--ink);
}

.article a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.article a:hover {
  text-decoration-color: var(--ink);
}

/* Button-styled links inside articles keep their button look — the prose
   link rule above must not repaint them ink + underlined. */
.article a.btn,
.article a.msg-btn {
  text-decoration: none;
  font-weight: 600;
}

.article a.btn-accent,
.article a.msg-btn {
  color: #fff;
}

.article table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article th {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.article td {
  border-bottom: 1px solid var(--line-2);
  padding: 10px 12px;
  vertical-align: top;
  color: var(--muted);
}

.article tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
}

/* Tip / aside card */
.note {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 18px;
}

.note p {
  margin-top: 0;
}

.note p + p {
  margin-top: 10px;
}

/* CTA card (soft signup pitch) */
.cta-card {
  margin-top: 28px;
  border: 1px solid var(--soft);
  border-radius: 12px;
  background: var(--tint);
  padding: 24px;
  text-align: center;
}

.cta-card h2,
.cta-card .cta-title {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.cta-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.cta-card .btn {
  margin-top: 16px;
}

.cta-small {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.article p.cta-small {
  font-size: 12.5px;
  color: var(--muted-2);
}

/* FAQ */
.faq h3 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.faq h3 + p {
  margin-top: 8px;
}

/* ---- label-maker tool ---- */

.tool {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
}

.tool label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
}

.tool textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.tool-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tool select {
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--paper);
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}

.tool .btn {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 26px;
}

.tool .btn:disabled {
  background: var(--muted-2);
  cursor: not-allowed;
}

.tool-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.tool-count.over {
  color: var(--accent-hover);
  font-weight: 700;
}

/* Status/alert box under the tool controls. Deliberately loud — a missed
   error reads as "the tool is broken," and the over-capacity error doubles
   as the signup CTA. */
.tool-msg {
  margin-top: 16px;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  background: #dfebd9;
  border: 1.5px solid #3a6b4a;
  color: #2c5239;
}

.tool-msg.error {
  background: #f7e0d3;
  border-color: var(--accent);
  color: var(--ink);
}

.msg-btn {
  /* Own centered line below the message — inline it and the button's height
     inflates whichever text line it lands on. */
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.msg-btn:hover {
  background: var(--accent-hover);
}

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

@media (max-width: 620px) {
  .tool-steps {
    grid-template-columns: 1fr;
  }
}

.tool-step {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px;
}

.tool-step .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tool-step p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- footer ---- */

.site-footer {
  margin-top: 40px;
  background: var(--ink-deep);
  color: var(--paper);
}

.site-footer .shell {
  margin: 0 auto;
  max-width: 1020px;
  padding: 40px 24px 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer .brand .wordmark {
  color: var(--paper);
}

.footer-tag {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(246, 241, 231, 0.65);
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links .col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links .col-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 231, 0.5);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(246, 241, 231, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(246, 241, 231, 0.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(246, 241, 231, 0.55);
}

.footer-bottom a {
  color: rgba(246, 241, 231, 0.75);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--paper);
}

.footer-disclaimer {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(246, 241, 231, 0.45);
}
