/* ════════════════════════════════════════════════════════════
   CatchAllEmailVerifier.com — warm editorial long-form
   Fraunces (display serif) + Alegreya Sans (humanist body)
   Cream paper, amber accents, hairline rules, asterisk motif
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #faf5ec;
  --paper-deep: #f2ead9;
  --card: #fffdf6;
  --ink: #241c11;
  --ink-soft: #5c5244;
  --rule: #e0d5bd;
  --rule-dark: #c9bb9e;
  --amber: #d97706;
  --amber-text: #b45309;
  --amber-deep: #92400e;

  --good: #1a7a3c;
  --good-bg: #edf6ec;
  --fail: #b3261e;
  --fail-bg: #faeeea;
  --risk: #b45309;
  --risk-bg: #faf2e2;
  --grey: #6b6157;
  --grey-bg: #f1ece1;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Gill Sans', 'Segoe UI', sans-serif;

  --measure: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(1100px 500px at 50% -120px, rgba(217, 119, 6, .06), transparent 70%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .55em;
}

p { margin: 0 0 1.1em; }

a { color: var(--amber-text); text-decoration-color: rgba(217, 119, 6, .45); text-underline-offset: 2px; }
a:hover { color: var(--amber-deep); }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--paper-deep);
  border-radius: 3px;
  padding: .08em .35em;
}

strong { font-weight: 700; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skiplink {
  position: absolute; left: -200vw; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 50;
}
.skiplink:focus { left: 0; }

/* ───────── Buttons ───────── */

.button-solid {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  color: #fff;
  background: var(--amber);
  border: 1.5px solid var(--amber-deep);
  border-radius: 3px;
  padding: .75rem 1.6rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(146, 64, 14, .25);
  transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.button-solid:hover { background: var(--amber-deep); color: #fff; }
.button-solid:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(146, 64, 14, .25); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(217, 119, 6, .55);
  outline-offset: 2px;
}

/* ───────── Hairline utility bar ───────── */

.hairline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: .85rem;
}
.hairline-tag {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}
.hairline-tag span { font-style: normal; color: var(--amber-text); font-weight: 700; }
.hairline-links { display: flex; align-items: center; gap: 1.1rem; }
.hairline-links a { text-decoration: none; font-weight: 500; }
.hairline-cta {
  border: 1px solid var(--amber-text);
  border-radius: 3px;
  padding: .25rem .8rem;
  color: var(--amber-deep);
}
.hairline-cta:hover { background: var(--amber); border-color: var(--amber-deep); color: #fff; }

/* ───────── Masthead ───────── */

.masthead {
  text-align: center;
  padding: 2.6rem 1.1rem 1.8rem;
  border-bottom: 3px double var(--rule);
  margin: 0 1.1rem;
}
.masthead-mark {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--amber);
  margin: 0 0 .2rem;
  line-height: 1;
}
.masthead-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
}
.masthead-sub {
  font-size: .92rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

/* ───────── Essay scaffold ───────── */

.essay {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.1rem 4rem;
}

.essay-opener {
  padding: 3rem 0 1rem;
  text-align: center;
}
.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 1.3rem;
}
.essay-opener h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: .5em;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
}
.lede em { font-style: italic; }
.byline {
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  padding: .5rem 1.2rem;
  margin-top: 1rem;
}

/* ───────── Chapters ───────── */

.chapter { margin-top: 3.2rem; }
.chapter-no {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .25em;
  margin: 0 0 .4rem;
  position: relative;
  padding-bottom: .5rem;
}
.chapter-no::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 3.2rem; height: 2px;
  background: var(--amber);
}
.chapter h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  margin-bottom: .7em;
}
.chapter .opens::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.3em;
  line-height: .82;
  float: left;
  padding: .08em .12em 0 0;
  color: var(--amber-deep);
}

.essay-list {
  margin: 0 0 1.1em;
  padding-left: 1.4rem;
}
.essay-list li { margin-bottom: .8em; }
.essay-list li::marker {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--amber-text);
}

/* ───────── Pull quotes ───────── */

.pullquote {
  margin: 3rem 0 0;
  padding: .4rem 0 .4rem 1.6rem;
  border-left: 3px solid var(--amber);
  position: relative;
}
.pullquote::before {
  content: '✱';
  position: absolute;
  left: -0.75rem; top: -0.9rem;
  background: var(--paper);
  color: var(--amber);
  font-size: 1.1rem;
  padding: .15rem;
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.45;
  color: var(--amber-deep);
  margin: 0;
}

/* ───────── Tool card ───────── */

.toolcard {
  margin: 2.6rem 0 0;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(217, 119, 6, .22);
  padding: 1.7rem 1.6rem 1.5rem;
}
.toolcard-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--amber);
  border-radius: 2px;
  padding: .25rem .7rem;
  margin: 0 0 .9rem;
}
.toolcard-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.toolcard-form {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.toolcard-input {
  flex: 1 1 210px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: .7rem .85rem;
}
.toolcard-input:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .25);
}
.toolcard-button {
  flex: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--amber);
  border: 1.5px solid var(--amber-deep);
  border-radius: 3px;
  padding: .7rem 1.5rem;
  cursor: pointer;
  transition: background-color .15s ease;
}
.toolcard-button:hover { background: var(--amber-deep); }
.toolcard-button:disabled { opacity: .65; cursor: wait; }
.toolcard-note {
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: .8rem 0 0;
}

.toolcard-progress {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border: 1px dashed var(--amber-text);
  border-radius: 3px;
  background: var(--risk-bg);
  color: var(--amber-deep);
  font-style: italic;
  font-size: .95rem;
}
.toolcard-progress.is-error {
  border-color: var(--fail);
  background: var(--fail-bg);
  color: var(--fail);
  font-style: normal;
}

.toolcard-result {
  margin: 1rem 0 0;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  padding: 1.1rem 1.2rem 1.2rem;
}
.toolcard-result.is-good { background: var(--good-bg); border-color: var(--good); }
.toolcard-result.is-fail { background: var(--fail-bg); border-color: var(--fail); }
.toolcard-result.is-risk { background: var(--risk-bg); border-color: var(--risk); }
.toolcard-result.is-grey { background: var(--grey-bg); border-color: var(--grey); }

.verdict-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 .15rem;
}
.is-good .verdict-word { color: var(--good); }
.is-fail .verdict-word { color: var(--fail); }
.is-risk .verdict-word { color: var(--risk); }
.is-grey .verdict-word { color: var(--grey); }

.verdict-email {
  font-size: .9rem;
  color: var(--ink-soft);
  word-break: break-all;
  margin-bottom: .6rem;
}
.verdict-reason { font-size: .97rem; margin-bottom: .7rem; }

.verdict-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}
.tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 2px;
  padding: .2rem .55rem;
}
.tag.is-risk { color: var(--risk); border-color: var(--risk); }
.tag.is-fail { color: var(--fail); border-color: var(--fail); }
.tag.is-amber { color: var(--amber-deep); border-color: var(--amber-text); background: var(--risk-bg); }

.verdict-quota {
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}

/* ───────── Rates ───────── */

.rates {
  margin-top: 4rem;
  border-top: 3px double var(--rule);
  padding-top: 2.4rem;
}
.rates-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  text-align: center;
}
.rates-lede { text-align: center; color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.8rem; }

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.rates-table thead th {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 2px solid var(--ink);
  padding: .5rem .6rem;
}
.rates-table tbody th,
.rates-table tbody td {
  font-family: var(--serif);
  text-align: left;
  padding: .8rem .6rem;
  border-bottom: 1px solid var(--rule);
}
.rates-table tbody th { font-weight: 600; }
.rates-table thead th:nth-child(n+2),
.rates-table tbody td { text-align: right; font-variant-numeric: tabular-nums; }
.rates-popular th, .rates-popular td { background: var(--risk-bg); }
.rates-star { color: var(--amber); }
.rates-tag {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.rates-foot {
  font-size: .88rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1rem;
}
.rates-cta { text-align: center; margin-top: 1.4rem; }

/* ───────── Questions ───────── */

.questions {
  margin-top: 4rem;
  border-top: 3px double var(--rule);
  padding-top: 2.4rem;
}
.questions-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  text-align: center;
  margin-bottom: 1.6rem;
}
.qa { margin-bottom: 1.8rem; }
.qa h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35em;
}
.qa h3::before {
  content: 'Q. ';
  color: var(--amber);
}
.qa p { color: var(--ink-soft); margin: 0; }

/* ───────── Closing ───────── */

.closing {
  margin-top: 4rem;
  text-align: center;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2.6rem 1.5rem;
}
.closing-mark {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--amber);
  margin: 0 0 .4rem;
  line-height: 1;
}
.closing h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.closing p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 1.5rem; }

/* ───────── Colophon (footer) ───────── */

.colophon {
  border-top: 3px double var(--rule);
  margin-top: 2rem;
  padding: 2.8rem 1.1rem 2.2rem;
  text-align: center;
}
.colophon-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .3rem;
}
.colophon-line {
  font-style: italic;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 2rem;
}
.colophon-lists {
  display: grid;
  gap: 1.8rem;
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: left;
}
@media (min-width: 700px) {
  .colophon-lists { grid-template-columns: 1.2fr 1fr 1fr; }
}
.colophon-group h3 {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .7rem;
}
.colophon-group ul { list-style: none; margin: 0; padding: 0; }
.colophon-group li { margin-bottom: .45rem; }
.colophon-group a {
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink);
}
.colophon-group a:hover { color: var(--amber-deep); text-decoration: underline; }
.colophon-copy {
  font-size: .85rem;
  color: var(--grey);
  border-top: 1px solid var(--rule);
  padding-top: 1.3rem;
  max-width: 52rem;
  margin: 0 auto;
}

/* ───────── Legal pages ───────── */

.legal-sheet {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.6rem 1.1rem 4rem;
}
.legal-sheet h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal-sheet h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-updated {
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2rem;
}
.legal-sheet ul { padding-left: 1.4rem; }
.legal-sheet li { margin-bottom: .5em; }

/* ───────── Reduced motion ───────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
