/*
 * Obataimu web revamp — typography (Style Sheet.pdf)
 *
 *   Use             Font             Desktop / Mobile   Letter spacing
 *   Title           Helvetica Black  165 / 50           -5%
 *   Menu 1st, Head  Helvetica Black  110 / 40           -5%
 *   Menu 2nd        Helvetica Black   36 / 20           -2%
 *   Special         Countdown         85 / 60           -2%
 *   Essay           Courier (Bold)    20 / 15            2%
 *   Description     Futura (Medium)   20 / 18            0%
 *   Button          Josefin Sans      18 / 12            2%
 *
 * Each family ships in a single weight, so every face is declared for the
 * whole 100–900 range. That stops browsers from smearing a fake bold over
 * text that the older stylesheets mark as font-weight: bold.
 *
 * Josefin Sans is loaded from Google Fonts (see functions.php).
 *
 * The Helvetica Black and Countdown files as supplied are rejected by browsers
 * ("Failed to decode downloaded font"), so the copies in css/fonts are repaired:
 *   - helvetica-black.ttf: the character map ended in a corrupt terminator
 *     segment and the descender had the wrong sign. Outlines, hinting and
 *     kerning are untouched.
 *   - countdown-regular.otf: outlines re-encoded into a clean OpenType file.
 *     Shapes, widths and character mapping are unchanged.
 * The originals stay in "dropbox files/Material/Fonts".
 */

@font-face {
  font-family: 'Helvetica Black';
  src: url('fonts/helvetica-black.ttf?v=2') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Countdown';
  src: url('fonts/countdown-regular.otf?v=2') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/courierprime-bold.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('fonts/futura-medium.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --oba-black: #000000;
  --oba-white: #ffffff;

  --oba-font-title: 'Helvetica Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --oba-font-special: 'Countdown', 'Helvetica Black', 'Helvetica Neue', Arial, sans-serif;
  --oba-font-essay: 'Courier Prime', 'Courier New', Courier, monospace;
  --oba-font-body: 'Futura', 'Century Gothic', 'century_gothicregular', sans-serif;
  --oba-font-button: 'Josefin Sans', 'Futura', 'Century Gothic', sans-serif;
}

/* Type styles from the style sheet, for new templates. */
.oba-type-title,
.oba-type-heading,
.oba-type-menu {
  font-family: var(--oba-font-title);
  font-weight: 900;
  line-height: 1;
}

.oba-type-title {
  font-size: 165px;
  letter-spacing: -0.05em;
}

.oba-type-heading {
  font-size: 110px;
  letter-spacing: -0.05em;
}

.oba-type-menu {
  font-size: 36px;
  letter-spacing: -0.02em;
}

.oba-type-special {
  font-family: var(--oba-font-special);
  font-size: 85px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.oba-type-essay {
  font-family: var(--oba-font-essay);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.oba-type-description {
  font-family: var(--oba-font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.oba-type-button {
  font-family: var(--oba-font-button);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .oba-type-title {
    font-size: 50px;
  }

  .oba-type-heading {
    font-size: 40px;
  }

  .oba-type-menu {
    font-size: 20px;
  }

  .oba-type-special {
    font-size: 60px;
  }

  .oba-type-essay {
    font-size: 15px;
  }

  .oba-type-description {
    font-size: 18px;
  }

  .oba-type-button {
    font-size: 12px;
  }
}
