/*
 * AUGYBOT — static rebuild of the Weebly "Birdseye" theme.
 *
 * Values here were taken from computed styles captured off the live site
 * (crawl-data/computed/*.json), not from Weebly's generated stylesheets, so
 * the result matches what the browser actually rendered rather than what the
 * vendor CSS nominally said. Weebly shipped ~270KB of theme CSS for this;
 * everything the site actually used is below.
 */

/* ---------------------------------------------------------------- fonts */

/* Birdseye — the theme's licensed body face, served from the original site.
   Only weights 100/500/600 exist; 500 is the one the pages actually use. */
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-100-normal.woff2") format("woff2"),
       url("../fonts/birdseye-100-normal.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-100-italic.woff2") format("woff2"),
       url("../fonts/birdseye-100-italic.woff") format("woff");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-500-normal.woff2") format("woff2"),
       url("../fonts/birdseye-500-normal.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-500-italic.woff2") format("woff2"),
       url("../fonts/birdseye-500-italic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-600-normal.woff2") format("woff2"),
       url("../fonts/birdseye-600-normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Birdseye;
  src: url("../fonts/birdseye-600-italic.woff2") format("woff2"),
       url("../fonts/birdseye-600-italic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */

:root {
  --font-body: Birdseye, sans-serif;
  --font-display: Montserrat, sans-serif;   /* logo, nav, hero titles, buttons */
  --font-heading: "Playfair Display", serif; /* in-page section headings, table text */

  --ink: #0e4361;          /* body copy blue the editor applied throughout */
  --ink-heading: #1b597c;  /* section headings */
  --ink-black: #000;
  --white: #fff;

  --page-bg: #fff;
  --rule: #c9cdcf;         /* table borders */
  --cell-head-bg: #f8f8f8; /* first row of each table */

  --gutter: 40px;          /* header padding, and the container's own padding */
  --content-max: 1200px;   /* 1120px of content inside 2 x 40px padding */
  --header-h: 88px;        /* fixed header height, used as hero top padding */
}

/* ---------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

img {
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------ structure */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The header spans the full viewport, so it gets its own wider gutter. */
.site-header > .container {
  max-width: none;
  padding: 0;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  width: 100%;
  padding: 20px var(--gutter);
  color: var(--white);
  transition: background-color 300ms, color 260ms, padding 180ms;
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-height: 80px;
}

/* Once scrolled past the hero the bar becomes solid — the original theme
   swapped to a translucent black panel with white text. */
.site-header.is-scrolled {
  padding: 10px var(--gutter);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.site-logo {
  max-width: 400px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 200ms, font-size 260ms;
}

.site-logo:hover {
  opacity: 0.6;
}

.site-header.is-scrolled .site-logo {
  font-size: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 300ms;
}

.nav-link:hover {
  opacity: 0.6;
}

/* The current page is outlined rather than filled. The border inherits the
   header's colour, so it is white over the hero and white again once the bar
   goes solid black. */
.nav-item.is-active .nav-link {
  border-color: currentColor;
}

/* The overlay close button only exists inside the mobile menu. */
.nav-close {
  display: none;
}

/* Hamburger — hidden on desktop, shown under 992px. */
.nav-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
  padding: 10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: 200ms ease-in-out;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  bottom: -6px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--ink-black);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  text-align: center;
}

/* Per-page hero heights, as measured on the live site. Inner pages centre
   their title; the home hero starts its content near the top instead, which
   is what the original's 118px spacer above the headline produced. */
.hero--home {
  min-height: 1174px;
  padding-top: calc(var(--header-h) + 118px);
  align-items: flex-start;
  text-align: left;
}
.hero--commands { min-height: 308px; padding-top: var(--header-h); }
.hero--updates { min-height: 258px; padding-top: var(--header-h); }
.hero--support { min-height: 454px; padding-top: var(--header-h); }
.hero--credits { min-height: 425px; padding-top: var(--header-h); }
.hero--sgbot { min-height: 308px; padding-top: var(--header-h); }

.hero .container {
  width: 100%;
}

.hero-title {
  margin: 15px 0;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -3px;
  color: var(--white);
}

.hero--home .hero-title {
  text-align: left;
}

/* The original laid the hero body out as a two-column table: a 57.13% text
   column and an empty 42.87% spacer column. A single constrained column is
   the same result without the table. */
.hero-lede {
  max-width: 57.13%;
  margin: 19px 0 35px;
  font-family: var(--font-heading);
  /* The editor set this one line a size up from body copy. */
  font-size: 22px;
  line-height: 1.55;
  text-align: left;
  color: var(--white);
}

.hero-actions {
  max-width: 57.13%;
  text-align: left;
}

.hero-actions .rule {
  margin: 20px 0;
}

/* The two invite buttons sat in equal halves of the text column. */
.hero-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

.hero-actions-row .btn {
  justify-self: start;
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--ink-black);
  background: transparent;
  color: var(--ink-black);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 100ms ease-in-out;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* The filled variant the site uses everywhere; it inverts on hover. */
.btn--solid {
  background: var(--ink-black);
  border-color: var(--ink-black);
  color: var(--white);
}

.btn--solid:hover {
  background: transparent;
  color: var(--ink-black);
}

/* On the dark hero the inverted state needs to stay legible. */
.hero .btn--solid:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* -------------------------------------------------------------- content */

.section {
  padding: 50px 0;
  background: var(--page-bg);
}

.section-title {
  margin: 0 0 30px;
  font-family: var(--font-heading);
  font-size: 37px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-heading);
}

.lead {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

.text {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

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

.rule {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.35;
}

.note {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink);
}

.center {
  text-align: center;
}

/* --------------------------------------------------------------- tables */

.table-wrap {
  padding: 20px 0;
  overflow-x: auto;
}

.cmd-table {
  width: 100%;
  border: 1px solid var(--rule);
  border-spacing: 0;
  font-family: var(--font-heading);
  font-size: 16px;
}

.cmd-table td,
.cmd-table th {
  width: 25%;
  padding: 10px 5%;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  text-align: center;
  font-weight: 500;
  word-break: break-word;
}

.cmd-table thead th {
  background: var(--cell-head-bg);
  font-weight: 700;
}

.cmd-table tr:last-child td {
  border-bottom: 0;
}

.cmd-table td:last-child,
.cmd-table th:last-child {
  border-right: 0;
}

/* Rows the site owner left blank in the Weebly editor; kept so the rebuild
   matches the original, marked so they're easy to strip later. */
.cmd-table tr.is-placeholder td {
  color: var(--ink);
}

/* --------------------------------------------------------- command list */

/* SgBot page: plain newline-separated command lines rather than a table. */
.cmd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

/* ------------------------------------------------------------ changelog */

.changelog {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--ink);
}

.changelog dt {
  margin-top: 24px;
  font-weight: 700;
}

.changelog dd {
  margin: 0;
}

/* -------------------------------------------------------------- credits */

.credits {
  margin: 0;
  font-family: var(--font-heading);
  text-align: center;
  color: var(--ink);
}

.credits dt {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 700;
}

.credits dd {
  margin: 0;
}

/* --------------------------------------------------------------- embeds */

/* Responsive wrapper for the third-party iframes the original page embedded. */
.embed {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.embed iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

.embed--discord iframe {
  height: 500px;
}

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

.site-footer {
  padding: 30px 0;
  background: var(--page-bg);
  font-family: var(--font-heading);
  font-size: 14px;
  text-align: center;
  color: var(--ink);
}

.site-footer a {
  text-decoration: underline;
}

/* ----------------------------------------------------------- responsive */

@media screen and (max-width: 992px) {
  .site-header {
    min-height: 50px;
    padding: 5px 20px;
  }

  .site-header > .container {
    min-height: 40px;
  }

  .site-logo,
  .site-header.is-scrolled .site-logo {
    font-size: 1.1em;
    line-height: 1.4em;
  }

  .nav-toggle {
    display: block;
  }

  /* Desktop nav becomes a full-screen white overlay, opened by toggling
     `nav-open` on <body>. */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12;
    width: 100%;
    height: 100%;
    max-height: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--white);
    transition: 300ms cubic-bezier(0, 0.085, 0.68, 0.53);
  }

  body.nav-open .site-nav {
    max-height: 100vh;
    padding: 50px 0;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    padding: 10px 0;
    border: 0;
    font-size: 14px;
    color: var(--ink-black);
  }

  .nav-link:hover,
  .nav-item.is-active .nav-link {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
  }

  /* Close button sits inside the overlay, over the panel. */
  .nav-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--ink-black);
    cursor: pointer;
  }

  .nav-close::before,
  .nav-close::after {
    position: absolute;
    top: 14px;
    left: 4px;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .nav-close::before {
    transform: rotate(45deg);
  }

  .nav-close::after {
    transform: rotate(135deg);
  }

  /* Heroes lose their fixed heights so content decides. */
  .hero--home,
  .hero--commands,
  .hero--updates,
  .hero--support,
  .hero--credits,
  .hero--sgbot {
    min-height: 0;
    padding: calc(var(--header-h) + 40px) 0 60px;
  }
}

@media screen and (max-width: 767px) {
  /* The original scaled the hero headline with the viewport at this width. */
  .hero-title {
    font-size: 9vw;
    letter-spacing: -1px;
  }

  .hero-lede,
  .hero-actions {
    max-width: none;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions-row {
    gap: 12px;
  }

  .section-title {
    font-size: 28px;
  }

  .lead {
    font-size: 18px;
  }

  /* Four-column command tables don't fit a phone; .table-wrap scrolls them. */
  .cmd-table {
    min-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
