/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #e4d6bc;
  --text: #17130d;
  --muted: #4f493f;
  --line: rgba(23, 19, 13, 0.2);
  --accent: #7a561e;
  --footer: rgba(23, 19, 13, 0.72);
  --link-underline: rgba(122, 86, 30, 0.7);
  --control-bg: rgba(228, 214, 188, 0.76);
  --control-hover: rgba(23, 19, 13, 0.08);
  --veil-a: rgba(228, 214, 188, 0.98);
  --veil-b: rgba(228, 214, 188, 0.9);
  --veil-c: rgba(228, 214, 188, 0.42);
  --veil-d: rgba(228, 214, 188, 0.04);
  --mobile-veil-a: rgba(228, 214, 188, 0.98);
  --mobile-veil-b: rgba(228, 214, 188, 0.9);
  --mobile-veil-c: rgba(228, 214, 188, 0.48);
  --mobile-veil-d: rgba(228, 214, 188, 0.82);
  --mascot-wide: url("/assets/mascot-wide-sand-046a7164.jpg");
  --mascot-square: url("/assets/mascot-square-sand-37316af7.jpg");
  --type-eyebrow-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-eyebrow-size: clamp(0.8rem, 0.9vw, 0.95rem);
  --type-eyebrow-weight: 700;
  --type-eyebrow-style: normal;
  --type-eyebrow-decoration: none;
  --type-eyebrow-color: var(--accent);
  --type-tagline-family: Merriweather, Georgia, "Times New Roman", serif;
  --type-tagline-size: clamp(1.575rem, 3.45vw, 3.6rem);
  --type-tagline-weight: 500;
  --type-tagline-style: normal;
  --type-tagline-decoration: none;
  --type-tagline-color: var(--text);
  --type-lede-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-lede-size: clamp(1.35rem, 2.45vw, 2.25rem);
  --type-lede-weight: 400;
  --type-lede-style: normal;
  --type-lede-decoration: none;
  --type-lede-color: var(--muted);
  --type-emphasis-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-emphasis-size: inherit;
  --type-emphasis-weight: 700;
  --type-emphasis-style: normal;
  --type-emphasis-decoration: underline;
  --type-emphasis-color: var(--muted);
  --type-footer-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-footer-size: 0.88rem;
  --type-footer-weight: 400;
  --type-footer-style: normal;
  --type-footer-decoration: none;
  --type-footer-color: var(--footer);
}

:root[data-theme="blue"] {
  --bg: #d7e6ee;
  --text: #081927;
  --muted: #28485c;
  --line: rgba(8, 25, 39, 0.22);
  --accent: #15537a;
  --footer: rgba(8, 25, 39, 0.74);
  --link-underline: rgba(21, 83, 122, 0.72);
  --control-bg: rgba(215, 230, 238, 0.78);
  --control-hover: rgba(8, 25, 39, 0.08);
  --veil-a: rgba(215, 230, 238, 0.98);
  --veil-b: rgba(215, 230, 238, 0.91);
  --veil-c: rgba(215, 230, 238, 0.42);
  --veil-d: rgba(215, 230, 238, 0.04);
  --mobile-veil-a: rgba(215, 230, 238, 0.98);
  --mobile-veil-b: rgba(215, 230, 238, 0.9);
  --mobile-veil-c: rgba(215, 230, 238, 0.5);
  --mobile-veil-d: rgba(215, 230, 238, 0.84);
  --mascot-wide: url("/assets/mascot-wide-blue-39eb880c.jpg");
  --mascot-square: url("/assets/mascot-square-blue-04dd98be.jpg");
}

:root[data-theme="green"] {
  --bg: #d9e4d2;
  --text: #101d13;
  --muted: #314c38;
  --line: rgba(16, 29, 19, 0.22);
  --accent: #32633f;
  --footer: rgba(16, 29, 19, 0.74);
  --link-underline: rgba(50, 99, 63, 0.72);
  --control-bg: rgba(217, 228, 210, 0.78);
  --control-hover: rgba(16, 29, 19, 0.08);
  --veil-a: rgba(217, 228, 210, 0.98);
  --veil-b: rgba(217, 228, 210, 0.91);
  --veil-c: rgba(217, 228, 210, 0.42);
  --veil-d: rgba(217, 228, 210, 0.04);
  --mobile-veil-a: rgba(217, 228, 210, 0.98);
  --mobile-veil-b: rgba(217, 228, 210, 0.9);
  --mobile-veil-c: rgba(217, 228, 210, 0.5);
  --mobile-veil-d: rgba(217, 228, 210, 0.84);
  --mascot-wide: url("/assets/mascot-wide-green-a8c987de.jpg");
  --mascot-square: url("/assets/mascot-square-green-0513bc48.jpg");
}

:root[data-theme="monochrome"] {
  --bg: #dedbd4;
  --text: #151515;
  --muted: #44413c;
  --line: rgba(21, 21, 21, 0.24);
  --accent: #38342d;
  --footer: rgba(21, 21, 21, 0.74);
  --link-underline: rgba(56, 52, 45, 0.72);
  --control-bg: rgba(222, 219, 212, 0.8);
  --control-hover: rgba(21, 21, 21, 0.08);
  --veil-a: rgba(222, 219, 212, 0.98);
  --veil-b: rgba(222, 219, 212, 0.91);
  --veil-c: rgba(222, 219, 212, 0.42);
  --veil-d: rgba(222, 219, 212, 0.04);
  --mobile-veil-a: rgba(222, 219, 212, 0.98);
  --mobile-veil-b: rgba(222, 219, 212, 0.9);
  --mobile-veil-c: rgba(222, 219, 212, 0.5);
  --mobile-veil-d: rgba(222, 219, 212, 0.84);
  --mascot-wide: url("/assets/mascot-wide-monochrome-7d411c2a.jpg");
  --mascot-square: url("/assets/mascot-square-monochrome-1ea8924c.jpg");
}

:root[data-theme="purple"] {
  --bg: #e1d8ea;
  --text: #1c1325;
  --muted: #4b3f5a;
  --line: rgba(28, 19, 37, 0.22);
  --accent: #61448a;
  --footer: rgba(28, 19, 37, 0.74);
  --link-underline: rgba(97, 68, 138, 0.72);
  --control-bg: rgba(225, 216, 234, 0.78);
  --control-hover: rgba(28, 19, 37, 0.08);
  --veil-a: rgba(225, 216, 234, 0.98);
  --veil-b: rgba(225, 216, 234, 0.91);
  --veil-c: rgba(225, 216, 234, 0.42);
  --veil-d: rgba(225, 216, 234, 0.04);
  --mobile-veil-a: rgba(225, 216, 234, 0.98);
  --mobile-veil-b: rgba(225, 216, 234, 0.9);
  --mobile-veil-c: rgba(225, 216, 234, 0.5);
  --mobile-veil-d: rgba(225, 216, 234, 0.84);
  --mascot-wide: url("/assets/mascot-wide-purple-00152cf6.jpg");
  --mascot-square: url("/assets/mascot-square-purple-ed4b8b5d.jpg");
}

:root[data-theme="rose"] {
  --bg: #ead7cf;
  --text: #21120f;
  --muted: #5c3e37;
  --line: rgba(33, 18, 15, 0.22);
  --accent: #8d4a3d;
  --footer: rgba(33, 18, 15, 0.74);
  --link-underline: rgba(141, 74, 61, 0.72);
  --control-bg: rgba(234, 215, 207, 0.78);
  --control-hover: rgba(33, 18, 15, 0.08);
  --veil-a: rgba(234, 215, 207, 0.98);
  --veil-b: rgba(234, 215, 207, 0.91);
  --veil-c: rgba(234, 215, 207, 0.42);
  --veil-d: rgba(234, 215, 207, 0.04);
  --mobile-veil-a: rgba(234, 215, 207, 0.98);
  --mobile-veil-b: rgba(234, 215, 207, 0.9);
  --mobile-veil-c: rgba(234, 215, 207, 0.5);
  --mobile-veil-d: rgba(234, 215, 207, 0.84);
  --mascot-wide: url("/assets/mascot-wide-rose-57ebcece.jpg");
  --mascot-square: url("/assets/mascot-square-rose-bb5291ff.jpg");
}

.site-shell.is-locked {
  --bg: #d7e6ee;
  --text: #081927;
  --muted: #28485c;
  --line: rgba(8, 25, 39, 0.22);
  --accent: #15537a;
  --footer: rgba(8, 25, 39, 0.74);
  --link-underline: rgba(21, 83, 122, 0.72);
  --control-bg: rgba(215, 230, 238, 0.78);
  --control-hover: rgba(8, 25, 39, 0.08);
  --veil-a: rgba(215, 230, 238, 0.98);
  --veil-b: rgba(215, 230, 238, 0.91);
  --veil-c: rgba(215, 230, 238, 0.42);
  --veil-d: rgba(215, 230, 238, 0.04);
  --mobile-veil-a: rgba(215, 230, 238, 0.98);
  --mobile-veil-b: rgba(215, 230, 238, 0.9);
  --mobile-veil-c: rgba(215, 230, 238, 0.5);
  --mobile-veil-d: rgba(215, 230, 238, 0.84);
  --mascot-wide: url("/assets/mascot-wide-blue-39eb880c.jpg");
  --mascot-square: url("/assets/mascot-square-blue-04dd98be.jpg");
  --type-eyebrow-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-eyebrow-size: 1.1rem;
  --type-eyebrow-weight: 700;
  --type-eyebrow-style: normal;
  --type-eyebrow-decoration: none;
  --type-eyebrow-color: #2c5e7d;
  --type-tagline-family: Merriweather, Georgia, "Times New Roman", serif;
  --type-tagline-size: 0.95rem;
  --type-tagline-weight: 300;
  --type-tagline-style: normal;
  --type-tagline-decoration: none;
  --type-tagline-color: #403a30;
  --type-lede-family: Merriweather, Georgia, "Times New Roman", serif;
  --type-lede-size: 2.2rem;
  --type-lede-weight: 700;
  --type-lede-style: normal;
  --type-lede-decoration: none;
  --type-lede-color: #272020;
  --type-emphasis-family: Merriweather, Georgia, "Times New Roman", serif;
  --type-emphasis-size: 2.2rem;
  --type-emphasis-weight: 700;
  --type-emphasis-style: normal;
  --type-emphasis-decoration: underline;
  --type-emphasis-color: #000000;
  --type-footer-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-footer-size: 0.88rem;
  --type-footer-weight: 400;
  --type-footer-style: normal;
  --type-footer-decoration: none;
  --type-footer-color: #000000;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.28em;
}

.site-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
  background-color: var(--bg);
  background-image:
    linear-gradient(
      90deg,
      var(--veil-a) 0%,
      var(--veil-b) 34%,
      var(--veil-c) 58%,
      var(--veil-d) 100%
    ),
    var(--mascot-wide);
  background-position: 32% center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero {
  display: grid;
  align-items: center;
  width: min(100%, 76rem);
  margin: auto;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--type-eyebrow-color);
  font-family: var(--type-eyebrow-family);
  font-size: var(--type-eyebrow-size);
  font-style: var(--type-eyebrow-style);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: 0;
  text-decoration: var(--type-eyebrow-decoration);
  text-transform: uppercase;
}

h1 {
  max-width: 26ch;
  margin: 0;
  color: var(--type-tagline-color);
  font-family: var(--type-tagline-family);
  font-size: var(--type-tagline-size);
  font-style: var(--type-tagline-style);
  font-weight: var(--type-tagline-weight);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: var(--type-tagline-decoration);
}

.mark-symbol {
  display: inline-block;
  font-size: 0.5em;
  line-height: 1;
  vertical-align: super;
}

.lede {
  max-width: 42rem;
  margin: clamp(1.3rem, 2.6vw, 2.4rem) 0 0;
  color: var(--type-lede-color);
  font-family: var(--type-lede-family);
  font-size: var(--type-lede-size);
  font-style: var(--type-lede-style);
  font-weight: var(--type-lede-weight);
  line-height: 1.22;
  text-decoration: var(--type-lede-decoration);
}

.lede strong {
  color: var(--type-emphasis-color);
  font-family: var(--type-emphasis-family);
  font-size: var(--type-emphasis-size);
  font-style: var(--type-emphasis-style);
  font-weight: var(--type-emphasis-weight);
  text-decoration: var(--type-emphasis-decoration);
}

.lede strong u {
  text-decoration: inherit;
}

.trade-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}

.trade-line span {
  min-height: 2.25rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  width: min(100%, 76rem);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--type-footer-color);
  font-family: var(--type-footer-family);
  font-size: var(--type-footer-size);
  font-style: var(--type-footer-style);
  font-weight: var(--type-footer-weight);
  text-decoration: var(--type-footer-decoration);
}

.site-footer p {
  margin: 0;
}

.theme-toggle {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 2rem);
  min-width: 5.75rem;
  min-height: 2.35rem;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.typography-toggle {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: calc(clamp(1rem, 3vw, 2rem) + 2.75rem);
  min-width: 5.75rem;
  min-height: 2.35rem;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.theme-toggle:hover {
  background:
    linear-gradient(var(--control-hover), var(--control-hover)),
    var(--control-bg);
}

.typography-toggle:hover {
  background:
    linear-gradient(var(--control-hover), var(--control-hover)),
    var(--control-bg);
}

.typography-panel {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: calc(clamp(1rem, 3vw, 2rem) + 6.35rem);
  z-index: 10;
  display: grid;
  gap: 0.85rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 88%, white);
  color: var(--text);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.typography-panel[hidden] {
  display: none;
}

.typography-panel__header,
.typography-panel__actions,
.typography-panel__checks {
  display: flex;
  gap: 0.65rem;
}

.typography-panel__header {
  align-items: center;
  justify-content: space-between;
}

.typography-panel__header h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.typography-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--footer);
  font-size: 0.78rem;
  font-weight: 700;
}

.typography-panel select,
.typography-panel input,
.typography-panel textarea,
.typography-panel button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  font: inherit;
}

.typography-panel select,
.typography-panel input:not([type="checkbox"]),
.typography-panel textarea {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
}

.typography-panel input[type="range"] {
  padding: 0;
}

.typography-panel input[type="color"] {
  padding: 0.2rem;
}

.typography-panel input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.typography-panel__checks label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.typography-panel button {
  min-height: 2.1rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.typography-panel textarea {
  min-height: 8rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.typography-panel output {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-shell {
    min-height: 100svh;
    background-image:
      linear-gradient(
        180deg,
        var(--mobile-veil-a) 0%,
        var(--mobile-veil-b) 44%,
        var(--mobile-veil-c) 72%,
        var(--mobile-veil-d) 100%
      ),
      var(--mascot-square);
    background-position: center bottom;
    background-size: cover;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(1rem, 8vw, 4rem);
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 640px) {
  .site-shell.is-locked {
    --type-eyebrow-size: clamp(0.78rem, 3.7vw, 0.98rem);
    --type-tagline-size: clamp(0.78rem, 3.2vw, 0.9rem);
    --type-lede-size: clamp(1.36rem, 7vw, 1.72rem);
    --type-emphasis-size: inherit;
    --type-footer-size: 0.8rem;
    min-height: 100svh;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1.1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    background-image:
      linear-gradient(
        180deg,
        rgba(215, 230, 238, 0.99) 0%,
        rgba(215, 230, 238, 0.94) 46%,
        rgba(215, 230, 238, 0.74) 68%,
        rgba(215, 230, 238, 0.9) 100%
      ),
      var(--mascot-square);
    background-position: 58% bottom;
    background-size: max(100%, 34rem) auto;
  }

  .site-shell.is-locked .hero {
    align-items: start;
    margin: 0;
    padding-top: clamp(3.75rem, 13svh, 7rem);
  }

  .site-shell.is-locked .hero-copy {
    max-width: 100%;
  }

  .site-shell.is-locked .eyebrow {
    margin-bottom: 0.8rem;
  }

  .site-shell.is-locked h1 {
    max-width: 100%;
    line-height: 1.12;
  }

  .site-shell.is-locked .lede {
    max-width: 21rem;
    margin-top: clamp(1rem, 4.5vw, 1.45rem);
    line-height: 1.24;
  }

  .site-shell.is-locked .site-footer {
    align-self: end;
    display: grid;
    gap: 0.55rem;
    justify-content: stretch;
    margin-top: 2rem;
    padding-top: 0.85rem;
  }

  .site-shell.is-locked .site-footer a {
    width: fit-content;
    min-height: 2rem;
    line-height: 2rem;
  }
}

@media (max-width: 380px) {
  .site-shell.is-locked {
    --type-lede-size: clamp(1.24rem, 6.5vw, 1.48rem);
    background-position: 62% bottom;
    background-size: max(100%, 31rem) auto;
  }

  .site-shell.is-locked .hero {
    padding-top: clamp(3rem, 10svh, 5rem);
  }

  .site-shell.is-locked .lede {
    max-width: 19rem;
  }
}
