/* Blue Cup Studios: ceramic white and cobalt, a studio site with long-form legal pages */
/* Palette and type from the Blue Cup logo canvas: cup blue, ink, cream, gold; Fredoka from the game */
:root {
  --bg: #fbf5e8;
  --surface: #fffdf7;
  --ink: #17324d;
  --muted: #4f6275;
  --line: #e8dfcb;
  --cobalt: #2b6f94;
  --cobalt-soft: #efe6d1;
  --gold: #d9a441;
  --ph-bg: #fbe3a8;
  --ph-ink: #5e4100;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2133; --surface: #142a40; --ink: #f3ecdc; --muted: #b3c0cc;
    --line: #23405b; --cobalt: #7ab0d8; --cobalt-soft: #1b3550; --gold: #e2b65c;
    --ph-bg: #4a3b0a; --ph-ink: #ffe59a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--body);
}
a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 20px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); }
.brand svg { width: 40px; height: 35px; fill: var(--cobalt); stroke: var(--cobalt); }
.brand .word { display: grid; line-height: 1; }
.brand .word b { font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
.brand .word small { font-weight: 500; font-size: .62rem; letter-spacing: .42em; color: var(--cobalt); margin-top: 3px; }
.nav { display: flex; gap: 20px; font-size: .95rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* home */
.hero { padding-block: 72px 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 0; }
.hero-mark { justify-self: center; width: min(240px, 70%); fill: var(--cobalt); stroke: var(--cobalt); }
.hero-mark .shine { stroke: var(--bg); stroke-opacity: .35; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--cobalt); font-weight: 600; margin: 0 0 14px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 0 64px; }
.services div { background: var(--surface); padding: 24px; min-width: 0; }
.services h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0 0 8px; }
.services p { margin: 0; color: var(--muted); font-size: .98rem; }
.story { margin-block: 0 64px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.story > div { max-width: 40rem; min-width: 0; }
.story .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.story p { margin: 0; color: var(--muted); }
.story h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; color: var(--ink); }
.contact { padding-block: 0 72px; }
.contact h2 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; margin: 0 0 8px; }

/* legal pages */
.legal { max-width: 44rem; padding-block: 48px 72px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 8px; }
.legal .meta { color: var(--muted); margin: 0 0 32px; font-size: .95rem; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 40px 0 8px; text-wrap: balance; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 4px; }
.summary { background: var(--cobalt-soft); padding: 18px 22px; border-radius: 6px; margin-bottom: 8px; }
.summary p { margin: 0; }
.table-scroll { overflow-x: auto; margin-block: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface); }
.toc { border-left: 2px solid var(--line); padding-left: 16px; margin-bottom: 8px; font-size: .95rem; }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
mark.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { padding-block: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 32px; }
  .hero-mark { order: -1; width: 120px; justify-self: start; }
  .services { grid-template-columns: 1fr; }
}
