/* ==========================================================================
   Csider Fafúvós Műhely
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */

/* Ringside Wide Book (400) is the brand's body face. Every element on this
   page renders at 600, so shipping 400 would be a download nobody sees.
   The files are in assets/fonts/ - uncomment this block when body copy lands.

@font-face {
  font-family: "Ringside Wide";
  src: url("../fonts/ringside-wide-book.woff2") format("woff2"),
       url("../fonts/ringside-wide-book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

@font-face {
  font-family: "Ringside Wide";
  src: url("../fonts/ringside-wide-semibold.woff2") format("woff2"),
       url("../fonts/ringside-wide-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  --brand: #f25800;
  --ink: #fff;

  --font: "Ringside Wide", system-ui, -apple-system, "Segoe UI", sans-serif;

  --title: 2rem;      /* 32px */
  --address: 1rem;    /* 16px */
  --since: 0.875rem;  /* 14px */

  --gap: 20px;        /* rhythm between hero blocks */
  --rule-width: 60%;  /* width of the "1980 óta" rule */
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate; /* keeps the overlay's multiply blend off the page bg */
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 20px;
  overflow: hidden;
  text-align: center;

  background-color: #241a14;
  background-image: image-set(url("../img/hero-1024.webp") type("image/webp"),
                              url("../img/hero-1024.jpg")  type("image/jpeg"));
  background-position: 50% 50%;
  background-size: cover;
}

@media (min-width: 768px) {
  .hero {
    background-image: image-set(url("../img/hero-1600.webp") type("image/webp"),
                                url("../img/hero-1600.jpg")  type("image/jpeg"));
  }
}

@media (min-width: 1600px) {
  .hero {
    background-image: image-set(url("../img/hero-2000.webp") type("image/webp"),
                                url("../img/hero-2000.jpg")  type("image/jpeg"));
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, var(--brand) 100%);
  mix-blend-mode: multiply;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Logo */

.hero__logo-wrap {
  width: 19%;
  max-width: 512px;
  margin-bottom: calc(var(--gap) + 36px);
}

.hero__logo {
  width: 100%;
  height: auto;
}

/* Type */

.hero__title {
  margin: 0 0 var(--gap);
  font-size: var(--title);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.hero__address {
  margin: 0 0 var(--gap);
  font-size: var(--address);
  font-weight: 600;
  font-style: normal;
}

/* "1980 óta" rule */

.hero__since {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--rule-width);
  margin: 0 0 var(--gap);
  padding-block: 9px;
  font-size: var(--since);
  font-weight: 600;
}

.hero__since::before,
.hero__since::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: currentColor;
}

/* Contact icons */

.hero__contact {
  display: flex;
  justify-content: center;
}

.hero__contact a {
  display: grid;
  place-items: center;
  width: 44px;  /* 24px glyph in a comfortable tap target */
  height: 44px;
  color: var(--ink);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__contact svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
  opacity: 0.7;
  transform: translateY(-2px);
}

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --rule-width: 83%;
  }

  .hero__logo-wrap { width: 33%; }
  .hero__contact { gap: 6px; }
}

@media (max-width: 767px) {
  :root {
    --title: clamp(1.375rem, 1rem + 2vw, 2rem);
    --rule-width: 100%;
  }

  .hero {
    padding: 40px 5%;
  }

  .hero__logo-wrap {
    width: 36vw;
    margin-bottom: calc(var(--gap) + 12px);
  }
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero__contact a { transition: none; }
  .hero__contact a:hover,
  .hero__contact a:focus-visible { transform: none; }
}
