/* ==========================================================================
   Lumorow — main stylesheet
   Values are taken 1:1 from the design handoff (design/*.dc.html).
   ========================================================================== */

:root {
  --lr-page-bg: oklch(0.985 0.004 310);
  --lr-surface: oklch(1 0 0);
  --lr-ink: oklch(0.22 0.015 310);
  --lr-ink-2: oklch(0.35 0.015 310);
  --lr-ink-lead: oklch(0.3 0.015 310);
  --lr-ink-muted: oklch(0.42 0.015 310);
  --lr-ink-card: oklch(0.45 0.015 310);
  --lr-ink-soft: oklch(0.5 0.012 310);
  --lr-nav: oklch(0.38 0.012 250);
  --lr-line: oklch(0.91 0.008 310);
  --lr-line-menu: oklch(0.9 0.01 310);
  --lr-line-input: oklch(0.88 0.01 310);
  --lr-divider: oklch(0.93 0.008 310);
  --lr-accent: #0093FC;          /* brand blue — matches the logo tagline */
  --lr-accent-hover: #0077D1;
  --lr-pill-bg: #E5F3FF;
  --lr-pill-ink: #0077D1;
  --lr-hover-bg: #F0F7FF;
  --lr-input-bg: oklch(0.995 0.002 310);
  --lr-btn-ink: oklch(0.99 0.004 310);
  --lr-brand-blue: #0093FC;
  --lr-sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --lr-mono: 'Space Mono', monospace;
  --lr-shadow-photo: 0 1px 2px oklch(0.22 0.015 310 / 0.05), 0 10px 28px oklch(0.22 0.015 310 / 0.07);
  --lr-shadow-brand: 0 2px 4px oklch(0.22 0.015 310 / 0.06), 0 18px 44px oklch(0.22 0.015 310 / 0.14);
  --lr-shadow-menu: 0 8px 24px oklch(0.22 0.015 310 / 0.1);
}

/* ---------- Base (identical to the reference <style> block) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lr-page-bg); }
body {
  margin: 0;
  background: var(--lr-page-bg);
  color: var(--lr-ink);
  font-family: var(--lr-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lr-accent); text-decoration: none; }
a:hover { color: var(--lr-accent-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
input, textarea, button { font-family: inherit; }
summary::-webkit-details-marker { display: none; }
img { max-width: none; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  left: 12px; top: 12px; z-index: 100000; padding: 10px 14px;
  background: var(--lr-surface); border-radius: 6px; box-shadow: var(--lr-shadow-menu);
  font-size: 14px; font-weight: 600;
}

.lr-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.lr-header { background: var(--lr-page-bg); }
.lr-header__inner {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.lr-logo { display: flex; align-items: center; }
.lr-logo img { height: 52px; width: auto; display: block; }
.lr-header__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lr-nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.lr-nav a,
.lr-login { color: var(--lr-nav); }
.lr-login { font-size: 15px; font-weight: 500; }
.lr-nav a:hover,
.lr-login:hover { color: var(--lr-nav); } /* reference: inline colour, no hover shift */
.lr-nav a.is-current,
.lr-nav a.is-current:hover { color: var(--lr-accent); }

/* Language menu */
.lr-lang { position: relative; }
.lr-lang > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.lr-lang > summary svg { display: block; }
.lr-lang__menu {
  position: absolute; top: 32px; right: 0; z-index: 20;
  background: var(--lr-surface);
  border: 1px solid var(--lr-line-menu);
  border-radius: 8px; padding: 6px; min-width: 150px;
  box-shadow: var(--lr-shadow-menu);
  display: flex; flex-direction: column;
}
.lr-lang__menu a {
  font-size: 14px; font-weight: 500; color: var(--lr-ink);
  padding: 9px 12px; border-radius: 5px;
}
.lr-lang__menu a:hover,
.lr-lang__menu a:focus-visible { background: var(--lr-hover-bg); color: var(--lr-ink); }

/* ---------- Main / Footer ---------- */
.lr-main { flex: 1; }

.lr-footer { margin-top: auto; background: var(--lr-page-bg); }
.lr-footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 40px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.lr-footer__row {
  display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: space-between; align-items: center;
}
.lr-footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.lr-footer__copy { font-family: var(--lr-mono); font-size: 12px; color: var(--lr-ink-soft); }

/* ---------- Shared type ---------- */
.lr-eyebrow {
  font-family: var(--lr-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lr-accent);
}
.lr-h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; }

/* ---------- Home ---------- */
.lr-hero { max-width: 1080px; margin: 0 auto; padding: 46px 24px 12px; }
.lr-hero__grid {
  position: relative; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0; row-gap: 0;
}
.lr-photo {
  aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden;
  background: var(--lr-surface); border: 1px solid var(--lr-line);
  box-shadow: var(--lr-shadow-photo);
}
.lr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.lr-photo img.is-top { object-position: center 30%; }

.lr-brandcard {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: calc(0.75 * (2 * clamp(24px, 8vw, 120px) + clamp(20px, 4vw, 48px) - 48px) + 48px);
  background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 14px;
  box-shadow: var(--lr-shadow-brand); z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 18px; padding: 22px 8px 30px; text-align: center;
}
.lr-brandcard img { width: 100%; max-width: 150px; height: auto; display: block; }
.lr-brandcard__lines {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12.5px; line-height: 1.35; color: var(--lr-ink-2); white-space: nowrap;
}
.lr-brandcard__lines .is-blue { color: var(--lr-brand-blue); }

/* The reference formula shrinks the card below its text width on narrower
   screens (the lines then spill out). Keep a floor so the lines always fit. */
@media (max-width: 1100px) {
  .lr-brandcard { width: max(calc(0.75 * (2 * clamp(24px, 8vw, 120px) + clamp(20px, 4vw, 48px) - 48px) + 48px), 172px); }
}
/* Phones: compact card so it doesn't swallow the photos. */
@media (max-width: 600px) {
  .lr-brandcard { width: auto; gap: 10px; padding: 13px 12px 15px; border-radius: 11px; }
  .lr-brandcard img { width: 92px; max-width: 92px; }
  .lr-brandcard__lines { gap: 3px; font-size: 10px; line-height: 1.3; }
}

.lr-services {
  max-width: 1080px; margin: 0 auto; padding: 54px 24px 26px;
  display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lr-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--lr-surface); border: 1px solid var(--lr-line);
  border-radius: 10px; padding: 26px;
}
.lr-card h3 { font-size: 19px; font-weight: 600; text-align: center; }
.lr-card p { font-size: 15px; line-height: 1.6; color: var(--lr-ink-card); }

/* ---------- About (and editable prose pages) ---------- */
.lr-about {
  flex: 1; max-width: 760px; margin: 0 auto; padding: 72px 24px 88px; width: 100%;
  display: flex; flex-direction: column; gap: 22px;
}
.lr-about .lr-prose { display: contents; }
.lr-about .lr-prose > * { margin: 0; }
.lr-about .lr-prose p { font-size: 16px; line-height: 1.7; color: var(--lr-ink-muted); }
.lr-about .lr-prose p.lead,
.lr-about .lr-prose p.is-style-lead { font-size: 18px; line-height: 1.65; color: var(--lr-ink-lead); }
.lr-about .lr-prose h2 { font-size: 24px; font-weight: 600; margin-top: 22px; }
.lr-about .lr-prose p.cta { margin-top: 22px; }
.lr-about .lr-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Projects ---------- */
.lr-projects { flex: 1; max-width: 1080px; margin: 0 auto; padding: 72px 24px 88px; width: 100%; }
.lr-projects__head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.lr-projects__intro { font-size: 17px; line-height: 1.6; color: var(--lr-ink-muted); }
.lr-projects__grid {
  margin-top: 48px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.lr-project {
  background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 10px;
  box-shadow: none; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 0;
}
.lr-project__preview {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, oklch(0.955 0.01 310) 0 8px, oklch(0.98 0.006 310) 8px 16px);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--lr-divider);
  align-self: start; width: 100%; min-width: 0; position: relative; overflow: hidden;
}
.lr-project__placeholder {
  font-family: var(--lr-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--lr-ink-soft);
}
.lr-project__preview img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.lr-project__preview iframe {
  position: absolute; top: 0; left: 0; width: 333.333%; height: 333.333%;
  border: none; transform: scale(0.3); transform-origin: top left;
  pointer-events: none; background: var(--lr-surface);
}
.lr-project__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.lr-project__title-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: nowrap;
}
.lr-project__title { font-size: 20px; font-weight: 600; min-width: 0; }
.lr-pill {
  font-family: var(--lr-mono); font-size: 11px; padding: 4px 9px; border-radius: 99px;
  background: var(--lr-pill-bg); color: var(--lr-pill-ink); white-space: nowrap; display: inline-block;
}
.lr-project__domain { font-family: var(--lr-mono); font-size: 13px; color: var(--lr-ink-soft); }
.lr-project__desc { font-size: 15px; line-height: 1.6; color: var(--lr-ink-muted); }

/* ---------- Contact ---------- */
.lr-contact {
  flex: 1; max-width: 1080px; margin: 0 auto; padding: 72px 24px 88px; width: 100%;
  display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.lr-contact__info { display: flex; flex-direction: column; gap: 18px; }
.lr-contact__text { font-size: 16px; line-height: 1.7; color: var(--lr-ink-muted); max-width: 44ch; }
.lr-contact__email { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.lr-contact__email-label {
  font-family: var(--lr-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lr-ink-soft);
}
.lr-contact__email a { font-size: 17px; font-weight: 600; }

.lr-form {
  background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.lr-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.lr-form input,
.lr-form textarea {
  border: 1px solid var(--lr-line-input); border-radius: 6px; padding: 12px 13px;
  font-size: 15px; color: var(--lr-ink); background: var(--lr-input-bg); font-weight: 400;
  margin: 0; width: 100%;
}
.lr-form textarea { resize: vertical; }
.lr-form input:focus,
.lr-form textarea:focus { outline: 2px solid var(--lr-accent); outline-offset: 1px; }
.lr-form button {
  margin-top: 4px; background: var(--lr-accent); color: var(--lr-btn-ink);
  border: none; border-radius: 6px; padding: 15px 24px;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.lr-form button:hover { background: var(--lr-accent-hover); }
.lr-form button[disabled] { opacity: .7; cursor: default; }
.lr-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lr-form__status { font-size: 14px; line-height: 1.6; color: var(--lr-ink-muted); }
.lr-form__status.is-error { color: oklch(0.5 0.17 25); }
.lr-form__thanks { display: flex; flex-direction: column; gap: 10px; }
.lr-form__thanks h2 { font-size: 22px; font-weight: 600; }
.lr-form__thanks p { font-size: 15px; line-height: 1.6; color: var(--lr-ink-muted); }

/* ---------- Legal pages + generic content ---------- */
.lr-legal {
  flex: 1; max-width: 720px; margin: 0 auto; padding: 72px 24px 88px; width: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.lr-legal__title { font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.12; }
.lr-legal .lr-prose { display: contents; }
.lr-legal .lr-prose > * { margin: 0; }
.lr-legal .lr-prose .lr-legal__meta,
.lr-legal__meta { font-family: var(--lr-mono); font-size: 12px; line-height: normal; color: var(--lr-ink-soft); }
.lr-legal .lr-prose .lr-legal__notice,
.lr-legal__notice {
  font-size: 15px; line-height: 1.7; color: var(--lr-ink-soft);
  border: 1px solid var(--lr-line); background: var(--lr-surface);
  border-radius: 8px; padding: 16px; margin-top: 10px;
}
.lr-legal .lr-prose h2 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.lr-legal .lr-prose .lr-legal__notice + h2,
.lr-legal .lr-prose .lr-legal__meta + h2,
.lr-legal .lr-prose h2.is-first { margin-top: 28px; }
.lr-legal .lr-prose p { font-size: 16px; line-height: 1.75; color: var(--lr-ink-2); }
.lr-legal .lr-prose h3 { font-size: 17px; font-weight: 600; margin-top: 14px; }
.lr-legal .lr-prose ul,
.lr-legal .lr-prose ol { font-size: 16px; line-height: 1.75; color: var(--lr-ink-2); padding-left: 1.3em; }
.lr-legal .lr-prose img { max-width: 100%; height: auto; }

/* 404 */
.lr-404 .lr-legal__actions { margin-top: 10px; font-size: 16px; }
.lr-404 .lr-legal__actions a { text-decoration: underline; text-underline-offset: 3px; }
.lr-form--done { justify-content: center; text-align: center; min-height: 320px; }
.lr-form__thanks:focus { outline: none; }

/* ---------- Log in popup ---------- */
.lr-auth { position: relative; }
button.lr-login {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; line-height: normal; letter-spacing: normal;
  color: var(--lr-nav); -webkit-appearance: none; appearance: none;
}
button.lr-login:focus-visible { outline: 2px solid var(--lr-accent); outline-offset: 3px; border-radius: 3px; }
.lr-auth.is-open button.lr-login { color: var(--lr-accent); }
.lr-auth__panel {
  position: absolute; top: 34px; right: 0; z-index: 30;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--lr-surface); border: 1px solid var(--lr-line-menu); border-radius: 10px;
  box-shadow: var(--lr-shadow-menu); padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.lr-auth__panel[hidden] { display: none; }
.lr-auth__title { font-size: 19px; font-weight: 600; }
.lr-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--lr-line-input); border-radius: 6px; background: var(--lr-surface);
  padding: 11px 16px; font-size: 15px; font-weight: 600; color: var(--lr-ink);
}
.lr-google:hover { background: var(--lr-hover-bg); color: var(--lr-ink); }
.lr-google svg { flex: none; display: block; }
.lr-auth__or {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--lr-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lr-ink-soft);
}
.lr-auth__or::before, .lr-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--lr-line); }
.lr-auth__form { display: flex; flex-direction: column; gap: 14px; }
.lr-auth__form > label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lr-auth__form input[type="text"],
.lr-auth__form input[type="password"] {
  border: 1px solid var(--lr-line-input); border-radius: 6px; padding: 11px 12px;
  font-size: 15px; color: var(--lr-ink); background: var(--lr-input-bg); font-weight: 400; width: 100%; margin: 0;
}
.lr-auth__form input:focus { outline: 2px solid var(--lr-accent); outline-offset: 1px; }
.lr-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.lr-auth__remember { display: flex; align-items: center; gap: 6px; color: var(--lr-ink-muted); cursor: pointer; }
.lr-auth__remember input { margin: 0; accent-color: var(--lr-accent); }
.lr-auth__submit {
  background: var(--lr-accent); color: var(--lr-btn-ink); border: none; border-radius: 6px;
  padding: 13px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.lr-auth__submit:hover { background: var(--lr-accent-hover); }
.lr-auth__submit[disabled] { opacity: .7; cursor: default; }
.lr-auth__status { font-size: 13px; line-height: 1.5; color: var(--lr-ink-muted); }
.lr-auth__status.is-error { color: oklch(0.5 0.17 25); }
.lr-auth__note {
  font-size: 13px; line-height: 1.55; color: var(--lr-ink-muted);
  border-top: 1px solid var(--lr-line); padding-top: 14px;
}
.lr-auth__note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .lr-auth { position: static; }
  .lr-header__right { position: relative; }
  .lr-auth__panel { left: 0; right: auto; top: 34px; }
}

/* ---------- Cookie consent ---------- */
.lr-cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  width: 420px; max-width: calc(100vw - 24px);
  background: var(--lr-surface); border: 1px solid var(--lr-line-menu); border-radius: 10px;
  box-shadow: 0 2px 4px oklch(0.22 0.015 310 / 0.06), 0 18px 44px oklch(0.22 0.015 310 / 0.14);
  padding: 20px;
}
.lr-cookies[hidden] { display: none; }
.lr-cookies__main { display: flex; flex-direction: column; gap: 12px; }
.lr-cookies__title { font-size: 17px; font-weight: 600; }
.lr-cookies__text { font-size: 14px; line-height: 1.6; color: var(--lr-ink-muted); }
.lr-cookies__text a { text-decoration: underline; text-underline-offset: 3px; }
.lr-cookies__prefs { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.lr-cookies__prefs[hidden] { display: none; }
.lr-cookies__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--lr-ink-muted); cursor: pointer; }
.lr-cookies__opt strong { color: var(--lr-ink); font-weight: 600; }
.lr-cookies__opt input { margin: 3px 0 0; flex: none; accent-color: var(--lr-accent); width: 15px; height: 15px; }
.lr-cookies__opt input:disabled { cursor: default; }
.lr-cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lr-cookies__btn {
  flex: 1 1 auto; background: var(--lr-accent); color: var(--lr-btn-ink); border: 1px solid var(--lr-accent);
  border-radius: 6px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.lr-cookies__btn:hover { background: var(--lr-accent-hover); border-color: var(--lr-accent-hover); }
.lr-cookies__btn--ghost { background: var(--lr-surface); color: var(--lr-accent); border-color: var(--lr-line-input); }
.lr-cookies__btn--ghost:hover { background: var(--lr-hover-bg); color: var(--lr-accent-hover); border-color: var(--lr-line-input); }
.lr-cookies__btn[hidden] { display: none; }
.lr-cookies__btn:focus-visible, .lr-cookies__opt input:focus-visible { outline: 2px solid var(--lr-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .lr-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
}
.lr-legal .lr-prose ul { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lr-legal .lr-prose li strong { color: var(--lr-ink); font-weight: 600; }
