/* Fira Sans / Fira Sans Condensed: SIL Open Font License 1.1 (assets/fonts/OFL.txt) */
@font-face {
  font-family: "Fira Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/fira-sans-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/fira-sans-condensed-latin-700-normal.woff2") format("woff2");
}

/* adesso theme colours (TechEd deck theme "adesso1"), laid out with iOS-style
   materials: frosted cards, inset grouped list, continuous corner radii. */
:root {
  --blue: #006EC7;          /* adesso dk2 */
  --blue-pressed: #005BA6;
  --mint: #28DCAA;          /* adesso accent6 */
  --purple: #461EBE;        /* adesso accent1 */
  --ink: #1D1D1F;
  --secondary: #6E6E73;
  --separator: rgb(60 60 67 / 0.16);
  --glass: rgb(255 255 255 / 0.9);
  --heading: "Fira Sans Condensed", "Fira Sans", system-ui, -apple-system, sans-serif;
  --body: "Fira Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Solid adesso blue: Safari uses this for the status bar, toolbar area and
     overscroll, so the page edges must end in exactly this colour. */
  background-color: #006EC7;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

/* The deck's background, pinned to the screen. Both edges end in plain adesso
   blue: Safari paints its status bar and bottom toolbar area in the root
   background colour, so the mint glow fades out before the bottom edge. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(0 110 199 / 0) 72%, rgb(0 110 199 / 1) 100%),
    radial-gradient(85% 42% at 50% 92%, rgb(40 220 170 / 0.9) 0%, rgb(40 220 170 / 0.35) 45%, rgb(40 220 170 / 0) 80%),
    var(--blue);
}

/* Top bar --------------------------------------------------------------- */

.topbar { padding: 0.25rem 0.25rem 0; }

.logo {
  display: block;
  width: auto;
  height: 2rem;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  margin: 2.5rem 0 1.75rem;
  color: #FFFFFF;
  text-align: center;
}

.pill {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: clamp(0.6875rem, 3.4vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(3rem, 15vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0.6rem 0 0;
  color: rgb(255 255 255 / 0.92);
  font-size: 1.0625rem;
  font-weight: 500;
}

/* Glass material -------------------------------------------------------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 0.6),
    0 12px 32px -12px rgb(0 30 70 / 0.35);
}

/* Profile --------------------------------------------------------------- */

.profile {
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
}

.portrait {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
  background: #E7E5E3;
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--mint), 0 8px 20px rgb(0 30 70 / 0.2);
}

.name {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.role {
  margin: 0.3rem 0 1.25rem;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover { background: var(--blue-pressed); }
.btn:active { transform: scale(0.98); background: var(--blue-pressed); }

/* Inset grouped list ---------------------------------------------------- */

.list {
  margin-top: 1rem;
  overflow: hidden;
}

.list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.6rem 0.875rem;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.row:active { background: rgb(0 0 0 / 0.05); }

/* iOS-style separator, inset to the text column */
.list li + li .row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 3.625rem;
  border-top: 1px solid var(--separator);
}

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: #FFFFFF;
}

.tile-blue { background: var(--blue); }
.tile-purple { background: var(--purple); }
.tile-ink { background: var(--ink); }

.text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.label {
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.value {
  color: var(--blue);
  font-size: clamp(0.875rem, 3.9vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.35;
}

.nb { white-space: nowrap; }

.chevron {
  flex: none;
  color: rgb(60 60 67 / 0.3);
}

.btn:focus-visible,
.row:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.btn:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 5px var(--ink); }

/* Footer ---------------------------------------------------------------- */

.footer {
  margin: 1.5rem 1rem 0;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.footer p { margin: 0; }

@media (min-width: 40rem) {
  .page { padding-top: 2rem; }
  .hero { margin-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
