:root {
  --cream: #F6F1E7;
  --cream-deep: #EDE5D4;
  --navy: #0E1E3D;
  --navy-soft: #2A3A5C;
  --orange: #C2571A;
  --orange-dark: #A24612;
  --line: #D9CFBB;
  /* Type system modelled on IFP's: a serif for big headlines and titles,
     an extra-heavy capitals face for labels, and a light sans for everything else */
  --display: "Lora", Georgia, serif;
  --label: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

a { color: var(--orange-dark); }
a:hover { color: var(--navy); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Label style: extra-heavy capitals (IFP's "Sohne Extrafett" role) */
.eyebrow, h2, h3, .facts dt, .hiring-banner strong, .consent legend {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--label);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-soft); color: var(--cream); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }

.eyebrow {
  font-size: 15px;
  color: var(--orange-dark);
  margin: 0 0 18px;
}

/* Headlines and titles: serif (IFP's "Lora" role) */
h1 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 24px;
}
.hero h1 { font-size: clamp(44px, 8vw, 80px); margin-bottom: 22px; }

/* Big light statement (IFP's "Sohne Leicht" 60px role) */
.tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
  max-width: 720px;
}

h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; color: var(--navy); margin: 0 0 16px; }
h3 { font-size: 17px; line-height: 1.2; color: var(--navy); margin: 36px 0 10px; }
.lead { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; color: var(--navy); max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Animated arrow behind the home page heading, taken from the
   bottom-left quarter of the Union Flag: the diagonal is the shaft,
   the two arms of the cross are the arrowhead */
.hero-arrow {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 85%;
  opacity: 0.24;
  filter: saturate(70%);
  pointer-events: none;
  /* strongest at the arrowhead (top right), fading out down the shaft */
  -webkit-mask-image: radial-gradient(ellipse 85% 120% at 100% 0%, #000 35%, rgba(0,0,0,0.5) 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 120% at 100% 0%, #000 35%, rgba(0,0,0,0.5) 65%, transparent 100%);
}
.hero-arrow .flag-blue { fill: #012169; }
.hero-arrow .flag-white { fill: none; stroke: #FFFFFF; }
.hero-arrow .flag-red { fill: none; stroke: #C8102E; }

/* On load: the diagonal draws up from the bottom-left corner,
   then the cross arms spread out from the top-right corner */
.hero-arrow .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,0,.3,1) forwards; }
.hero-arrow .draw-head { stroke-dashoffset: -1; animation-name: draw-from-corner; animation-delay: 1.2s; animation-duration: 1s; }


@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-from-corner { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-arrow .draw { animation: none; stroke-dashoffset: 0; }
}

/* Hiring banner */
.hiring-banner {
  background: var(--navy);
  color: var(--cream);
}
.hiring-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.hiring-banner p { margin: 0; font-size: 19px; }
.hiring-banner strong { font-size: 26px; display: block; margin-bottom: 2px; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--cream-deep); }
.muted { color: var(--navy-soft); }

/* Sign-up form */
.signup-form { margin-top: 24px; max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FBF8F2;
  color: var(--navy);
}
.field input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.consent {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 20px 0;
  background: #FBF8F2;
}
.consent legend { font-size: 14px; padding: 0 6px; }
.consent p { font-size: 14px; margin: 4px 0 12px; color: var(--navy-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 16px; }
.check input { margin-top: 5px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.small-print { font-size: 13px; color: var(--navy-soft); }

/* Roles list */
.role-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.role-list li { border-bottom: 1px solid var(--line); }
.role-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  text-decoration: none;
  color: var(--navy);
}
.role-list a:hover .role-name { color: var(--orange-dark); }
.role-name { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.role-meta { color: var(--navy-soft); font-size: 15px; }

/* Job descriptions */
.job { padding: 56px 0; border-top: 1px solid var(--line); }
.job h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(30px, 4.4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 28px;
}
.facts div { padding: 12px 14px; box-shadow: 0 0 0 0.5px var(--line); }
.facts dt { font-size: 12px; letter-spacing: 0.02em; color: var(--navy-soft); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.job ul { padding-left: 20px; }
.job li { margin-bottom: 8px; }
.job li strong { color: var(--navy); }
.note { font-style: italic; color: var(--navy-soft); }
.apply-box {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 4px solid var(--orange);
  background: var(--cream-deep);
  border-radius: 0 6px 6px 0;
}
.apply-box p { margin: 0 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--navy-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 44px; }
  section, .job { padding: 44px 0; }
  .brand { font-size: 19px; }
  .hero-arrow { width: 100%; opacity: 0.16; }
}
