/*
Theme Name: SignThatDoc
Theme URI: https://signthatdoc.com
Author: SignThatDoc
Description: Custom theme for SignThatDoc, a free e-sign PDF website. Teal Notary palette with yellow calls to action.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: signthatdoc
*/

:root {
  --std-bg: #eef7f4;
  --std-bg-elev: #ffffff;
  --std-ink: #10231d;
  --std-muted: #4b635b;
  --std-line: #d5e6df;
  --std-brand: #115e59;
  --std-brand-2: #0f766e;
  --std-accent: #f59e0b;
  --std-accent-ink: #431407;
  --std-cta: #f59e0b;
  --std-cta-ink: #431407;
  --std-ok: #047857;
  --std-danger: #b42318;
  --std-shadow: 0 18px 50px rgba(16, 35, 29, 0.08);
  --std-radius: 18px;
  --std-font: "Source Sans 3", "Segoe UI", sans-serif;
  --std-serif: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--std-font);
  background: var(--std-bg);
  color: var(--std-ink);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--std-brand-2); }
a:hover { color: var(--std-brand); }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--std-cta);
  color: var(--std-cta-ink);
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.std-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: color-mix(in srgb, var(--std-bg-elev) 90%, var(--std-brand) 10%);
  border-bottom: 1px solid var(--std-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.site-logo {
  font-family: var(--std-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--std-brand);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.site-logo span { color: var(--std-accent); }
.nav-toggle {
  display: none;
  background: var(--std-brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
.nav-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--std-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--std-brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-cta {
  background: var(--std-cta);
  color: var(--std-cta-ink);
}
.btn-cta:hover { filter: brightness(0.96); color: var(--std-cta-ink); }
.btn-brand {
  background: var(--std-brand);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--std-brand);
  border: 1px solid color-mix(in srgb, var(--std-brand) 35%, var(--std-line));
}

.kicker {
  color: var(--std-brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1, h2, h3, h4 {
  font-family: var(--std-serif);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--std-ink);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 10px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
.lede, .entry-content > p.lede {
  font-size: 1.15rem;
  color: var(--std-muted);
  max-width: 46rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 28px;
}
.hero-card,
.card {
  background: var(--std-bg-elev);
  border: 1px solid var(--std-line);
  border-radius: var(--std-radius);
  box-shadow: var(--std-shadow);
}
.hero-card { padding: 18px; }
.pdf-preview {
  min-height: 220px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--std-brand) 30%, var(--std-line));
  background: linear-gradient(180deg, #fff, var(--std-bg));
  position: relative;
}
.sig-box {
  position: absolute;
  border: 2px dashed var(--std-accent);
  background: color-mix(in srgb, var(--std-accent) 16%, transparent);
  color: var(--std-accent-ink);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.section { padding: 18px 0 42px; }
.grid-3, .grid-2 {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card { padding: 18px; }
.muted { color: var(--std-muted); }

.faq-item {
  background: var(--std-bg-elev);
  border: 1px solid var(--std-line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 12px;
}
.faq-item h2, .faq-item h3 { font-size: 1.12rem; }

.contact-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--std-brand);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.contact-strip a { color: var(--std-accent); }
.site-footer {
  margin-top: 22px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--std-line);
  color: var(--std-muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entry { padding: 42px 0 24px; }
.entry-content h2 { margin-top: 28px; }
.entry-content ul { padding-left: 1.2rem; }
.post-list { display: grid; gap: 16px; }
.post-teaser {
  background: var(--std-bg-elev);
  border: 1px solid var(--std-line);
  border-radius: 16px;
  padding: 20px;
}
.post-teaser h2 { font-size: 1.35rem; }
.post-teaser h2 a { color: inherit; text-decoration: none; }

.std-notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: var(--std-accent-ink);
}
.std-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.std-ok { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }

.std-app label { display: block; font-weight: 700; margin: 12px 0 6px; }
.std-app input[type="text"],
.std-app input[type="email"],
.std-app input[type="password"],
.std-app input[type="file"] {
  width: 100%;
  border: 1px solid var(--std-line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.std-pages { display: grid; gap: 18px; margin: 16px 0; }
.std-page-wrap {
  background: #fff;
  border: 1px solid var(--std-line);
  border-radius: 12px;
  overflow: hidden;
}
.std-page-wrap canvas { width: 100%; height: auto; display: block; }
.std-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.std-share {
  background: var(--std-bg-elev);
  border: 1px solid var(--std-line);
  border-radius: 16px;
  padding: 18px;
}
.std-share code {
  display: block;
  background: var(--std-bg);
  padding: 10px 12px;
  border-radius: 10px;
  overflow-wrap: anywhere;
  margin: 6px 0 14px;
}
.sig-canvas {
  width: 100%;
  height: 160px;
  border: 1px dashed var(--std-brand-2);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .contact-strip, .header-inner { display: block; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; padding: 8px 0 12px; }
  .nav-menu.is-open { display: grid; gap: 10px; }
  .header-inner .btn { width: 100%; margin-top: 8px; }
}
