/* =====================================================
 * AwesomeToast v26
 * ===================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }

/* ---------- Palette (from the original theme) ---------- */
:root {
  --bg-main:      #092349;  /* content column, was white */
  --bg-nav:       #021d44;  /* nav column */
  --bg-deep:      #02153a;  /* spacer column, active nav item, void */
  --rule:         #263959;  /* dividers */
  --text:         #ffffff;
  --text-soft:    rgba(255, 255, 255, .82);
  --text-faint:   rgba(255, 255, 255, .55);
  --link:         #fe3e54;
  --link-hover:   #ff7584;  /* lightened from #ee011c so it holds up on blue */
  --font-head:    "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text);
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 3px; }

/* ---------- Layout ---------- */
#layout-row {
  display: flex;
  min-height: 100vh;
}

.layout-spacer-col {
  flex: 0 0 66px;
  background: var(--bg-deep);
}

.layout-nav-col {
  flex: 0 0 220px;
  background: var(--bg-nav);
  text-align: center;
}

.layout-main-col {
  flex: 1 1 auto;
  min-width: 0;
  padding: 3rem 4rem 4rem;
  background: var(--bg-main);
  border-right: 1px solid var(--rule);
}

.layout-toaster-void { display: none; }

.section-label { position: absolute; }

/* ---------- Nav column (sidebar) ---------- */
#navbar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
}

.logo-zone {
  position: relative;
  display: block;
  padding: 1.5rem;
}

.logo-horizontal { display: none; }

.site-title-label {
  right: 2rem;
  bottom: .5rem;
}

#nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { padding: 1rem .5rem; }
.nav-item.active { background: var(--bg-deep); }

.nav-link {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}
.nav-link:hover, .nav-link:focus { color: var(--text); text-decoration: underline; }
.nav-item.active .nav-link {
  text-decoration-line: underline;
  text-decoration-style: double;
}

.nav-copyright {
  margin-top: auto;
  padding: 1rem;
  color: #eee;
  font-size: .75rem;
  opacity: .55;
}

/* ---------- Intro content ---------- */
#intro { max-width: 992px; }

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

h2{
  margin: 0;
  padding: .25rem 0 1.5rem;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
}
h2 b { font-weight: 400; }

h3 {
  margin: 0;
  padding: .25rem 0 1.5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ---------- Footer (only used in top-bar mode) ---------- */
.layout-footer {
  display: none;
  padding: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--rule);
}

/* =====================================================
 * Breakpoints
 * ===================================================== */

/* Wider sidebar */
@media screen and (min-width: 1200px) {
  .layout-nav-col { flex-basis: 340px; }
  #navbar { width: 340px; }
  .nav-link { font-size: 2rem; }
}

/* Toaster void. */
@media screen and (min-width: 1440px) {
  .layout-main-col { flex: 0 1 1040px; }
  .layout-toaster-void {
    display: flex;
    flex: 1 1 240px;
    min-width: 240px;
    position: relative;
    background-color: var(--bg-deep);
    border-left: 1px solid rgba(38, 57, 89, .85);
    margin-left: -1px; /* sit on top of the main column's border */
  }
  .toaster-continuum {
    width: 100%;
    background-image: url("../images/isometric-toasters.svg");
    background-repeat: repeat-y;
    background-position: 75% 50%;
    background-size: 90%;
    opacity: .1;
  }
  .void-label {
    top: 10.5rem;
    left: 1rem;
    padding: 1rem 1rem .5rem;
    background: #02163b;
    line-height: 0;
  }
}

/* Heading sizes scale down with the viewport */
@media screen and (min-width: 993px) and (max-width: 1440px) {
  .intro-heading { font-size: clamp(4.5rem, 6.5vw, 7rem); }
  .intro-subheading { font-size: clamp(2.25rem, 3vw, 3.25rem); }
}

/* Top-bar mode: tablet and phone */
@media screen and (max-width: 992px) {
  #layout-row { flex-direction: column; }
  .layout-spacer-col { display: none; }

  .layout-nav-col { flex: 0 0 auto; }
  #navbar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: stretch;
    height: 80px;
    border-bottom: 1px solid var(--rule);
  }

  .logo-zone {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    text-align: left;
  }
  .logo-vertical, .site-title-label { display: none; }
  .logo-horizontal { display: block; line-height: 0; }
  .logo-horizontal img { max-height: 36px; width: auto; }

  #nav-menu { display: flex; }
  .nav-item {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-left: 1px solid var(--rule);
  }
  .nav-link { font-size: 1.1rem; }
  .nav-copyright { display: none; }

  .layout-main-col {
    max-width: none;
    padding: 3rem 2rem 4rem;
    border-right: none;
  }
  .intro-heading { font-size: clamp(3rem, 11vw, 6rem); }
  .intro-subheading { font-size: clamp(1.75rem, 5vw, 2.75rem); }

  .layout-footer { display: block; }
}

@media screen and (max-width: 576px) {
  .logo-zone { padding: 0 1rem; }
  .nav-item { padding: 0 1rem; }
  .nav-link { font-size: 1rem; }
  .layout-main-col { padding: 2rem 1.25rem 3rem; }
  .intro-heading { letter-spacing: -0.02em; }
  .intro-subheading { padding-bottom: 1.25rem; }
  #intro p { font-size: 1rem; }
}

@media print {
  .layout-spacer-col, .layout-toaster-void { display: none; }
  #navbar { position: static; }
}

/* =====================================================
 * Contact page
 * ===================================================== */
#contact { max-width: 992px; }
#contact .contact-intro,
#contact .form-notice,
#contact .contact-form { max-width: 760px; }

.contact-intro {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.form-field { margin-bottom: 1.5rem; }

.form-field label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 10rem; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(254, 62, 84, .25);
}

.form-field [aria-invalid="true"] { border-color: var(--link); }

.field-error {
  margin: .4rem 0 0;
  font-size: .9rem;
  color: var(--link-hover);
}


.btn-submit {
  display: inline-block;
  padding: .85rem 1.75rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--link);
  border: 0;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .4);
  transition: background .15s ease;
}
.btn-submit:hover { background: #e8253c; }
.btn-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.form-notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  background: var(--bg-deep);
}
.form-notice p { margin: 0; color: var(--text); }
.form-notice-error   { border-color: var(--link); }
.form-notice-success { border-color: #5fd38d; }
