/* removemail.com — single shared stylesheet. No frameworks, no web fonts. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a2333;
  --text-soft: #4b5768;
  --brand: #d93025;
  --brand-dark: #b3241b;
  --accent: #0b57d0;
  --border: #e3e8ef;
  --card: #ffffff;
  --note-bg: #eef4fe;
  --note-border: #0b57d0;
  --warn-bg: #fdf1ef;
  --warn-border: #d93025;
  --radius: 10px;
  --maxw: 72rem;
  --content: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151f;
    --bg-alt: #171e2b;
    --text: #e8edf4;
    --text-soft: #a7b2c2;
    --brand: #f0655b;
    --brand-dark: #f88379;
    --accent: #7aa9f7;
    --border: #2a3446;
    --card: #171e2b;
    --note-bg: #16233b;
    --note-border: #7aa9f7;
    --warn-bg: #33201d;
    --warn-border: #f0655b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo .tld { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--text-soft); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle { display: none; cursor: pointer; padding: .5rem; margin: -.5rem; }
.nav-toggle svg { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1rem;
    z-index: 50;
  }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .site-header { position: relative; }
  .nav-toggle-input:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: 3.5rem 0 3rem; text-align: center; background: var(--bg-alt); }
.hero h1 {
  margin: 0 auto .9rem;
  max-width: 46rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero p { max-width: 40rem; margin: 0 auto 1.6rem; color: var(--text-soft); font-size: 1.15rem; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-alt); color: var(--text); }
.hero .btn + .btn { margin-left: .6rem; }

/* ---------- Sections / cards ---------- */

.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.65rem; letter-spacing: -.015em; margin: 0 0 .4rem; }
.section .lead { color: var(--text-soft); margin: 0 0 1.8rem; max-width: 44rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: var(--text);
}
.card:hover { text-decoration: none; border-color: var(--accent); }
.card h3 { margin: 0 0 .35rem; font-size: 1.06rem; }
.card p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.card .tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand);
  margin-bottom: .5rem;
}

/* ---------- Article / guide pages ---------- */

.breadcrumbs { font-size: .88rem; color: var(--text-soft); padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--text-soft); }

.article { max-width: var(--content); margin: 0 auto; padding: 1.2rem 0 3rem; }
.article header h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin: .4rem 0 .6rem; }
.article .meta { font-size: .88rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.article h2 { font-size: 1.45rem; letter-spacing: -.01em; margin: 2.2rem 0 .7rem; }
.article h3 { font-size: 1.15rem; margin: 1.7rem 0 .5rem; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin: .3rem 0; }
.article code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .9em;
}

.summary-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1.6rem;
  font-size: .97rem;
}
.summary-box strong { display: block; margin-bottom: .3rem; }

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.6rem 0;
  font-size: .95rem;
}
.toc strong { display: block; margin-bottom: .4rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc a { color: var(--accent); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.2rem 0; }
.steps > li {
  position: relative;
  padding: 0 0 1.4rem 3rem;
  margin: 0;
  border-left: 2px solid var(--border);
  margin-left: 1.05rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: .2rem; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.15rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.steps > li > strong { display: block; font-size: 1.08rem; margin-bottom: .25rem; padding-top: .28rem; }
.steps p { margin: .4rem 0; }

.callout {
  border-left: 4px solid var(--note-border);
  background: var(--note-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1.15rem;
  margin: 1.3rem 0;
  font-size: .97rem;
}
.callout-warn { border-left-color: var(--warn-border); background: var(--warn-bg); }
.callout strong { display: block; margin-bottom: .15rem; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: .6rem 0;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: .85rem 1.15rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; color: var(--text-soft); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.15rem .95rem; color: var(--text-soft); }
.faq details > div p { margin: 0 0 .6rem; }

/* ---------- Related / prev-next ---------- */

.related { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.6rem; }
.related h2 { margin-top: 0; }
.related ul { padding-left: 1.3rem; }

/* ---------- Guide index lists ---------- */

.guide-list { list-style: none; padding: 0; margin: 0 0 1rem; columns: 2; column-gap: 2.5rem; }
.guide-list li { margin: 0 0 .55rem; break-inside: avoid; }
@media (max-width: 640px) { .guide-list { columns: 1; } }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  font-size: .93rem;
  color: var(--text-soft);
}
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 2rem; }
.footer-cols h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .7rem; color: var(--text); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: .35rem 0; }
.footer-cols a { color: var(--text-soft); }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }
.footer-bottom a { color: var(--text-soft); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
