/* Dixavo — corporate correspondence channel.
   Static micro-site: document-paper surfaces, verdigris primary, wax-seal red
   reserved for the abuse/report moment. Display: Fraunces; body: Public Sans.
   Fonts are self-hosted (no third-party requests from this site). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbfaf7;
  --paper-tint: #f0f2ee;
  --ink: #1a2321;
  --muted: #526059;
  --verdigris: #14615a;
  --verdigris-deep: #0b423d;
  --wax: #a93a28;
  --wax-deep: #8c2f20;
  --hairline: #dbe0da;
  --card: #ffffff;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a {
  color: var(--verdigris);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--verdigris-deep); }

:focus-visible {
  outline: 2px solid var(--verdigris);
  outline-offset: 2px;
  border-radius: 3px;
}

.addr { font-family: var(--font-mono); font-size: 0.92em; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--verdigris);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10;
  transition: top 120ms ease;
}

.skip-link:focus { top: 0; color: #fff; }

/* ————— Header ————— */

.site-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.wordmark-glyph {
  width: 1.35em;
  height: 1.35em;
  color: var(--verdigris);
  flex: none;
}

.lang-switch select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

/* ————— Hero ————— */

.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  max-width: 14ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-note {
  margin-top: 1.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper-tint);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.95rem;
  max-width: 46ch;
}

/* ————— Specimen (hero figure) ————— */

.specimen-wrap {
  position: relative;
  margin: 0;
  padding-top: 3.2rem; /* room for the postmark overlap */
}

.postmark {
  position: absolute;
  top: 0;
  right: 0.6rem;
  width: 118px;
  height: 118px;
  color: var(--verdigris);
  transform: rotate(-8deg);
  z-index: 1;
}

.pm-outer, .pm-inner { fill: none; stroke: currentColor; }
.pm-outer { stroke-width: 2.4; }
.pm-inner { stroke-width: 1.2; stroke-dasharray: 3 3; }

.pm-text {
  fill: currentColor;
  font-family: var(--font-body);
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.pm-env rect { fill: none; stroke: currentColor; stroke-width: 1.7; }
.pm-env path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .postmark {
    animation: stamp 520ms cubic-bezier(0.22, 1.4, 0.36, 1) both;
    animation-delay: 180ms;
  }

  @keyframes stamp {
    from { opacity: 0; transform: scale(1.55) rotate(-15deg); }
    60%  { opacity: 1; transform: scale(0.95) rotate(-7deg); }
    to   { opacity: 1; transform: scale(1) rotate(-8deg); }
  }

  .stamp {
    animation: stamp-in 360ms ease-out both;
  }

  .stamp:nth-child(1) { animation-delay: 420ms; }
  .stamp:nth-child(2) { animation-delay: 540ms; }
  .stamp:nth-child(3) { animation-delay: 660ms; }

  @keyframes stamp-in {
    from { opacity: 0; transform: scale(1.25); }
    to   { opacity: 1; transform: scale(1); }
  }
}

.specimen {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 14px 34px -22px rgba(26, 35, 33, 0.35);
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--verdigris);
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  padding: 0.18rem 0.5rem;
}

.stamp:nth-child(2) { transform: rotate(1.5deg); }
.stamp:nth-child(3) { transform: rotate(-1.5deg); }

.tick { font-family: var(--font-body); }

.specimen-headers {
  margin: 0;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.9rem;
}

.hrow {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.18rem 0;
}

.hrow dt {
  flex: none;
  width: 4.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hrow dd {
  margin: 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.specimen-body {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.specimen-wrap figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ————— What Dixavo is ————— */

.what {
  background: var(--paper-tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 4rem 1.5rem;
}

.what h2, .what-intro, .facts {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.what h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.what-intro {
  color: var(--muted);
  max-width: min(var(--measure), 1060px);
  margin-bottom: 2.6rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.fact {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
}

.fact-glyph {
  width: 30px;
  height: 30px;
  color: var(--verdigris);
  margin-bottom: 0.9rem;
}

.fact h3 { font-size: 1.18rem; }

.fact p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ————— FAQ ————— */

.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.faq h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.4rem;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq details:first-of-type { border-top: 1px solid var(--hairline); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--verdigris);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  padding: 0 0.2rem 1.2rem;
  margin: 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* ————— Report misuse ————— */

.report {
  padding: 0 1.5rem 4.5rem;
}

.report-inner {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--wax);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.8rem;
}

.report h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.report p {
  color: var(--muted);
  max-width: var(--measure);
}

.report-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--wax);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
}

.report-btn:hover { background: var(--wax-deep); color: #fff; }

/* ————— Footer ————— */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper-tint);
  padding: 2.2rem 1.5rem 2.6rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .wordmark-glyph {
  width: 1.15em;
  height: 1.15em;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--verdigris-deep); }

.footer-copy { margin: 0; font-size: 0.82rem; }

/* ————— Legal page ————— */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--hairline);
}

.legal h3 {
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 1.8rem;
}

.legal p, .legal li {
  color: var(--muted);
  max-width: var(--measure);
}

.legal ul { padding-left: 1.2rem; }

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

/* ————— 404 ————— */

.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}

.notfound .postmark {
  position: static;
  display: block;
  margin: 0 auto 2rem;
}

.notfound h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.notfound p { color: var(--muted); }

/* ————— Responsive ————— */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-top: 2.2rem;
    padding-bottom: 3.4rem;
  }

  .facts { grid-template-columns: 1fr; }

  .postmark { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
  .specimen { padding: 1.1rem 1rem 1rem; }

  .hrow { flex-direction: column; gap: 0.05rem; padding: 0.3rem 0; }

  .hrow dt { width: auto; }

  /* Keep the decorative postmark clear of the authentication stamps. */
  .hero .postmark { width: 76px; height: 76px; right: 0.25rem; }

  .specimen-wrap { padding-top: 2.4rem; }
}
