@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800;900&display=swap");

:root{
  --cream:#faf7ef;
  --blue:#003478;
  --blue-2:#00265a;
  --green:#97d700;
  --charcoal:#3b3834;
  --text:#ffffff;
  --muted:rgba(255,255,255,.78);
  --line:rgba(255,255,255,.18);
}

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

html,
body{
  min-height:100%;
}

body{
  margin:0;
  overflow-x:hidden;
  background:var(--blue);
  color:var(--text);
  font-family:"Work Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size:18px;
  line-height:1.5;
}

.expo-shell{
  min-height:100dvh;
  display:grid;
  background:var(--blue);
}

.expo-stage{
  width:100%;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(18px, 3vh, 34px);
  padding:clamp(26px, 5vw, 72px);
  border-top:8px solid var(--green);
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue-2) 100%);
  color:#fff;
  overflow:hidden;
}

.expo-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

.eyebrow{
  margin:0;
  color:var(--green);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.34em;
  text-transform:uppercase;
}

h1{
  margin:16px 0 0;
  color:#fff;
  font-size:clamp(2.55rem, 6.6vw, 6.4rem);
  font-weight:900;
  line-height:.96;
  letter-spacing:0;
}

.top-controls{
  flex:0 1 320px;
}

.top-controls select{
  width:100%;
  min-height:52px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:4px;
  background:#fff;
  color:var(--blue);
  cursor:pointer;
  font:600 1rem/1.2 inherit;
  padding:14px 16px;
}

.progress-track{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  overflow:hidden;
}

.progress-bar{
  width:0%;
  height:100%;
  background:var(--green);
  transition:width .15s linear;
}

.word-wrap{
  position:relative;
  container-type:inline-size;
  min-height:clamp(150px, 20vh, 250px);
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  margin-inline:auto;
  margin-top:auto;
  text-align:left;
  width:min(1240px, 100%);
}

.word{
  position:relative;
  z-index:2;
  max-width:100%;
  color:#fff;
  font-size:clamp(4.8rem, 15vw, 13rem);
  font-size:min(clamp(4.8rem, 15vw, 13rem), calc(170cqw / var(--word-chars, 6)));
  font-weight:900;
  letter-spacing:0;
  line-height:.86;
  overflow-wrap:normal;
  text-align:left;
  word-break:normal;
}

.glow{
  display:none;
}

.quote{
  margin:0;
  margin-inline:auto;
  max-width:min(1180px, 100%);
  border-left:6px solid var(--green);
  border-top:0;
  color:rgba(255,255,255,.92);
  font-size:clamp(1.25rem, 2.2vw, 1.95rem);
  line-height:1.55;
  padding:0 0 0 clamp(18px, 2vw, 28px);
  text-align:left;
  text-wrap:pretty;
  width:min(1180px, 100%);
}

.meta{
  color:var(--muted);
  font-size:clamp(.9rem, 1.2vw, 1.05rem);
  font-weight:500;
  margin-inline:auto;
  text-align:left;
  width:min(1180px, 100%);
}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
  margin-bottom:auto;
  margin-inline:auto;
  width:min(1180px, 100%);
}

button{
  min-height:52px;
  border-radius:4px;
  cursor:pointer;
  font-family:inherit;
  font-size:.9rem;
  font-weight:700;
  line-height:1.1;
  padding:16px 20px;
  text-transform:uppercase;
  transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

button.primary{
  border:1px solid var(--green);
  background:var(--green);
  color:var(--blue);
}

button.primary:hover{
  background:#fff;
  border-color:#fff;
  color:var(--blue);
  transform:translateY(-3px);
}

button.ghost{
  border:1px solid rgba(255,255,255,.48);
  background:transparent;
  color:#fff;
}

button.ghost:hover{
  background:#fff;
  border-color:#fff;
  color:var(--blue);
  transform:translateY(-3px);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

html.embed,
html.embed body{
  overflow:hidden;
  width:100%;
  height:100%;
  min-height:100%;
}

html.embed body{
  scrollbar-width:none;
}

html.embed body::-webkit-scrollbar{
  display:none;
}

html.embed .expo-shell{
  height:100%;
  min-height:0;
  overflow:hidden;
}

html.embed .expo-stage{
  container-type:size;
  --stage-content: min(1320px, 100%);
  --reading-content: min(1180px, 100%);
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:auto auto clamp(160px, 26vh, 290px) auto auto auto;
  grid-template-rows:auto auto clamp(160px, min(24cqh, 21cqw), 290px) auto auto auto;
  align-content:start;
  justify-content:stretch;
  gap:clamp(8px, min(1.2cqw, 1.7cqh), 20px);
  padding:clamp(24px, min(4cqw, 5cqh), 72px);
  border-top:0;
  overflow:hidden;
}

html.embed .expo-top,
html.embed .progress-track,
html.embed .word-wrap{
  width:var(--stage-content);
  margin-inline:auto;
}

html.embed .quote,
html.embed .meta,
html.embed .controls{
  width:var(--reading-content);
  margin-inline:auto;
}

html.embed .expo-top{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(220px, 24%);
  align-items:flex-start;
  gap:clamp(14px, min(2cqw, 3cqh), 32px);
}

html.embed h1{
  margin-top:clamp(8px, min(1cqw, 1.4cqh), 16px);
  font-size:clamp(2rem, min(4cqw, 7cqh), 4.15rem);
  line-height:.94;
}

html.embed .top-controls{
  flex:initial;
  width:100%;
  justify-self:end;
}

html.embed .top-controls select{
  min-height:clamp(34px, min(2.7cqw, 4.5cqh), 52px);
  font-size:clamp(.86rem, min(1.05cqw, 2cqh), 1.05rem);
  padding:clamp(7px, min(.9cqw, 1.4cqh), 14px) clamp(10px, 1.2cqw, 16px);
}

html.embed .progress-track{
  height:clamp(6px, min(.75cqw, 1.2cqh), 11px);
}

html.embed .word-wrap{
  align-items:center;
  container-type:normal;
  display:flex;
  flex:initial;
  justify-content:flex-start;
  height:100%;
  margin:0 auto;
  min-height:0;
  padding-top:0;
}

html.embed .word{
  font-size:clamp(4rem, min(11.5cqw, 17cqh), 9rem);
  font-size:min(clamp(4rem, min(11.5cqw, 17cqh), 9rem), calc(178cqw / var(--word-chars, 6)));
  line-height:.86;
}

html.embed .quote{
  display:-webkit-box;
  max-width:var(--reading-content);
  overflow:hidden;
  overflow-wrap:break-word;
  white-space:normal;
  word-break:normal;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  border-left-width:4px;
  font-size:clamp(1rem, min(1.18cqw, 2.35cqh), 1.34rem);
  line-height:1.35;
}

html.embed .meta{
  font-size:clamp(.78rem, min(1cqw, 1.8cqh), 1rem);
}

html.embed .controls{
  gap:clamp(8px, min(1cqw, 1.5cqh), 14px);
  margin-bottom:0;
  margin-top:0;
}

html.embed button{
  min-height:clamp(38px, min(3cqw, 5.5cqh), 54px);
  padding:clamp(9px, min(1cqw, 1.8cqh), 16px) clamp(13px, min(1.6cqw, 2.6cqh), 22px);
  font-size:clamp(.76rem, min(.9cqw, 1.65cqh), .96rem);
}

@media (max-height: 700px){
  html.embed .expo-stage{
    gap:clamp(7px, min(1cqw, 1.4cqh), 14px);
    grid-template-rows:auto auto clamp(120px, 24vh, 220px) auto auto auto;
    grid-template-rows:auto auto clamp(120px, min(23cqh, 20cqw), 220px) auto auto auto;
    padding:clamp(18px, min(3cqw, 4cqh), 46px);
  }

  html.embed h1{
    font-size:clamp(1.65rem, min(3cqw, 6cqh), 3rem);
  }

  html.embed .word{
    font-size:clamp(3.2rem, min(10cqw, 15cqh), 7.5rem);
    font-size:min(clamp(3.2rem, min(10cqw, 15cqh), 7.5rem), calc(176cqw / var(--word-chars, 6)));
  }

  html.embed .quote{
    font-size:clamp(.92rem, min(1.15cqw, 2.2cqh), 1.15rem);
  }
}

@media (max-width: 680px){
  .expo-stage{
    padding:22px 18px;
    gap:18px;
  }

  h1{
    font-size:2.7rem;
  }

  .word{
    font-size:clamp(4.2rem, 22vw, 6.4rem);
    font-size:min(clamp(4.2rem, 22vw, 6.4rem), calc(165cqw / var(--word-chars, 6)));
  }

  .quote{
    border-left-width:4px;
  }

  html.embed .expo-stage{
    grid-template-rows:auto auto clamp(130px, 24vh, 210px) auto auto auto;
    grid-template-rows:auto auto clamp(130px, 24cqh, 210px) auto auto auto;
    gap:clamp(8px, 2vh, 14px);
    padding:clamp(18px, 6vw, 34px);
  }

  html.embed .expo-top{
    grid-template-columns:1fr;
  }

  html.embed .top-controls{
    justify-self:stretch;
  }

  html.embed h1{
    font-size:clamp(2rem, 10cqw, 3.25rem);
  }

  html.embed .word{
    font-size:clamp(3.6rem, 20cqw, 6.5rem);
    font-size:min(clamp(3.6rem, 20cqw, 6.5rem), calc(168cqw / var(--word-chars, 6)));
  }

  html.embed .quote{
    -webkit-line-clamp:3;
    font-size:clamp(.95rem, 4cqw, 1.22rem);
  }

  html.embed .meta{
    font-size:clamp(.72rem, 3vw, .9rem);
  }

  .controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  button{
    width:100%;
    min-height:48px;
    padding:14px 10px;
    white-space:normal;
  }

  html.embed .controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  html.embed button{
    min-height:42px;
    padding:10px;
    font-size:.76rem;
  }
}

@media (max-height: 560px){
  html.embed .expo-stage{
    gap:6px;
    grid-template-rows:auto auto clamp(82px, 22vh, 140px) auto auto auto;
    grid-template-rows:auto auto clamp(82px, 22cqh, 140px) auto auto auto;
    padding:12px 18px;
  }

  html.embed .eyebrow{
    font-size:.66rem;
  }

  html.embed h1{
    margin-top:4px;
    font-size:clamp(1.35rem, min(2.4cqw, 5cqh), 2rem);
  }

  html.embed .top-controls select{
    min-height:34px;
    padding:7px 10px;
  }

  html.embed .progress-track{
    height:6px;
  }

  html.embed .word{
    font-size:min(clamp(2.8rem, min(8cqw, 14cqh), 5rem), calc(170cqw / var(--word-chars, 6)));
  }

  html.embed .quote{
    -webkit-line-clamp:2;
    font-size:clamp(.82rem, min(1cqw, 2.3cqh), .95rem);
    line-height:1.25;
  }

  html.embed .controls{
    gap:6px;
  }

  html.embed button{
    min-height:34px;
    padding:7px 10px;
    font-size:.7rem;
  }
}
