/*
  origopunto.com
  Proportions follow the 1440 x 900 landing page design: the logo mark sits
  top left, two dashed guide lines cross at its top-left circle, and the
  name is centred in the lower part of the page.
*/

:root {
  --bg: #f2f0e8;
  --ink: #000;
  --muted: #898989;

  /* Logo mark: height and position. The width follows from logo.svg (222 x 260). */
  --mark-h: min(29vh, 40vw);
  --mark-x: 11.6vw;
  --mark-y: 20vh;
  --title-y: 77vh;

  /* Where the guide lines cross, as a share of the mark's width and height. */
  --mark-w: calc(var(--mark-h) * 0.8542);
  --guide-x: calc(var(--mark-x) + var(--mark-w) * 0.278);
  --guide-y: calc(var(--mark-y) + var(--mark-h) * 0.1878);
  --guide: 2px;

  --title-size: min(var(--mark-h) * 0.39, 9vw);
}

/* On phones, size to the visible screen rather than the screen without browser bars. */
@supports (height: 100svh) {
  :root {
    --mark-h: min(29svh, 40vw);
    --mark-y: 20svh;
    --title-y: 77svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.guide {
  position: absolute;
  pointer-events: none;
}

.guide-h {
  left: 0;
  right: 0;
  top: calc(var(--guide-y) - var(--guide) / 2);
  height: var(--guide);
  background: repeating-linear-gradient(to right, var(--ink) 0 4px, transparent 4px 9px);
}

.guide-v {
  top: 0;
  bottom: 0;
  left: calc(var(--guide-x) - var(--guide) / 2);
  width: var(--guide);
  background: repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 9px);
}

.mark {
  position: absolute;
  left: var(--mark-x);
  top: var(--mark-y);
  height: var(--mark-h);
  width: auto;
}

.title {
  position: absolute;
  left: 50%;
  top: var(--title-y);
  transform: translate(-50%, -50%);
  width: max-content;
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: var(--title-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.title a {
  color: inherit;
  text-decoration: none;
}

/* The tagline is letter-spaced to about the width of the name. */
.title p {
  margin: 0.37em 0 0;
  /* Balances the spacing after the last letter, so the line stays centred. */
  padding-left: 0.37em;
  font-size: calc(var(--title-size) * 0.28);
  letter-spacing: 0.37em;
  color: var(--muted);
}

/* Narrow screens: start the name just right of the vertical guide so the line never runs through it. */
@media (max-width: 40rem) {
  :root {
    --title-size: calc((100vw - var(--guide-x) - 2.75rem) / 5.05);
  }

  .title {
    left: calc(var(--guide-x) + 1.25rem);
    transform: translateY(-50%);
  }
}
