/* ==========================================
   SCRIBARIUM BRAND SYSTEM
   ========================================== */

:root {
  --brand-red: #E54141;
  --brand-black: #191411;
  --brand-white: #FFF5F5;

  --paper: var(--brand-white);
  --ink: var(--brand-black);

  --muted: #796C68;
  --line: #EADBD8;

  --shell-bg: var(--brand-white);
  --shell-text: var(--brand-black);
  --shell-muted: #796C68;
  --shell-border: #EADBD8;
  --shell-accent: var(--brand-red);
  --shell-accent-text: #FFFFFF;
}

body {
  color: var(--brand-black);
  background: var(--brand-white);
}

.shell-header-inner,
.shell-footer > .container {
  width: min(1440px, calc(100% - 56px));
}

/* ==========================================
   NAVBAR
   ========================================== */

.shell-header {
  background: var(--brand-white);
  border-bottom: 1px solid var(--shell-border);
}

.shell-header-inner {
  min-height: 88px;

  display: grid;
  grid-template-columns:
    130px
    minmax(180px, 1fr)
    max-content;

  align-items: center;
  column-gap: 30px;
}

/* Full SVG logo */

.brand-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-logo {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
}

/* Search */

.shell-search {
  width: 100%;
  max-width: 500px;
  min-width: 0;

  margin: 0 auto;

  border: 1px solid var(--shell-border);
  border-radius: 7px;

  background: #FFFDFC;
}

.shell-search:focus-within {
  border-color: var(--brand-red);
}

.shell-search input {
  color: var(--brand-black);
}

.shell-search button {
  color: var(--brand-red);
}

.shell-search button:hover {
  color: var(--brand-black);
}

/* Account navigation */

.shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
}

.login-link:hover,
.account-icon:hover {
  color: var(--brand-red);
}

.signup-link {
  min-height: 37px;
  padding: 0 16px;

  border-radius: 6px;
  background: var(--brand-red);
  color: #FFFFFF;
}

.signup-link:hover {
  background: #D53939;
  opacity: 1;
}

/* ==========================================
   FOOTER
   ========================================== */

.shell-footer {
  margin-top: 75px;
  padding-top: 42px;

  background: var(--brand-white);
  border-top: 1px solid var(--shell-border);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(130px, 200px));
  gap: 32px;

  padding-bottom: 48px;
}

.footer-brand {
  max-width: none;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
}

.footer-column h2 {
  color: var(--brand-black);
}

.footer-column a {
  color: var(--shell-muted);
}

.footer-column a:hover {
  color: var(--brand-red);
}

.footer-bottom-centered {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 25px 0;

  font-size: 15px;
  color: var(--shell-muted);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1000px) {
  .shell-header-inner {
    grid-template-columns:
      130px
      minmax(150px, 1fr)
      max-content;

    column-gap: 18px;
  }

  .shell-actions {
    gap: 12px;
  }
}

@media (max-width: 800px) {
  .shell-header-inner {
    min-height: auto;

    grid-template-columns:
      minmax(0, 1fr)
      max-content;

    grid-template-rows: 60px 44px;

    gap: 8px 12px;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
  }

  .shell-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .shell-search {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;
    max-width: none;
  }

  .signup-link {
    display: none;
  }

}

@media (max-width: 650px) {
  .shell-header-inner,
  .shell-footer > .container {
    width: calc(100% - 36px);
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 450px) {
  .shell-actions {
    gap: 7px;
  }

  .footer-bottom-centered {
    justify-content: center;
    text-align: center;
  }
}