/* tuplecraft.com: one stylesheet for the home page, the legal pages and 404. System fonts only,
   so the site makes no third-party requests.
   Palette: aubergine and blush. A deep plum header and hero with a soft pink accent, over pale
   blush-white pages. */
:root{
  --ink:#24101e; --muted:#5b4a55; --soft:#8c7a85; --line:#ecdfe5;
  --bg:#faf6f7; --panel:#fff; --wash:#f3eaee;
  --accent:#8a2d6b; --accent-press:#6e2155;           /* links and buttons on light pages */
  --plum:#3b1631; --plum-deep:#2e1027; --plum-ink:#f9eef2; --plum-muted:#d6bcc8; --plum-line:#ffffff1f;
  --blush:#f0a3bd; --blush-press:#f6bfd1;             /* only on plum backgrounds and small marks */
  --radius:14px; --shadow:0 6px 24px #24101e0f;
  --maxw:1080px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --ink:#f3e6ec; --muted:#c3adb8; --soft:#937f8a; --line:#3a2434;
    --bg:#1a0c16; --panel:#24121f; --wash:#2f1929;
    --accent:#f0a3bd; --accent-press:#f6bfd1;
    --plum:#2a0f23; --plum-deep:#200b1a;
    --shadow:0 6px 24px #0000004d;
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink); background:var(--bg);
  font-family:"Segoe UI",system-ui,-apple-system,"Helvetica Neue",sans-serif; font-synthesis:none;
  line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{color:inherit}
h1,h2,h3{letter-spacing:-.02em;line-height:1.15;margin:0}
.wrap{width:min(var(--maxw),calc(100% - 32px));margin:0 auto}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

/* ---- header: always on plum ---- */
header.site{position:sticky;top:0;z-index:50;color:var(--plum-ink);background:var(--plum-deep);border-bottom:1px solid var(--plum-line)}
header.site :focus-visible{outline-color:var(--blush)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;letter-spacing:-.02em;text-decoration:none}
.brand svg{width:30px;height:30px;flex:none}
.nav-links{display:flex;align-items:center;gap:26px}
.nav-links a{color:var(--plum-muted);font-size:14.5px;font-weight:600;text-decoration:none}
.nav-links a:hover{color:var(--plum-ink)}
@media(max-width:640px){.nav-links{gap:16px}.nav-links a.optional{display:none}}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 20px;
  border-radius:10px;font-size:15px;font-weight:650;text-decoration:none;transition:.15s;white-space:nowrap}
.btn-primary{color:#fff;background:var(--accent)}
.btn-primary:hover{background:var(--accent-press)}
@media (prefers-color-scheme:dark){.btn-primary{color:var(--plum-deep)}}
.btn-ghost{color:var(--ink);background:var(--panel);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--soft)}

/* ---- hero ---- */
.hero{padding:88px 0 64px}
.eyebrow{display:inline-block;margin-bottom:20px;color:var(--accent);font-size:12.5px;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase}
.hero h1{font-size:clamp(36px,6vw,64px);font-weight:750;letter-spacing:-.035em;max-width:16ch}
.hero p.sub{max-width:58ch;margin:22px 0 0;color:var(--muted);font-size:clamp(17px,2vw,19.5px)}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}

/* The plum band under the header. On wide screens the logo's brackets sit large and faint
   behind the right half. */
.hero-band{color:var(--plum-ink);background:var(--plum)}
.hero-band .hero{position:relative}
@media(min-width:1000px){
  .hero-band .hero::after{content:"";position:absolute;right:-3%;top:50%;width:min(38%,420px);aspect-ratio:1;
    transform:translateY(-50%);pointer-events:none;opacity:.3;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12.5 8.5C9.4 10.6 8 13.1 8 16s1.4 5.4 4.5 7.5M19.5 8.5C22.6 10.6 24 13.1 24 16s-1.4 5.4-4.5 7.5' fill='none' stroke='%23f0a3bd' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23f0a3bd'/%3E%3C/svg%3E") center/contain no-repeat}
}
.hero-band :focus-visible{outline-color:var(--blush)}
.hero-band .eyebrow{color:var(--blush)}
.hero-band .hero p.sub{color:var(--plum-muted)}
.hero-band .hero h1 em{font-style:normal;color:var(--blush)}
.hero-band .btn-primary{color:var(--plum-deep);background:var(--blush)}
.hero-band .btn-primary:hover{background:var(--blush-press)}
.hero-band .btn-ghost{color:var(--plum-ink);background:transparent;border-color:#ffffff40}
.hero-band .btn-ghost:hover{border-color:#ffffff80}
.hero-band.full{min-height:100vh}                  /* the 404 page: no header, all plum */

/* ---- sections ---- */
section{padding:56px 0;border-top:1px solid var(--line);scroll-margin-top:64px}
.hero-band + section{border-top:0}
.section-head{margin-bottom:28px}
.section-head h2{font-size:clamp(26px,3.4vw,34px);font-weight:720}
.section-head p{margin:10px 0 0;max-width:62ch;color:var(--muted)}

/* ---- products ---- */
.group + .group{margin-top:36px}
.group h3{margin-bottom:14px;color:var(--soft);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.card{display:flex;flex-direction:column;gap:10px;padding:24px;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow);text-decoration:none;transition:.15s}
a.card:hover{border-color:var(--soft);transform:translateY(-2px)}
.card .top{display:flex;align-items:center;gap:12px}
.card .chip{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#fff;font-weight:750;font-size:17px;flex:none}
.card .name{font-size:19px;font-weight:700;letter-spacing:-.015em}
.card .status{margin-left:auto;padding:3px 10px;border-radius:99px;background:var(--wash);color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}
.card p{margin:0;color:var(--muted)}
.card .meta{margin-top:auto;padding-top:8px;color:var(--soft);font-size:13.5px}
.card .go{color:var(--accent);font-weight:650;font-size:14.5px}

/* ---- principles ---- */
.principles{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:560px){.principles{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.principles{grid-template-columns:repeat(4,1fr)}}
.principles h3{font-size:17px;font-weight:700;margin-bottom:8px}
.principles h3::before{content:"";display:block;width:28px;height:3px;margin-bottom:14px;border-radius:2px;background:var(--accent)}
.principles p{margin:0;color:var(--muted)}

/* ---- company ---- */
dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:10px 28px;margin:0;max-width:640px}
dl.facts dt{color:var(--soft);font-size:14.5px}
dl.facts dd{margin:0;font-weight:600}
dl.facts a{color:var(--accent);text-decoration:none}
dl.facts a:hover{text-decoration:underline}
@media(max-width:480px){dl.facts{grid-template-columns:1fr;gap:2px}dl.facts dd{margin-bottom:12px}}
.note{margin-top:24px;max-width:62ch;color:var(--muted);font-size:14.5px}
.note a{color:var(--accent)}

/* ---- legal pages ---- */
.page{max-width:760px;padding:56px 0 72px}
.page h1{font-size:clamp(32px,5vw,44px);font-weight:750;margin-bottom:6px}
.page h2{font-size:21px;margin:40px 0 10px}
.page h3{font-size:17px;margin:28px 0 8px}
.page p,.page li{color:var(--ink)}
.page ul,.page ol{padding-left:22px}
.page li{margin:6px 0}
.page li::marker{color:var(--accent)}
.page a{color:var(--accent)}
.page h1 + p{color:var(--muted);margin-top:0}

/* ---- footer ---- */
footer.site{padding:36px 0 48px;border-top:1px solid var(--line);color:var(--soft);font-size:14px}
footer.site .row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px}
footer.site nav{display:flex;flex-wrap:wrap;gap:8px 20px}
footer.site a{color:var(--muted);text-decoration:none}
footer.site a:hover{color:var(--ink)}
footer.site .small{margin-top:10px;font-size:13px}
