/* Colours from the KubeCon + CloudNativeCon North America 2026 speaker template. */
:root {
  color-scheme: light;
  --blue: #113e82;
  --navy: #052243;
  --magenta: #d62293;
  --yellow: #ffee88;
  --sky: #e3f6ff;
  --muted: #4a5d78;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  background: #ffffff;
  color: var(--navy);
  font: 17px/1.6 Arial, Helvetica, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Full-bleed title block with the template's banner as background. The blue gradient
   sits over the banner's top half so the text keeps its contrast. */
.hero {
  margin: 0 calc(50% - 50vw);
  min-height: 420px;
  padding: 48px max(16px, calc(50vw - 344px)) 120px;
  background:
    linear-gradient(to bottom, var(--blue) 0%, rgba(17, 62, 130, 0.85) 45%, rgba(17, 62, 130, 0) 80%),
    url("kubecon/banner.png") center bottom / cover no-repeat,
    var(--blue);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(5, 34, 67, 0.6);
}

.hero .button { text-shadow: none; }

.hero .partners {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  color: var(--sky);
}

.hero .partners img { display: block; height: 22px; width: auto; }
.hero .partners a { opacity: 0.9; }
.hero .partners a:hover { opacity: 1; }

.hero .mark { margin: 0 0 16px; }
.hero .mark img { display: block; height: 44px; width: auto; }

.hero .event {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin: 0 0 8px; line-height: 1.15; }
.hero h1 + p { color: var(--sky); font-size: 1.15rem; margin-top: 0; }
h2 { margin-top: 48px; font-size: 1.5rem; color: var(--magenta); }
h3 { margin: 24px 0 4px; font-size: 1.1rem; }

a { color: var(--blue); }
a:hover { color: var(--magenta); }

ul { padding-left: 20px; }
li { margin: 4px 0; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #ffffff; color: var(--navy); }

.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The translucent fill keeps the label readable where the button wraps onto the banner. */
.hero .button.secondary {
  background: rgba(5, 34, 67, 0.55);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.hero .button.secondary:hover { background: #ffffff; color: var(--navy); }

.callout {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  background: var(--sky);
}

.callout p { margin: 0; }

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.person {
  background: var(--sky);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.person img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yellow);
}

.person h3 { margin-top: 12px; }
.person h3 + p { color: var(--muted); margin: -4px 0 12px; font-size: 0.95rem; }

.company { margin: 4px 0 16px; }
.company img { width: auto; height: 28px; border: 0; border-radius: 0; }

/* Icon-only links; the link text stays for screen readers. The icon is picked from the URL. */
.social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  position: relative;
}

.social a:hover { background: var(--magenta); }

.social a::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #ffffff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.social a { --icon: url("icons/globe.svg"); }
.social a[href*="github.com"] { --icon: url("icons/github.svg"); }
.social a[href*="linkedin.com"] { --icon: url("icons/linkedin.svg"); }
.social a[href*="bsky.app"] { --icon: url("icons/bluesky.svg"); }

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.offer {
  background: var(--sky);
  border-radius: 14px;
  padding: 24px;
}

.offer .company { margin-top: 0; }

.offer p:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.offer .button { background: var(--blue); color: #ffffff; }
.offer .button:hover { background: var(--magenta); color: #ffffff; }

.tech {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tech li { margin: 0; }

.tech a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.tech a:hover { outline: 2px solid var(--magenta); color: var(--navy); }
.tech img { width: 36px; height: 36px; object-fit: contain; }

.feedback { margin-top: 48px; text-align: center; font-weight: 700; }

footer {
  height: 88px;
  background: url("kubecon/hex.png") left top / auto 88px repeat-x;
}
