:root {
  --red: #d52b1e;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #fafafa;
  --card: #fff;
  --display: "Antonio", "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.hero {
  background: #ececec;
  border-bottom: 1px solid var(--line);
}

.hero img {
  display: block;
  width: 100%;
  /* mobile: taller crop centred on the logo */
  height: clamp(150px, 42vw, 240px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .hero img {
    height: auto;
    aspect-ratio: 1920 / 400;
    max-height: 400px;
  }
}

/* ---------- Content ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.intro { text-align: center; margin-bottom: 32px; }

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Download buttons ---------- */
.downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* red accent line that grows on hover */
.doc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}

.doc__num {
  flex: none;
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  color: var(--red);
  min-width: 28px;
}

.doc__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.doc__meta {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.doc__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc:hover,
.doc:focus-visible {
  border-color: #d6d6d6;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}

.doc:hover::before,
.doc:focus-visible::before { transform: scaleY(1); }

.doc:hover .doc__icon,
.doc:focus-visible .doc__icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.doc:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.doc:active { transform: scale(.99); }

@media (hover: hover) {
  .doc:hover { transform: translateY(-2px); }
}

/* desktop: two-column grid */
@media (min-width: 720px) {
  .content { padding: 64px 32px 80px; max-width: 920px; }
  .intro { margin-bottom: 44px; }
  .downloads { grid-template-columns: 1fr 1fr; gap: 16px; }
  .doc { min-height: 96px; padding: 22px 24px; }
  .doc__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Language switch ---------- */
.hero { position: relative; }

.lang {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__opt {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.lang__opt svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  opacity: .55;
  transition: opacity .2s ease;
}

.lang__opt:hover { color: var(--ink); }
.lang__opt:hover svg { opacity: 1; }

.lang__opt.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.lang__opt.is-active svg { opacity: 1; }

.lang__opt:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* mobile: flags only, keeps clear of the logo */
@media (max-width: 599px) {
  .lang { top: 10px; right: 10px; }
  .lang__opt { padding: 5px; gap: 0; }
  .lang__opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (min-width: 900px) {
  .lang { top: 20px; right: 24px; }
}
