/* faxenoff.ru — landing stub */

@font-face {
  font-family: "Cascadia Code";
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/cascadia-code.woff2") format("woff2-variations"),
       url("fonts/cascadia-code.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #141619;
  --ink-2: #2b2e33;
  --ghost: #d9dbde;      /* "user experience" — decorative */
  --plus: #a4a9b0;      /* decorative separator */
  --link: #2a2f9c;
  --link-hover: #1a1d6e;
  --pad-x: clamp(20px, 14vw, 240px);
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background ---------- */
.waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.waves.is-on { opacity: 1; }

/* ---------- layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "content photo"
    "sign    photo";
  padding-left: var(--pad-x);
}

.content {
  grid-area: content;
  align-self: center;
  padding: clamp(32px, 8vh, 96px) 0 clamp(24px, 4vh, 48px);
}

/* UX mark + ghost caption */
.title {
  position: relative;
  display: inline-block;
  margin: 0 0 clamp(36px, 8vh, 96px);
  font-weight: 400;
  line-height: 0;
}
.title__mark {
  display: block;
  width: clamp(170px, 24vw, 420px);
  height: auto;
}
.title__sub {
  position: absolute;
  left: 92%;
  top: 46%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: clamp(11px, 1.7vw, 26px);
  line-height: 1;
  letter-spacing: .48em;
  font-weight: 300;
  color: var(--ghost);
  user-select: none;
}

.lists {
  font-size: clamp(15px, 1.75vw, 24px);
  line-height: 1.3;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .32em;
}
.nw { white-space: nowrap; }
.list a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(42, 47, 156, .35);
  transition: text-decoration-color .2s ease, color .2s ease;
}
.list a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
.list a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }

/* "+" between the two groups, centred on the dash column */
.plus {
  width: 1.1em;
  margin: 1.05em 0 1em;
  text-align: center;
  font-size: 1em;
  line-height: 1;
  font-weight: 300;
  transform: scale(1.6);
  transform-origin: 50% 50%;
  color: var(--plus);
  user-select: none;
}
.list li {
  position: relative;
  padding-left: 1.75em;
  text-wrap: pretty;
}
.list li::before {                /* long dash, drawn: the mono em dash is only one cell wide */
  content: "";
  position: absolute;
  left: 0;
  top: calc(.68em - 1px);
  width: 1.1em;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}

/* signature: just left of the photo, bottom */
.sign {
  grid-area: sign;
  justify-self: end;
  align-self: end;
  margin: 0 clamp(4px, 1vw, 16px) clamp(24px, 5vh, 52px) 16px;
  text-align: center;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.35;
}
.sign__name {
  margin: 0;
  text-transform: uppercase;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.sign__tg {
  display: inline-block;
  padding: 2px 0;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.sign__tg:hover { color: var(--link-hover); border-bottom-color: currentColor; }
.sign__tg:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }

/* ---------- photo ---------- */
.photo {
  grid-area: photo;
  align-self: end;
  justify-self: end;
  margin: 0 clamp(8px, 3vw, 48px) clamp(8px, 2.5vh, 28px) 0;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}
.photo img {
  display: block;
  height: min(56vh, 660px);
  height: min(56svh, 660px);
  width: auto;
  max-width: 34vw;
  object-fit: contain;
  object-position: bottom right;
}

/* phones: text on top; signature + photo share the bottom row */
@media (max-width: 760px) {
  .page {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "content content"
      "sign    photo";
    padding-right: 0;
  }
  .content { padding-right: var(--pad-x); align-self: center; }
  .sign { margin-bottom: 28px; font-size: 13px; white-space: nowrap; }
  .title__sub { font-size: 10px; letter-spacing: .3em; left: 94%; }
  .photo { margin-right: 4px; margin-bottom: 4px; }
  .photo img { height: auto; width: min(55vw, 300px); max-width: none; max-height: 48svh; }
}

@media (prefers-reduced-motion: reduce) {
  .waves { transition: none; }
  .sign__tg { transition: none; }
}
