/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Base + layout */
:root {
  --light-gray: #888;
  --gray-ink: #222222; /* requested text color for feature box */
  --whitesmoke: whitesmoke; /* fill color for feature box */
  --near-black: #121212; /* dark gray for general text if needed */

  --dark-aquamarine: #336857;
  --dark-hotpink: #7c3257;
  --dark-salmon: #81413a;
  --yellow: #e6dd20;
  --dark-yellow: #777701;
  --yellow-alpha: rgba(230, 221, 32, 0.95);

  --nav-h: 56px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, Roboto, Segoe UI, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--gray-ink);
  font-weight: 600;
  line-height: 1.5;
}

.page {
  height: 100dvh; /* supports mobile address bar */
}

.panel {
  min-height: calc(100vh);
  display: grid;
  place-items: center;
  margin: 6vh 0;
  scroll-snap-align: start;
  position: relative;
}

.comic-page .panel {
  min-height: 50vh;
}

.panel .content {
  max-width: min(900px, 92vw);
}

.bg-yellow {
  background: var(--yellow);
}

.bg-white {
  background: white;
}

.col-left, .col-right {
  min-width: 10%;
}

.col-center {
  width: min(900px, 92vw);
}

/* FULLWIDTH layout: centered feature box */
.panel[data-layout="full"] .feature-box {
  width: min(900px, 92vw);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 20px 20px rgba(0, 0, 0, .12);
}

h1, h2 {
  font-family: "Winky Sans", sans-serif;
  line-height: 1.25;
}

h1 {
  font-size: 4.25em;
}


.bg-yellow a {
  color: var(--near-black);
  text-decoration:none;
  border-bottom: var(--near-black) solid 2px;
}
.bg-yellow a:hover {
  border-bottom: 0;
  color: #62028a;
  border-bottom: #62028a solid 2px;
}

.bg-white a {
  color: #62028a;
  text-decoration:none;
  border: none;
}
.bg-white a:hover {
  border-bottom: 0;
  color: #62028a;
  text-decoration: underline;
}

.navbar a {
  border-bottom: 0;
}

.navbar a:hover {
  border-bottom: #62028a solid 2px;
}

.title {
  margin-top: 0;
  font-size: 6em;
}

.text-center {
  text-align: center;
}

.w-900 {
  width: min(900px, 92vw);
}

.feature-box h1 {
  margin: 0 0 .4em;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
}

/* TWO-COLUMN layout */
.panel[data-layout="two-col"] .content.two-col {
  width: min(1200px, 94vw);
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* left wider, right narrower for bubbles */
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
}

.col.left h2 {
  margin: 0 0 .4em;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.1;
}

.col.left p {
  margin: 0 0 1em;
}

.bear {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 420px;
}

.bear-title {
  padding-top: var(--nav-h);
  position: relative;
  height: auto;
}

/* COMIC */
.comic-page {
  overflow-x: auto !important;
}

.comic-frame {
  width: 850px;
  border-radius: 20px;
  padding: 25px 15px;
  box-shadow: 20px 20px rgba(0, 0, 0, .12);
}

.comic-title {
  padding-left: 25px;
}

.comic-frame h1 {
  font-size: 1.25em;
}

.comic-frame button {
  margin-left: 25px;
}


.comic-frame .comic-nav {
  display: grid;
  grid-template-columns: 3fr 0.5fr 0.5fr;
}

.transcript {
  padding-left: 25px;
}


.comic-frame li {
  margin-bottom: 0.25em;
}

.comic {
  width: 800px;
  height: auto;
}

/* END COMIC */

/* ABOUT */

.text-left {
  text-align: left !important;
}

.oversize-panel {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* END ABOUT */

hr {
  border: 1px solid var(--dark-yellow);
}

/* Navigation */
.navbar {
  font-family: "Winky Sans", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--yellow-alpha);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.nav-brand {
  margin-left: 50px;
}

.nav-waitlist {
  justify-self: end;
  margin-right: 50px;
}

.navbar a {
  text-decoration: none;
  font-weight: 500;
}

.navbar ul {
  margin-top: 0;
  padding-left: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none !important;
  margin: 0 auto;
  font-size: 1.6em;
  color: white;
  cursor: pointer;
}

button, a.nav-waitlist {
  font-family: "Winky Sans", sans-serif;
  font-size: 1em;
  padding: 0.4rem 0.8rem;
  border: solid 2px var(--near-black) !important;
  border-radius: 4px;
}

.bg-yellow button, .bg-yellow a.nav-waitlist {
  background-color: var(--yellow);
  color: inherit;
}

.bg-yellow button:hover, .bg-yellow a:hover.nav-waitlist {
  background-color: var(--dark-yellow);
  color: var(--whitesmoke);
}

/* Keyboard focus ring on the real control */
.bg-yellow button:active {
  background-color: var(--gray-ink);
}



/* Mobile */
@media (max-width: 700px) {
  /* 1) Two rows: row1 = bar, row2 = dropdown */
  .navbar {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  /* Row 1: pin items so they never move */
  .nav-brand    { grid-column:1; grid-row:1; justify-self:start; position:static; left:auto; }
  .nav-toggle   { grid-column:2; grid-row:1; justify-self:start; display: block; }
  .nav-waitlist { grid-column:3; grid-row:1; justify-self:end; }

  /* Row 2: dropdown spans full width under row1 */
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 2em;
    gap: 1em;
    text-align: center;
    background: var(--yellow-alpha);
    border-bottom: 4px solid var(--dark-yellow);
  }
  .nav-links.active { display: flex; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

/* Responsiveness */
@media (max-width: 700px) {
  .panel[data-layout="two-col"] .content.two-col {
    grid-template-columns: 1fr;
  }

  h1 {
    margin-top: 0;
    font-size: 2.5em;
  }

  h2 {
    font-size: 1.5em;
  }

  .title {
    font-size: 3.25em;
  }

  .bear {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: auto;
  }

  .bear-title {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-brand {
    margin-left: 20px;
  }

  .nav-waitlist {
    justify-self: end;
    margin-right: 20px;
  }


}


@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

