/* merusgames.com. Two colours only: the brand purple and white. Purple is used flat and big
   (whole sections, the intro), never as a gradient or a timid accent. Luckiest Guy for headlines,
   Nunito for text. No cards, no shadows, no blur; motion only in the intro. */

@font-face { font-family: 'Luckiest Guy'; src: url(../font/luckiest-guy.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../font/nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --purple: #4E2DA6;
  --white: #FFFFFF;
  --line: rgb(78 45 166 / .14);
  --gutter: clamp(20px, 6vw, 96px);
  --section: clamp(96px, 18vh, 220px);
  --split-gap: clamp(32px, 5vw, 80px);
  --bar: 60px;
  --display: 'Luckiest Guy', 'Arial Black', sans-serif;
  --text: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--white); color: var(--purple); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); font: 600 clamp(18px, 1.4vw, 21px)/1.5 var(--text); }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.purple :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 10px 14px;
        background: var(--purple); color: var(--white); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
       min-height: calc(var(--bar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
       background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s, opacity .4s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .logo img { height: 22px; width: auto; }
.bar nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.bar nav a { font-weight: 800; font-size: 16px; text-decoration: none; }
.bar nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ------------------------------------------------------------ sections */
section { padding: var(--section) var(--gutter); scroll-margin-top: var(--bar); }
.wrap { max-width: 1240px; margin: 0 auto; }
/* headlines: one to three words, very big; descriptions: a few real sentences, calm and readable */
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(64px, 13vw, 200px); line-height: .9; }
/* sized so a 6.8 em line fits any screen: no headline word may be wider (the widest so far, "Independent.", was 6.46 em) */
h2 { font-size: clamp(40px, calc((100vw - 2 * var(--gutter)) / 6.8), 136px); line-height: .92; }
.lead { max-width: 38ch; margin: clamp(20px, 2.6vw, 36px) 0 0; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.5; }

/* the opening screen: a photo, then the headline and its text, all centred */
.hero { display: flex; align-items: center; min-height: calc(100svh - var(--bar)); padding-block: 16px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.hero h1 { font-size: clamp(56px, min(10vw, 17svh), 168px); }
.hero .lead { margin-inline: auto; }
.hero .photo { width: min(100%, 640px); aspect-ratio: 4 / 3; margin-bottom: clamp(24px, 3vw, 36px); }
/* on wide screens the photo also follows the screen height, so the opening fits one screen */
@media (min-width: 900px) { .hero .photo { width: min(100%, 500px, 50svh); aspect-ratio: 16 / 9; } }

.purple { background: var(--purple); color: var(--white); }

/* the pictures: clay still lifes on the brand purple; rounded, cropped to their box */
.photo { display: block; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: var(--purple); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* after the opening: the photo on one side, the text on the other, their centres level
   (.flip puts the photo on the right); on phones the photo sits above the text */
.split .wrap { display: grid; gap: var(--split-gap); align-items: center; }
.split .photo { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .split .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split .photo { aspect-ratio: 1; }
  .split.flip .photo { order: 2; }
  /* half the width now, and a 6.8 em line still has to fit */
  .split h2 { font-size: clamp(40px, calc((min(100vw - 2 * var(--gutter), 1240px) - var(--split-gap)) / 2 / 6.8), 104px); }
  .split .mail { font-size: clamp(18px, calc((min(100vw - 2 * var(--gutter), 1240px) - var(--split-gap)) / 2 / 13.6), 40px); }
}

/* the address is 13.15 em wide: sized to its column so it never breaks mid-word */
.mail { display: inline-block; margin-top: clamp(24px, 3vw, 40px); font-weight: 900;
        font-size: clamp(18px, calc((100vw - 2 * var(--gutter)) / 13.6), 40px);
        line-height: 1.1; overflow-wrap: anywhere;
        text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; }

footer { padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ legal pages: one calm, readable column */
.legal { padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(64px, 10vh, 120px); }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); line-height: .95; }
.legal .date { margin: 14px 0 32px; font-size: 15px; }
.legal h2 { margin: 40px 0 10px; font: 800 22px/1.3 var(--text); }
.legal p, .legal li { font-size: 18px; font-weight: 500; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal strong { font-weight: 800; }
.legal a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal ol.kvkk { list-style: none; padding-left: 0; }
.legal ol.kvkk span { display: inline-block; min-width: 1.6em; font-weight: 800; }
.legal table { width: 100%; margin: 4px 0 18px; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-weight: 800; }
@media (max-width: 560px) { .legal table { font-size: 15px; } }

/* ------------------------------------------------------------ intro */
/* the canvas is purple from the first paint; once it draws, the letters become holes onto the page */
#veil { display: none; position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; }
html.intro { background: var(--purple); }
html.intro body { height: 100svh; overflow: hidden; }
html.intro #veil { display: block; background: var(--purple); touch-action: none; }
html.intro .bar, html.intro .hero .wrap { opacity: 0; }   /* white behind the letters until we dive */

/* ------------------------------------------------------------ 404: outside, so purple */
body.lost { display: grid; place-items: center; min-height: 100svh; padding: var(--gutter); background: var(--purple); color: var(--white); text-align: center; }
.lost img { width: min(520px, 72vw); height: auto; margin: 0 auto; }
.lost h1 { max-width: none; margin-top: clamp(36px, 6vw, 64px); font-size: clamp(34px, 5.6vw, 72px); line-height: 1; }
.lost a { display: inline-block; margin-top: 24px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lost :focus-visible { outline-color: var(--white); }
