/* Sign-in page and public blog. No JavaScript is needed for either to look right. */
.lo-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* ---------------------------------------------------------------------------------------------
 * The front door.
 *
 * The page says who it belongs to and nothing else. It never names what is inside: anyone can
 * reach it, so the restraint is the point, not an accident of there being little to show.
 *
 * Wide, it is two halves either side of the centre: the signed lockup, and the one thing to do.
 * Narrow, it is one column. Behind both sits the mark's own geometry at the scale of a building.
 * ------------------------------------------------------------------------------------------- */
.lo-login-page { min-height: 100vh; min-height: 100dvh; }
.lo-door {
  position: relative;
  isolation: isolate;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(40px, 7vh, 72px);
  padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 64px);
  overflow: hidden;
}

/* The mark again, whole, as a watermark behind the name. It has to be readable as the shape or
   it is just blocks, so it is never cropped; and it has to stay under everything, so it is far
   quieter than a hairline. No red here: one small red corner on the lockup is the whole budget
   for the page, and a red shape this size would spend it on decoration. */
.lo-door-frame {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(54vh, 44vw);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--t1);
  opacity: .026;
  pointer-events: none;
}
.lo-door-frame-corner { fill: currentColor; }

/* The signed lockup: the icon at the left, Life OS, and the signature under the wordmark and
   aligned to its left edge, which is the arrangement the brand guide fixes. */
.lo-sign {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: clamp(14px, 2.2vw, 22px);
  color: var(--t1);
  animation: lo-logo-in 1.2s var(--ease) both;
}
.lo-sign .lo-mark { grid-row: 1 / span 2; width: clamp(44px, 6.4vw, 64px); height: auto; }
.lo-sign-word { font-size: clamp(34px, 5.4vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1; align-self: end; }
.lo-sign-by { margin-top: .34em; font-size: clamp(11px, 1.3vw, 14px); font-weight: 400; letter-spacing: .01em; color: var(--t2); align-self: start; }

/* The one thing to do, on its own surface so it reads as the object on the page. */
/* A fixed width, not a content width: the card must not change size when the code field slides
   in or an error appears under it. */
.lo-door-form { width: min(360px, 100%); }
.lo-door-card {
  width: 100%;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 32px 80px -36px rgba(0, 0, 0, .7);
  animation: lo-rise .7s var(--ease) .1s both;
}
.lo-door-h { margin: 0; font-size: var(--text-20); font-weight: 600; letter-spacing: -.02em; }
.lo-door-sub { margin: 4px 0 var(--s6); font-size: var(--text-13); color: var(--t3); }

@media (min-width: 900px) {
  .lo-door {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: clamp(48px, 7vw, 112px);
    max-width: 1080px;
    margin-inline: auto;
  }
  .lo-door-id { justify-self: end; }
  .lo-door-form { justify-self: start; }
  /* Behind the name, not behind the form, so nothing sits under the fields. Set high and left of
     the lockup so its strokes do not run through the wordmark. */
  .lo-door-frame { left: 22%; top: 38%; width: min(44vh, 24vw); }
  /* One rule down the middle: the structure the two halves stand either side of. */
  .lo-door::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 12%;
    bottom: 12%;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 18%, var(--line) 82%, transparent);
  }
}

/* The drawn lockup at text size, used wherever no logo has been uploaded. */
.lo-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--t1); }
/* The guide fixes the mark against the wordmark: the symbol is taller than the lettering, and the
   two are only ever scaled together. Sizing the mark in em of the wordmark keeps that true. */
.lo-lockup b { font-size: var(--text-24); font-weight: 600; letter-spacing: -.02em; }
.lo-mark { display: block; flex: none; width: auto; }
.lo-lockup .lo-mark { height: 1.42em; width: 1.42em; font-size: var(--text-24); }
.lo-login-form { display: grid; gap: var(--s2); animation: lo-rise .7s var(--ease) both; }
.lo-login-fields { border: 1px solid var(--field-line); border-radius: var(--r-md); overflow: hidden; background: var(--fill); transition: border-color var(--base) ease; }
.lo-login-fields:focus-within { border-color: var(--t2); }
.lo-login-field { position: relative; }
.lo-login-field + .lo-login-field:not(.lo-login-code) { border-top: 1px solid var(--line); }
.lo-login-field input {
  display: block; width: 100%; height: 52px; padding: 20px 14px 6px;
  border: 0; border-radius: 0; background: transparent; color: var(--t1);
  font: inherit; font-size: var(--text-14); letter-spacing: inherit; outline: 0;
  transition: background-color var(--base) ease;
}
.lo-login-field input:focus { background: var(--fill2); }
.lo-login-field input:-webkit-autofill { -webkit-text-fill-color: var(--t1); -webkit-box-shadow: 0 0 0 100px var(--bg) inset; caret-color: var(--t1); }
.lo-login-field label {
  position: absolute; left: 14px; top: 16px; color: var(--t3); pointer-events: none;
  transform-origin: left top; transition: transform var(--base) var(--ease), color var(--base) ease;
}
.lo-login-field input:focus + label,
.lo-login-field input:not(:placeholder-shown) + label,
.lo-login-field input:-webkit-autofill + label { transform: translateY(-8px) scale(.78); color: var(--t2); }
.lo-login-code { animation: lo-code-in var(--slow) var(--ease) both; border-top: 1px solid var(--line); }
.lo-login-field[hidden], .lo-login-remember[hidden], .lo-login-error[hidden] { display: none; }
.lo-login-remember { display: flex; align-items: center; gap: var(--s2); min-height: 32px; color: var(--t2); font-size: var(--text-13); cursor: pointer; }
.lo-login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--t1); }
.lo-login-error { margin: var(--s1) 0 0; color: var(--accent-text); font-size: var(--text-13); }
.lo-login-error a { color: inherit; text-underline-offset: 3px; }
@keyframes lo-code-in { from { opacity: 0; transform: translateY(-4px); } }
.lo-login-note { margin: 0 0 var(--s3); color: var(--t2); font-size: var(--text-13); }
.lo-login-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: var(--s1);
  border: 0; border-radius: var(--r-md); background: var(--fill2); color: var(--t2);
  font: inherit; font-weight: var(--weight-strong); font-size: var(--text-14); letter-spacing: inherit;
  cursor: pointer; text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform var(--fast) var(--ease);
}
.lo-login-submit:active { transform: scale(.985); }
.lo-login-submit.is-ready,
.lo-login-form:has(#lo-user:not(:placeholder-shown)):has(#lo-pass:not(:placeholder-shown)) .lo-login-submit { background: var(--btn); color: var(--btn-t); }
.lo-login-submit.is-busy { pointer-events: none; }
.lo-login-submit.is-busy span { display: block; width: 16px; height: 16px; overflow: hidden; color: transparent; border-radius: 50%; border: 1.5px solid var(--btn-t); border-right-color: transparent; animation: lo-spin .7s linear infinite; }
@media (pointer: coarse) { .lo-login-field input { font-size: var(--text-16); } }
@keyframes lo-logo-in { from { opacity: 0; filter: blur(8px); transform: scale(.98); } }
@keyframes lo-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes lo-spin { to { transform: rotate(360deg); } }

/* Blog */
.lo-blog-top { max-width: 880px; height: 72px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); display: flex; align-items: center; }
.lo-blog-brand { color: var(--t1); text-decoration: none; font-size: var(--text-16); font-weight: var(--weight-strong); letter-spacing: -.015em; }
.lo-blog-brand img { display: block; max-height: 32px; max-width: 180px; width: auto; height: auto; }
.lo-blog { max-width: 880px; margin: 0 auto; padding: var(--s12) clamp(20px, 4vw, 32px) 96px; }
.lo-blog-title { margin: 0 0 var(--s8); font-size: var(--text-40); font-weight: var(--weight-strong); letter-spacing: -.035em; line-height: 1.05; }
.lo-post-row { border-top: 1px solid var(--line); }
.lo-post-link { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: var(--s6); padding: var(--s6) 0; color: inherit; text-decoration: none; align-items: start; }
.lo-post-link time { font-family: var(--mono); font-size: var(--text-12); color: var(--t3); padding-top: 4px; }
.lo-post-copy h2 { margin: 0; font-size: var(--text-16); font-weight: var(--weight-strong); letter-spacing: -.015em; line-height: 1.3; transition: color var(--fast) ease; }
.lo-post-copy p { margin: var(--s1) 0 0; color: var(--t2); }
@media (hover: hover) { .lo-post-link:hover h2 { color: var(--t2); } }
/* Photos keep their own shape. The frame takes the photo's aspect ratio. */
.lo-post-thumb { width: 120px; }
.lo-post-thumb img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.lo-pager { display: flex; gap: var(--s4); padding-top: var(--s6); border-top: 1px solid var(--line); font-size: var(--text-13); }
.lo-pager a, .lo-pager span { color: var(--t2); text-decoration: none; }
.lo-pager a:hover, .lo-pager .current { color: var(--t1); }
.lo-empty { color: var(--t2); }
.lo-empty a { color: inherit; }

.lo-read { max-width: 736px; }
.lo-read-head { margin-bottom: var(--s8); }
.lo-read-head time { font-family: var(--mono); font-size: var(--text-12); color: var(--t3); }
.lo-read-head h1 { margin: var(--s2) 0 0; font-size: clamp(30px, 5vw, 40px); font-weight: var(--weight-strong); letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
.lo-read-body { font-size: var(--text-16); line-height: 1.65; letter-spacing: -.003em; color: var(--t1); overflow-wrap: anywhere; }
.lo-read-body h2 { margin: 1.8em 0 .5em; font-size: var(--text-24); font-weight: var(--weight-strong); letter-spacing: -.025em; line-height: 1.2; }
.lo-read-body h3 { margin: 1.6em 0 .4em; font-size: var(--text-20); font-weight: var(--weight-strong); letter-spacing: -.015em; line-height: 1.25; }
.lo-read-body h4, .lo-read-body h5, .lo-read-body h6 { margin: 1.4em 0 .4em; font-size: var(--text-16); font-weight: var(--weight-strong); }
.lo-read-body p { margin: 0 0 1.1em; }
.lo-read-body a { color: inherit; text-decoration-color: var(--t3); text-underline-offset: 3px; }
.lo-read-body a:hover { text-decoration-color: var(--now); }
.lo-read-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.lo-read-body figure { margin: 1.6em 0; max-width: 100%; }
.lo-read-body figcaption, .lo-read-body .wp-caption-text { margin-top: var(--s2); font-size: var(--text-13); color: var(--t3); }
.lo-read-body blockquote { margin: 1.4em 0; padding: 0; color: var(--t2); font-size: var(--text-20); line-height: 1.4; letter-spacing: -.015em; }
.lo-read-body ul, .lo-read-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.lo-read-body li { margin-bottom: .35em; }
.lo-read-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.lo-read-body table { width: 100%; border-collapse: collapse; font-size: var(--text-14); }
.lo-read-body th, .lo-read-body td { padding: var(--s2) var(--s3) var(--s2) 0; border-top: 1px solid var(--line); text-align: left; }
/* Galleries flow in columns so every photo keeps its shape. */
.lo-read-body .wp-block-gallery, .lo-read-body .gallery { display: block; columns: 2; column-gap: var(--s2); margin: 1.6em 0; }
.lo-read-body .wp-block-gallery .wp-block-image, .lo-read-body .gallery-item { break-inside: avoid; margin: 0 0 var(--s2) !important; width: 100% !important; }
.lo-read-body .wp-block-gallery img, .lo-read-body .gallery-item img { width: 100% !important; height: auto !important; object-fit: contain !important; }
.lo-read-nav { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s12); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--text-13); }
.lo-read-nav a { color: var(--t2); text-decoration: none; }
.lo-read-nav a:hover { color: var(--t1); }

@media (max-width: 640px) {
  .lo-post-link { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .lo-post-thumb { width: 100%; max-width: 240px; }
  .lo-read-body .wp-block-gallery, .lo-read-body .gallery { columns: 1; }
}

/* Colours, fonts and backgrounds saved inside old posts must not fight the reading view. */
.lo-read-body * { color: inherit !important; font-family: inherit !important; background-color: transparent !important; background-image: none !important; letter-spacing: inherit; text-transform: none !important; max-width: 100%; }
.lo-read-body span, .lo-read-body strong, .lo-read-body em, .lo-read-body b, .lo-read-body i { font-size: inherit !important; }
.lo-read-body [class*='elementor-invisible'] { visibility: visible !important; opacity: 1 !important; animation: none !important; }
.lo-read-body .elementor-heading-title { margin: 0; font-size: inherit; line-height: inherit; }
.lo-read-body h1 { margin: 1.8em 0 .5em; font-size: var(--text-24); font-weight: var(--weight-strong); letter-spacing: -.025em; line-height: 1.2; }
.lo-read-body > :first-child :is(h1, h2, h3):first-child { margin-top: 0; }
.lo-read-body img { display: block; height: auto !important; width: auto; }
.lo-read-body .elementor-widget-divider, .lo-read-body .elementor-widget-spacer, .lo-read-body .elementor-shape, .lo-read-body .elementor-background-overlay { display: none; }
.lo-read-body .elementor-button { display: inline-flex; min-height: 40px; align-items: center; padding: 0 var(--s4); border: 1px solid var(--line2); border-radius: var(--r-md); text-decoration: none; font-size: var(--text-14); }
html, body { overflow-x: clip; }
.lo-read-body .elementor-widget:not(:last-child) { margin-bottom: 1.1em; }
.lo-read-body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.lo-read-body .elementor-widget-image + .elementor-widget { margin-top: 1.4em; }
