/* ============================================================
   LOUISE F.M. HUYGHE — coming soon
   Single screen, no scrolling.
   ============================================================ */

:root {
  --paper: rgb(179, 178, 174);   /* grey archive-board */
  --ink:   rgb(0, 0, 0);         /* black */
  --tracking: 0.18em;            /* horizontal letter spacing, body text */

  /* One shared width for the image AND the "Mark the date" line,
     so they always line up no matter which image you drop in. */
  --measure: clamp(180px, 19vw, 270px);

  /* Copperplate is a Mac system font. On machines that don't have it
     the stack falls back to the closest available letterform. */
  --title-font: 'Copperplate', 'Copperplate Gothic Light', 'Copperplate Gothic',
                'Optima', 'Palatino Linotype', serif;
  --body-font:  'Helvetica Neue', 'Helvetica', Arial, sans-serif;
}

/* ── reset / lock the page ───────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;              /* no scrolling, anywhere */
}

body {
  /* grey cardboard: flat colour + a tiling grain tile blended over it */
  background-color: var(--paper);
  background-image: url("./images/paper.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-blend-mode: overlay;

  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ── centred column ──────────────────────────────────────── */

.page {
  height: 100vh;
  height: 100dvh;                /* correct height on mobile browsers */
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 6vh 24px;
  gap: 0;
}

/* ── logo ────────────────────────────────────────────────── */

.logo {
  display: block;
  width: clamp(34px, 3.4vw, 48px);
  height: auto;

  position: fixed;               /* pinned to the bottom of the screen */
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* ── the little picture ──────────────────────────────────── */

/* Horizontal image. Width is locked to --measure, so swapping in your
   own picture never changes how wide it sits — only how tall.
   On hover it cross-fades to images/wink.jpg and the cursor turns
   into the word WINK. */
.teaser-wrap {
  position: relative;
  width: var(--measure);
  margin: 0 0 4px;               /* small gap down to the title */
  line-height: 0;
  border: 1px solid var(--ink);  /* thin black frame */

  /* the "WINK" cursor. Two bitmaps — the @2x one keeps it crisp on
     retina screens. Files live in images/. */
  cursor: url("./images/cursor-wink.png") 0 0, auto;
  cursor: -webkit-image-set(url("./images/cursor-wink.png") 1x,
                            url("./images/cursor-wink@2x.png") 2x) 0 0, auto;
  cursor: image-set(url("./images/cursor-wink.png") 1x,
                    url("./images/cursor-wink@2x.png") 2x) 0 0, auto;
}

.teaser {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.teaser-wrap:hover .teaser-hover {
  opacity: 1;
}

/* ── title: "Mark the date" — Copperplate, all caps, regular ─ */

/* The line is stretched to exactly --measure by the small script at the
   bottom of the HTML, so it always matches the image width. The
   font-size below is only the fallback if scripting is off. */
.title {
  width: var(--measure);
  margin: 0 0 8px;               /* gap down to the date */
  font-family: var(--title-font);
  font-weight: 400;              /* regular, never bold */
  font-size: clamp(15pt, 2.6vw, 25pt);
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.title .fit {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.06em;
  margin-right: -0.06em;         /* trims the trailing letter-space */
}

/* ── date / location / closing line ──────────────────────── */

.date,
.location {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: clamp(6.5pt, 0.72vw, 8pt);
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  text-indent: var(--tracking);  /* keeps the line optically centred */
}

.date {
  margin-bottom: 8px;            /* same as above, so it sits centred */
}

.location {
  margin-bottom: 0;
}

/* ── mailing list ────────────────────────────────────────── */

.mailinglist {
  margin: 12px 0 0;              /* gap up from the address */
}

/* Just a line to type on — no box. */
.mailinglist label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* matched to the width of the address lines by the script in the
     HTML; falls back to the image width if scripting is off */
  width: var(--address-width, var(--measure));
  height: 24px;

  border: none;
  border-bottom: 1px solid var(--ink);
  background-color: transparent;
  padding-right: 2px;
}

.mailinglist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 100%;

  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);

  padding: 0;
  font-family: var(--body-font);
  font-size: 7pt;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

.mailinglist ::placeholder {
  color: var(--ink);
  opacity: 1;
  font-family: var(--body-font);
  font-size: 7pt;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

.mailinglist .go {
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 11pt;
  line-height: 1;
  cursor: pointer;
  transform: rotate(180deg);
  transition: transform 0.3s;
}

.mailinglist .go:hover {
  transform: rotate(360deg);
}

/* ── phones ──────────────────────────────────────────────── */

@media only screen and (max-width: 600px) {

  .page {
    padding: 5vh 20px;
  }

  :root {
    --measure: clamp(160px, 58vw, 240px);
  }

  .logo {
    width: clamp(32px, 9.9vw, 43px);
  }

  .title {
    font-size: clamp(14pt, 4.6vw, 19pt);
  }

  .date,
  .location {
    font-size: 6.5pt;
  }
}

/* ── very short screens: tighten up so nothing is cut off ── */

@media only screen and (max-height: 620px) {

  :root {
    --measure: clamp(150px, 26vh, 210px);
  }

  .mailinglist {
    margin-top: 10px;
  }
}
