/* miceg.hu interim site. One stylesheet shared by the Hungarian and English pages. */

/* --- Font: Bricolage Grotesque, self-hosted so no visitor data goes to a font CDN --- */
/* latin-ext carries the Hungarian ő and ű; the browser loads it only when a page uses them. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --- */
:root {
  --paper: #f5f6fa;
  --ink: #12142b;
  --blue: #1c2bc4;
  --amber: #ffb81c;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* --- Page frame: header, main, contact band, footer; main takes the spare height --- */
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* --- Header: wordmark and the link to the other language --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.5rem;
}

.wordmark {
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.lang {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

/* --- Main: the headline is the page's one loud element --- */
main {
  padding-block: clamp(2.5rem, 9vh, 6rem);
}

h1 {
  max-width: 12ch;
  margin: 0 0 clamp(2rem, 7vh, 4.5rem);
  color: var(--blue);
  font-size: clamp(2.75rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.copy {
  display: grid;
  gap: 1.5rem 4rem;
}

.copy p {
  margin: 0;
}

.lead {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
}

.how {
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Wide screens: offer and method sit side by side */
@media (min-width: 52rem) {
  .copy {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

/* --- Contact band --- */
.contact {
  padding-block: clamp(2.5rem, 7vh, 4.5rem);
  background: var(--blue);
  color: #fff;
}

.contact p {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.contact a {
  display: block;
  width: fit-content;
  margin-top: 0.25em;
  color: #fff;
  font-size: clamp(1.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

/* --- Footer --- */
.site-footer {
  padding-block: 1.25rem;
  font-size: 0.875rem;
}
