/* Mateusz Tyszkiewicz - holding page.
   #F0F0F1 field, M. monogram centred in the viewport, contact bottom-left and
   socials bottom-right, Lato throughout. Colours lifted from the original Elementor kit. */

/* -------------------------------------------------- Fonts (self-hosted) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  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: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  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: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  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 */
/* Values lifted from the original Elementor kit (post-76.css). */
:root {
  --bg: #F0F0F1;        /* --e-global-color-accent / secondary */
  --ink: #000000;       /* --e-global-color-primary */
  --ink-soft: #666666;  /* --e-global-color-text */
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(22px, 5vw, 56px);
}

/* -------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Page is a column: the logo takes the whole free height and centres in it, the
   contact/social row sits on the bottom edge. */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* -------------------------------------------------- Stage */
.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.logo {
  width: clamp(64px, 6vw, 88px);
}

/* -------------------------------------------------- Bottom row */
.ends {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  justify-content: space-between;
  align-items: flex-end;
  padding: var(--pad);
}

.ends ul { list-style: none; padding: 0; }
.ends li + li { margin-top: 2px; }

.ends a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  transition: color .3s;
}
.ends a:hover, .ends a:focus-visible { color: var(--ink); }
.ends svg { width: 15px; height: 15px; flex: none; fill: currentColor; }

.ends .left  { text-align: left; }
.ends .right { text-align: right; }
.ends .right a { justify-content: flex-end; }

@media (max-width: 767px) {
  /* Too narrow for opposite corners: stack and centre both lists. */
  .ends { justify-content: center; text-align: center; }
  .ends .left, .ends .right { width: 100%; text-align: center; }
  .ends a, .ends .right a { justify-content: center; }
  .logo { width: 22%; }
}

/* -------------------------------------------------- 404 */
.nf { text-align: center; }
.nf h1 { font-size: clamp(54px, 13vw, 120px); line-height: 1; color: var(--ink); font-weight: 700; }
.nf p { margin: 10px 0 22px; }
.nf a.back {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  padding-bottom: 3px;
  transition: border-color .3s;
}
.nf a.back:hover { border-color: var(--ink); }
