/* =========================================================
   DESIGN TOKENS
   Change these values to quickly re-theme the job page.
   ========================================================= */

:root {
  /* Fonts */
  --font-heading: "linotype-sabon", sans-serif !important;
  --font-body: inherit;

  /* Colors */
  --color-brand: #c9000b;
  --color-heading: #222222;
  --color-text: #333333;
  --color-muted: #6b6b6b;
  --color-panel: #f3f3f3;
  --color-white: #ffffff;

  /* Layout */
  --content-width: 980px;
  --page-padding: clamp(24px, 6vw, 72px);

  /* Typography */
  --body-size: 16px;
  --body-line-height: 1.35;

  /* Responsive spacing */
  --section-gap: clamp(28px, 3.5vw, 42px);
}


/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.job-page {
  width: 100%;
  min-height: 100vh;
  padding:
    clamp(38px, 5vw, 70px)
    var(--page-padding)
    clamp(50px, 8vw, 100px);
}

.job-posting {
  position: relative;
  width: min(100%, var(--content-width));
}


/* =========================================================
   CLOSE CONTROL
   ========================================================= */

.job-posting__close {
  position: absolute;
  top: 0;
  right: 0;

  width: 44px;
  height: 44px;

  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.job-posting__close span::before,
.job-posting__close span::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 12px;

  width: 20px;
  height: 1px;

  background: var(--color-heading);
}

.job-posting__close span::before {
  transform: rotate(45deg);
}

.job-posting__close span::after {
  transform: rotate(-45deg);
}


/* =========================================================
   HEADER
   ========================================================= */

.job-header {
  padding-right: 60px;
}

.eyebrow {
  position: relative;

  display: inline-block;
  margin: 0 0 24px;

  color: var(--color-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;

  width: 34px;
  height: 3px;

  background: var(--color-brand);
}

.job-header h1 {
  margin: 0 0 5px;

  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
}

.job-meta {
  margin: 0 0 26px;

  color: var(--color-muted);
  font-size: 15px;
}

.job-intro {
  max-width: 850px;
}

.job-intro p {
  margin: 0 0 22px;
}


/* =========================================================
   GENERAL CONTENT
   ========================================================= */

.job-section {
  max-width: 860px;
  margin-top: var(--section-gap);
}

.job-section h2 {
  position: relative;

  margin: 0 0 26px;

  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.1;
}

.job-section h2::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -12px;

  width: 34px;
  height: 3px;

  background: var(--color-brand);
}

.job-section p {
  margin: 0 0 18px;
}


/* =========================================================
   LISTS
   ========================================================= */

.job-section ul {
  margin: 18px 0 0;
  padding: 0;

  list-style: none;
}

.job-section li {
  position: relative;

  margin-bottom: 18px;
  padding-left: 32px;
}

.job-section li::before {
  content: "";

  position: absolute;
  top: 0.55em;
  left: 5px;

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--color-brand);
}


/* =========================================================
   JOIN SECTION
   ========================================================= */

.job-section--join {
  margin-top: clamp(32px, 4vw, 48px);
}


/* =========================================================
   APPLY PANEL
   ========================================================= */

.apply-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  max-width: 860px;
  margin-top: clamp(32px, 4vw, 46px);
  padding: 22px 28px;

  background: var(--color-panel);
}

.apply-panel__content {
  min-width: 0;
}

.apply-panel h3 {
  position: relative;

  margin: 0 0 20px;

  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.15;
}

.apply-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 30px;
  height: 3px;

  background: var(--color-brand);
}

.apply-panel p {
  margin: 0;
  font-size: 12px;
}

.apply-panel p a {
  text-decoration: none;
}

.apply-panel p a:hover {
  text-decoration: underline;
}


/* =========================================================
   APPLY BUTTON
   ========================================================= */

.apply-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 54px;
  padding: 15px 24px;

  background: var(--color-brand);
  color: var(--color-white);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.apply-button:hover {
  background: #a90009;
}

.apply-button:active {
  transform: translateY(1px);
}

.apply-button:focus-visible,
.job-posting__close:focus-visible {
  outline: 3px solid rgba(201, 0, 11, 0.3);
  outline-offset: 3px;
}


/* =========================================================
   TABLET / NARROWER VIEW
   ========================================================= */

@media (max-width: 800px) {

  .job-page {
    padding-top: 30px;
  }

  .job-header {
    padding-right: 50px;
  }

  .job-intro,
  .job-section,
  .apply-panel {
    max-width: 100%;
  }

  .apply-panel {
    align-items: flex-start;
  }
}


/* =========================================================
   MOBILE
   Rather than simply shrinking the desktop layout,
   the CTA becomes a vertical block for better readability.
   ========================================================= */

@media (max-width: 600px) {

  :root {
    --body-size: 15px;
  }

  .job-page {
    padding:
      24px
      20px
      50px;
  }

  .job-header {
    padding-right: 38px;
  }

  .job-posting__close {
    top: -9px;
    right: -8px;
  }

  .eyebrow {
    margin-bottom: 25px;
    font-size: 11px;
  }

  .job-header h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .job-meta {
    margin-bottom: 24px;
  }

  .job-section {
    margin-top: 32px;
  }

  .job-section h2 {
    font-size: 27px;
  }

  .job-section li {
    margin-bottom: 16px;
    padding-left: 25px;
  }

  .job-section li::before {
    left: 2px;
  }

  .apply-panel {
    flex-direction: column;
    align-items: stretch;

    gap: 24px;
    padding: 24px;
  }

  .apply-button {
    width: 100%;
  }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

  .job-page {
    padding-inline: 16px;
  }

  .job-header h1 {
    font-size: 29px;
  }

  .job-section h2 {
    font-size: 25px;
  }
}