/* SummerInt — Cloud & DevOps
   Dark by default, light when the visitor's system asks for it, and a manual
   toggle that wins over both. Every colour comes from a token so the two
   themes stay in step. */

:root {
  --ground:      #0a0e13;
  --surface:     #121a23;
  --surface-2:   #18222d;
  --ink:         #e8eef5;
  --ink-soft:    #9dabb9;
  --ink-faint:   #6b7987;
  --rule:        #223040;
  --accent:      #45d4a8;
  --accent-ink:  #05231a;
  --accent-glow: rgba(69, 212, 168, .14);
  --shadow:      0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  --radius:      12px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:      #f4f6f8;
    --surface:     #ffffff;
    --surface-2:   #eef2f6;
    --ink:         #101820;
    --ink-soft:    #4a5866;
    --ink-faint:   #78868f;
    --rule:        #dbe2e9;
    --accent:      #0b7f63;
    --accent-ink:  #ffffff;
    --accent-glow: rgba(11, 127, 99, .10);
    --shadow:      0 1px 2px rgba(16,24,32,.06), 0 8px 24px rgba(16,24,32,.08);
  }
}

:root[data-theme="light"] {
  --ground:      #f4f6f8;
  --surface:     #ffffff;
  --surface-2:   #eef2f6;
  --ink:         #101820;
  --ink-soft:    #4a5866;
  --ink-faint:   #78868f;
  --rule:        #dbe2e9;
  --accent:      #0b7f63;
  --accent-ink:  #ffffff;
  --accent-glow: rgba(11, 127, 99, .10);
  --shadow:      0 1px 2px rgba(16,24,32,.06), 0 8px 24px rgba(16,24,32,.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(64rem, 100% - 2.5rem); margin-inline: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em;
  background: var(--surface-2);
  padding: .12em .4em;
  border-radius: 4px;
}

a { color: var(--accent); text-underline-offset: 3px; }

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

/* ---------- masthead ---------- */

.masthead {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(60rem 22rem at 12% -10%, var(--accent-glow), transparent 65%);
}
.masthead-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.eyebrow {
  margin: 0;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 650; color: var(--accent);
}
h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: .98; letter-spacing: -.035em; font-weight: 800;
}
.standfirst {
  margin: 0 0 1.8rem;
  max-width: 46ch; font-size: clamp(1rem, 2.4vw, 1.14rem); color: var(--ink-soft);
}

.pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  font-size: .78rem;
}
.pipeline span {
  background: var(--surface); border: 1px solid var(--rule);
  padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
  font-weight: 550;
}
.pipeline i { color: var(--ink-faint); font-style: normal; }
.pipeline .live {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent; font-weight: 700;
}

.theme-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: .35rem .8rem; font: inherit; font-size: .78rem; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-dot {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- tools ---------- */

main { padding: 3rem 0 1rem; }

h2 {
  margin: 0 0 .4rem;
  font-size: 1.5rem; letter-spacing: -.02em; font-weight: 700;
}
.lede { margin: 0 0 1.75rem; color: var(--ink-soft); max-width: 54ch; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.tool {
  font: inherit; font-size: .93rem; font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: transform .14s ease, border-color .14s, color .14s, background .14s;
}
.tool:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.tool[aria-selected="true"] {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent; box-shadow: var(--shadow);
}

/* Without JS every panel simply shows, so the content is never trapped. */
.js .panel[hidden] { display: none; }
.panel:not([hidden]) { display: block; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem clamp(1.1rem, 3vw, 2rem) 1.8rem;
  box-shadow: var(--shadow);
}
.js .panel { animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel .role {
  margin: 0 0 .25rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}
.panel h3 {
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -.025em; font-weight: 750;
}
.panel .why {
  margin: 0 0 1.2rem; font-size: 1.03rem; max-width: 58ch; color: var(--ink);
}

.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.facts li {
  position: relative; padding-left: 1.6rem;
  color: var(--ink-soft); font-size: .93rem; max-width: 62ch;
}
.facts li::before {
  content: ""; position: absolute; left: .35rem; top: .62em;
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--accent);
}
.facts strong { color: var(--ink); font-weight: 650; }

/* ---------- numbers ---------- */

.numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .6rem; margin: 2.25rem 0 1rem;
}
.numbers div {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: .9rem 1.1rem;
}
.numbers dt {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 650; margin-bottom: .2rem;
}
.numbers dd {
  margin: 0; font-size: 1.7rem; font-weight: 780; letter-spacing: -.03em;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.numbers dd span { font-size: .85rem; font-weight: 550; color: var(--ink-faint); }

/* ---------- footer ---------- */

footer {
  margin-top: 2.5rem; padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint); font-size: .87rem;
}
footer p { margin: 0 0 .4rem; }
footer strong { color: var(--ink-soft); font-weight: 650; }
.links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 30rem) {
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
  .tool { padding: .7rem .8rem; font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tool:hover { transform: none; }
}
