/* ==========================================================================
   ALEKSA MILOJEVIĆ — personal site
   After sanaa.co.jp: white page, Helvetica, the name centred in the upper
   part of the screen, a small centred text block further down. Nothing else.
   ========================================================================== */

:root{
  --ink: #000000;
  --pad: clamp(20px, 6vw, 80px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ background: #FFFFFF; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: #000; color: #fff; }

.page{
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--pad);
}

/* the name: a little above the upper third, like SANAA's */
h1{
  margin: 0;
  padding-top: 26vh;
  padding-top: 26svh;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;               /* same weight as the text, like SANAA */
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* the text: small, centred, lower down */
.text{
  max-width: 900px;
  margin: 0 0 auto;               /* a fixed, proportional distance below the name */
  padding: clamp(52px, 18vh, 172px) 0 48px;
  font-size: 13px;
  line-height: 1.5;
}
.text p{
  margin: 0 auto 1em;             /* js/typeset.js gives all paragraphs one shared width */
}
.nb{ white-space: nowrap; }       /* names and phrases that must not be split */
.nb.nb-off{ white-space: normal; } /* set by js/typeset.js only if a name is wider than the screen */
@media (max-width: 340px){
  .text{ font-size: 12px; }        /* smallest phones: the longest name still fits on one line */
}
.text p:last-child{ margin-bottom: 0; }

a{
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover, a:focus-visible{ text-decoration: none; outline: none; }

@media (max-width: 600px){
  h1{ padding-top: 18vh; padding-top: 18svh; font-size: 20px; }
  .text{ padding-top: 46px; }
}
