/* The page shell, v1: the top strip, the header with its closed menu, the
   footer, and the frame every page sits in. Measurements are the reference
   pages'; every colour, type size and spacing value is a design token.
   See STANDARD.md in this folder. */

body { margin: 0; }
a { color: var(--lcr-color-green); }
a:hover { color: var(--lcr-color-orange-text); }

/* H6: the hidden attribute always hides, whatever class the element has
   (:root lifts this above .lcr-sm, which sets display with !important). */
:root [hidden] { display: none !important; }

/* ---------------------------------------------------------------- frame */

.lcr-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lcr-color-ground);
  color: var(--lcr-color-ink);
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-body);
  line-height: var(--lcr-font-line-height-body);
  -webkit-font-smoothing: antialiased;
}

/* The wrapper is the container the design's breakpoints and cqw units measure. */
.lcr-wrap {
  container-type: inline-size;
  container-name: lcr;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lcr-container {
  width: 100%;
  max-width: var(--lcr-space-container-max);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: var(--lcr-space-gutter);
  padding-right: var(--lcr-space-gutter);
}

/* Shown above 860 px / shown at 860 px and below / hidden at 620 px and below.
   The numbers are breakpoint.md and breakpoint.sm; a container condition
   cannot read a custom property, and tests/shell.test.mjs holds them equal. */
.lcr-sm { display: none; }
@container lcr (max-width: 860px) {
  .lcr-lg { display: none !important; }
  .lcr-sm { display: flex !important; }
}
@container lcr (max-width: 620px) {
  .lcr-t2 { display: none !important; }
}

/* ---------------------------------------------------------------- focus (register entry D-13) */

:focus-visible {
  outline: var(--lcr-focus-ring-width) solid var(--lcr-focus-color, var(--lcr-color-green));
  outline-offset: var(--lcr-focus-ring-offset);
}
[data-ground="dark"] { --lcr-focus-color: var(--lcr-color-ground); }
[data-ground="light"] { --lcr-focus-color: var(--lcr-color-green); }
/* On a dark ground a text link keeps its colour under the pointer and is underlined. */
[data-ground="dark"] a:hover { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------- buttons */

.lcr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lcr-space-10);
  min-height: var(--lcr-control-min-height);
  padding: 0 var(--lcr-space-24);
  box-sizing: border-box;
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-15);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--lcr-radius-control);
  cursor: pointer;
  white-space: nowrap;
}
.lcr-btn--primary {
  background: var(--lcr-color-orange);
  color: var(--lcr-color-ground);
  border: 1px solid var(--lcr-color-orange);
}
.lcr-btn--primary:hover {
  background: var(--lcr-color-orange-text);
  border-color: var(--lcr-color-orange-text);
  color: var(--lcr-color-ground);
  text-decoration: none;
}
.lcr-btn--outline {
  padding: 0 var(--lcr-space-22);
  background: var(--lcr-color-ground);
  color: var(--lcr-color-green);
  border: 1px solid var(--lcr-color-green);
}
.lcr-btn--outline:hover {
  background: var(--lcr-color-surface-alt);
  color: var(--lcr-color-green);
  text-decoration: none;
}

/* ---------------------------------------------------------------- top strip */

.lcr-strip {
  background: var(--lcr-color-orange);
  color: var(--lcr-color-ground);
  font-size: var(--lcr-font-size-13);
  font-weight: var(--lcr-font-weight-medium);
}
.lcr-strip__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lcr-space-24);
}

/* ---------------------------------------------------------------- header */

.lcr-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--lcr-color-ground);
  border-bottom: 1px solid var(--lcr-color-line);
}
.lcr-header__bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lcr-space-24);
}
.lcr-wordmark {
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-18);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--lcr-color-ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.lcr-nav {
  display: flex;
  align-items: center;
  gap: var(--lcr-space-34);
}
.lcr-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--lcr-font-size-15);
  font-weight: var(--lcr-font-weight-medium);
  color: var(--lcr-color-ink);
  text-decoration: none;
}
.lcr-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lcr-color-orange); }

.lcr-menu-button {
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: calc(-1 * var(--lcr-space-10));
  background: transparent;
  border: 0;
  color: var(--lcr-color-ink);
  cursor: pointer;
}
.lcr-icon { flex-shrink: 0; }

/* The menu panel. Closed, it carries the hidden attribute (H4). */
.lcr-menu {
  flex-direction: column;
  padding: 0 var(--lcr-space-20) var(--lcr-space-20);
  border-top: 1px solid var(--lcr-color-line);
  background: var(--lcr-color-ground);
}
.lcr-menu__home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--lcr-color-line);
  font-size: var(--lcr-font-size-17);
  color: var(--lcr-color-ink);
  text-decoration: none;
}
.lcr-menu__home span {
  font-size: var(--lcr-font-size-14);
  color: var(--lcr-color-ink-muted);
}
.lcr-menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: var(--lcr-font-size-17);
  color: var(--lcr-color-ink);
  text-decoration: none;
}
.lcr-menu .lcr-btn { margin-top: var(--lcr-space-12); }

/* ---------------------------------------------------------------- footer */

.lcr-footer {
  margin-top: auto;
  background: var(--lcr-color-green-deep);
  color: var(--lcr-color-on-green-deep);
  border-top: 6px solid var(--lcr-color-orange);
}
.lcr-footer__inner {
  padding-top: var(--lcr-space-fluid-52-72);
  padding-bottom: var(--lcr-space-32);
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-fluid-40-56);
}
.lcr-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lcr-space-44) var(--lcr-space-44);
}
.lcr-footer__brand {
  flex: 2 1 280px;
  display: flex;
  flex-direction: column;
  gap: var(--lcr-space-16);
}
.lcr-footer__name {
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-24);
  font-weight: var(--lcr-font-weight-light);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.lcr-footer__description {
  margin: 0;
  max-width: 34ch;
  font-size: var(--lcr-font-size-15);
  color: var(--lcr-color-on-green-muted);
}
.lcr-footer__homes { flex: 1 1 250px; }
.lcr-footer__contact { flex: 1 1 220px; }
.lcr-footer__visiting { flex: 1 1 240px; scroll-margin-top: 96px; }
.lcr-footer__heading {
  margin: 0 0 var(--lcr-space-10);
  font-family: var(--lcr-font-family);
  font-size: var(--lcr-font-size-12);
  font-weight: var(--lcr-font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lcr-color-on-green-muted);
}
.lcr-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.lcr-footer__home {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--lcr-space-10);
  padding: var(--lcr-space-9) 0;
  color: var(--lcr-color-on-green-deep);
  text-decoration: none;
  font-size: var(--lcr-font-size-body);
}
.lcr-footer__home span {
  font-size: var(--lcr-font-size-14);
  color: var(--lcr-color-on-green-muted);
}
.lcr-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: var(--lcr-space-10);
  padding: var(--lcr-space-9) 0;
  color: var(--lcr-color-on-green-deep);
  font-size: var(--lcr-font-size-body);
  text-underline-offset: 4px;
}
.lcr-footer__ext {
  display: inline-flex;
  align-items: center;
  gap: var(--lcr-space-8);
  padding: var(--lcr-space-9) 0;
  color: var(--lcr-color-on-green-deep);
  text-decoration: none;
  font-size: var(--lcr-font-size-15);
}
.lcr-footer__legal {
  border-top: 1px solid var(--lcr-color-footer-line);
  padding-top: var(--lcr-space-22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--lcr-space-6) var(--lcr-space-24);
  font-size: var(--lcr-font-size-13);
  color: var(--lcr-color-on-green-muted);
}

/* ---------------------------------------------------------------- the two places outside the page region */

/* The gallery place has no box of its own: what a page puts in it is laid out
   as a child of the root, and can cover the whole screen (H5). */
[data-shell="gallery"] { display: contents; }

/* The bottom bar: fixed to the bottom of the screen at 860 px and below (H5).
   It is the last thing in the wrapper, after the footer, so it never covers
   the page's last line. A page fills it; the shell draws the bar itself. */
.lcr-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  align-items: center;
  justify-content: space-between;
  gap: var(--lcr-space-16);
  padding: var(--lcr-space-10) var(--lcr-space-20);
  background: var(--lcr-color-ground);
  border-top: 1px solid var(--lcr-color-line);
}

/* ---------------------------------------------------------------- not found */

.lcr-not-found {
  padding-top: var(--lcr-space-section-y);
  padding-bottom: var(--lcr-space-section-y);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--lcr-space-16);
}
.lcr-not-found h1 {
  margin: 0;
  font-weight: var(--lcr-font-weight-light);
  font-size: var(--lcr-font-size-h2);
  line-height: 1.15;
  color: var(--lcr-color-green);
}
.lcr-not-found p { margin: 0; color: var(--lcr-color-ink-muted); }
