@font-face {
  font-family: "Baba Helvetica Condensed Oblique";
  src: url("assets/fonts/HelveticaNeueLTStd-BdCnO.otf") format("opentype");
  font-style: oblique;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Baba Helvetica Condensed";
  src: url("assets/fonts/HelveticaNeueLTStd-BdCn.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Baba Druk";
  src: url("assets/fonts/DrukText-BoldItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #fb2e00;
  --blue: #026e9e;
  --paper: #f5f6f3;
  --white: #ffffff;
  --max: 520px;
  --edge: 28px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--red);
  font-family: "Baba Helvetica Condensed Oblique", "Arial Narrow", Impact, sans-serif;
  font-style: oblique;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}

button, input, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.block-btn, .outline-btn, .split-form button { touch-action: manipulation; }

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 100svh;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-right: max(var(--edge), env(safe-area-inset-right));
  padding-bottom: max(42px, env(safe-area-inset-bottom));
  padding-left: max(var(--edge), env(safe-area-inset-left));
}

/* HERO */
.hero { margin-bottom: 10px; }

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 4px;
}

.opening {
  margin: 4px 0 0;
  color: var(--red);
  text-align: center;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
}

/* MEDIA GRID — flex row, socials column stretches to mascot height */
.media-grid {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 14px 0 20px;
}

.mascot {
  flex: 0 0 165px;
  width: 165px;
  height: auto;
  display: block;
  align-self: center;
}

.socials {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 12px 0;
  background: var(--red);
  color: var(--white);
  font-size: clamp(24px, 6.6vw, 38px);
  line-height: .9;
  letter-spacing: .05em;
}

/* SIGNUP */
.signup { margin: 18px 0 26px; }

.signup h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: clamp(26px, 6.8vw, 38px);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.split-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  height: 51px;
  margin: 0;
  background: var(--red);
}

.split-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 7px 10px 0;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0;
  -webkit-appearance: none;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}

.split-form input::placeholder { color: var(--white); opacity: 1; }

.split-form button {
  cursor: pointer;
  border: 4px solid var(--red);
  background: var(--paper);
  color: var(--red);
  padding: 7px 6px 0;
  font-size: clamp(26px, 6.6vw, 38px);
  line-height: 1;
  letter-spacing: .045em;
  text-align: center;
  border-radius: 0;
}

.or {
  color: var(--blue);
  text-align: center;
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.35;
  margin: 4px 0;
}

.form-message {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--blue);
  text-align: center;
  font-size: 18px;
  line-height: 1.1;
}

/* SECTION TITLES */
.section-title {
  margin: 0;
  color: var(--blue);
  font-family: "Baba Helvetica Condensed", "Arial Narrow", Impact, sans-serif;
  font-style: normal;
  font-size: clamp(64px, 15.5vw, 84px);
  line-height: .9;
  letter-spacing: .01em;
}

.careers { margin-top: 4px; }

.careers p,
.contact address {
  margin: 8px 0 0;
  color: var(--red);
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.25;
  letter-spacing: .048em;
  font-style: oblique;
}

.outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 28px;
  min-width: 172px;
  min-height: 49px;
  border: 4px solid var(--red);
  color: var(--red);
  background: var(--paper);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1;
  padding: 5px 18px 0;
  width: fit-content;
}

.contact { margin-top: 0; }
.contact a { text-decoration: none; }

.block-btn:hover,
.outline-btn:hover,
.split-form button:hover { filter: brightness(.96); }

.block-btn:focus-visible,
.outline-btn:focus-visible,
.split-form button:focus-visible,
.split-form input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

/* Responsive */
@media (max-width: 430px) {
  .page-shell { padding-left: 22px; padding-right: 22px; }
  .media-grid { gap: 12px; }
  .mascot { flex-basis: 140px; width: 140px; }
  .socials { gap: 8px; }
  .split-form { grid-template-columns: minmax(0, 1fr) 132px; height: 48px; }
}

@media (max-width: 360px) {
  .page-shell { padding-left: 18px; padding-right: 18px; }
  .mascot { flex-basis: 118px; width: 118px; }
  .split-form { grid-template-columns: minmax(0, 1fr) 116px; }
  .split-form input { font-size: 26px; }
  .split-form button { font-size: 24px; }
}
