/* Sunshine Validator - styles. Warm cream/amber identity, Outfit + Inter. */

:root {
  --cream: #FFF7F0;
  --cream-2: #FFE0C1;
  --amber: #9A690F;
  --amber-dark: #885C09;
  --ink: #1A0E00;
  --ink-2: #291901;
  --paper: #FFFFFF;
  --dark: #1C1001;
  --muted: #6b5535;
  --line: #f0dcc6;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--ink-2);
  background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

h1, h2, h3 { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 500; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); letter-spacing: -0.6px; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -0.3px; }
p { margin: 0 0 1rem; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 26px; border-radius: 10px; border: 2px solid var(--amber); background: var(--amber); color: #fff; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--amber); border-color: var(--amber); }
.btn-ghost:hover { background: var(--amber); color: #fff; }
.btn-on-dark { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-on-dark.btn-ghost { background: transparent; color: #ffe9d2; border-color: #6b4a18; }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #8a6326; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1.4rem; color: #fff; letter-spacing: -0.3px; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; flex: none; display: block; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { color: rgba(255,255,255,.92); font-size: .98rem; white-space: nowrap; }
.nav a.navlink:hover { color: #fff; }
.nav a.navlink[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1100px 520px at 72% -8%, rgba(247,184,96,.40), rgba(247,184,96,0) 60%), linear-gradient(160deg, #241606 0%, #1C1001 55%, #1a0f02 100%); padding: 168px 0 110px; text-align: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p.lede { font-size: clamp(1.05rem, 2.1vw, 1.2rem); color: #ecdcc8; max-width: 680px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sub { padding-top: 130px; padding-bottom: 84px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--paper); }
.section.warm { background: var(--cream-2); }
.section-head { max-width: 780px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.brandname { font-weight: 600; }

/* Split (text + drawing) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split .copy p { color: var(--ink-2); }
.since-line { font-size: .95rem; color: var(--muted); margin-top: 4px; }

/* Taped drawing signature */
.drawing { background: #fff; padding: 14px 14px 16px; border-radius: 4px; box-shadow: 0 18px 40px rgba(40,20,0,.16); transform: rotate(-2.2deg); border: 1px solid #f1e7da; }
.drawing img { border-radius: 2px; width: 100%; }
.drawing figcaption { font-family: 'Inter', sans-serif; font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Benefit cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: radial-gradient(150px 95px at 100% 0%, rgba(247,184,96,.11), transparent 70%), linear-gradient(180deg, #ffffff, #fff6ea); border: 1px solid #f1ddc2; border-radius: 18px; padding: 30px 28px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(40,20,0,.10); border-color: #e8cba0; }
.card-badge { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, #fff1dd, #ffdfba); border: 1px solid #f1d8b6; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; line-height: 1; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: .99rem; }

/* Achievements band (dark, prominent) */
.band { background: radial-gradient(900px 420px at 85% 0%, rgba(247,184,96,.16), transparent 62%), var(--dark); color: #f3e6d6; padding: 88px 0; }
.band h2 { color: #fff; }
.band .lead { color: #d9c6ae; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.ach { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 24px 22px 26px; }
.ach h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.ach p { color: #cdb89c; font-size: .92rem; margin: 0; }
.ach a { color: #f4b860; }
.ach a:hover { color: #fff; }
.ach-closing { margin-top: 36px; color: #d9c6ae; font-size: 1.02rem; max-width: 820px; }

/* Uniform logo chips */
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.logo-chip { width: 54px; height: 54px; background: #fff; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.28); flex: none; }
.logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-chip .chip-emoji { font-size: 1.7rem; line-height: 1; }
.logo-chip.sm { width: 42px; height: 42px; border-radius: 11px; padding: 7px; }

/* Stake block + copy rows */
.stake-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; max-width: 760px; }
.copy-row { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin: 12px 0; }
.copy-row .cr-main { flex: 1; min-width: 0; }
.copy-row .idlabel { font-size: .78rem; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 3px; }
.copy-row code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; color: var(--ink); word-break: break-all; }
.copy-row .cr-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.copy-btn { flex: none; border: 1px solid var(--amber); background: #fff; color: var(--amber); border-radius: 8px; padding: 9px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.copy-btn:hover { background: var(--amber); color: #fff; }
.copy-btn.copied { background: #3f7a2e; border-color: #3f7a2e; color: #fff; }
.stake-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.verify-line { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--muted); font-size: .92rem; }
.verify-line .logo-chip.sm { box-shadow: 0 2px 8px rgba(40,20,0,.12); border: 1px solid var(--line); }

/* Security article */
.doc { max-width: 760px; }
.doc h2 { margin: 2em 0 .55em; display: flex; align-items: center; gap: 12px; }
.doc h2:first-of-type { margin-top: 1.4em; }
.doc h2 .h2-emoji { font-size: .92em; line-height: 1; }
.doc p { color: var(--ink-2); margin-bottom: 1.1rem; }
.doc ul { margin: 0 0 1.1rem; padding-left: 1.3em; color: var(--ink-2); }
.doc li { margin-bottom: .45em; }
.security-photo { width: 100%; border-radius: 16px; margin: 6px 0 20px; box-shadow: 0 14px 34px rgba(40,20,0,.14); }

/* End CTA */
.end-cta { margin: 48px auto 0; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; text-align: center; max-width: 760px; }
.end-cta h2 { margin-bottom: 10px; }
.end-cta p { color: var(--ink-2); margin-bottom: 22px; }

/* Footer */
.site-footer { background: var(--dark); color: #cdb89c; padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 44px; height: 44px; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.footer-name { font-family: 'Outfit', sans-serif; font-size: 1.25rem; color: #fff; }
.footer-tag { color: #b89c78; font-size: .92rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #e7d3ba; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; color: #b89c78; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin: 14px 0 0; }
.footer-bottom img { height: 18px; width: auto; opacity: .9; }
.footer-copy { color: #8a6f4c; font-size: .85rem; }

/* Focus visibility */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid #f4b860; outline-offset: 2px; border-radius: 6px; }

/* Responsive */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .drawing { max-width: 440px; margin: 0 auto; transform: rotate(-1.6deg); }
  .ach-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }
  .nav { gap: 14px; }
  .nav a.navlink { font-size: .86rem; }
  .hero { padding: 120px 0 72px; }
  .hero-sub { padding-top: 110px; padding-bottom: 64px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; text-align: center; }
  .section { padding: 58px 0; }
  .band { padding: 62px 0; }
  .cards, .ach-grid { grid-template-columns: 1fr; }
  .stake-card { padding: 24px 20px; }
  .stake-actions { flex-direction: column; }
  .stake-actions .btn { width: 100%; max-width: 320px; text-align: center; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .copy-btn { width: 100%; }
  .end-cta { padding: 32px 22px; }
}
