:root {
  --paper: #EFF1EE;
  --ink: #141D1A;
  --ink-secondary: #44534D;
  --accent: #176858;
  --rule: rgba(20, 29, 26, 0.14);
  --pad-x: clamp(22px, 5vw, 76px);
  --pad-y: clamp(22px, 4.2vh, 52px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Fira Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ma-field {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: max(var(--pad-y), env(safe-area-inset-top));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
  padding-bottom: max(var(--pad-y), env(safe-area-inset-bottom));
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
}

/* Top Swiss axis */
.top-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eq-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.eq-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.office {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* Central asymmetric Swiss-Japanese composition */
.composition {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(20px, 4vh, 48px);
  padding-bottom: clamp(28px, 5.5vh, 64px);
}

.locus-chamber {
  /* The chamber fills its whole grid area; the square plot inside takes the larger square that fits,
     so the fit grows into free space at every window size instead of hugging a corner. */
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  justify-self: stretch;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 200px;
}

.locus-svg {
  display: block;
  flex: none;
  width: min(100cqw, 100cqh, var(--plot-max, 820px));
  height: min(100cqw, 100cqh, var(--plot-max, 820px));
}

.wordmark-chamber {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.8vw, 24px);
  padding-bottom: clamp(4px, 1vh, 14px);
}

.wordmark-heading {
  margin: 0;
  line-height: 0;
}

.logotype {
  display: block;
  width: clamp(210px, 31vw, 430px);
  height: auto;
}

.capital-tag {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink-secondary);
  /* Align flush with primary baseline of dalyx SVG (26 units = 9.2% of width above SVG bottom) */
  margin-bottom: calc(clamp(210px, 31vw, 430px) * 0.088);
}

/* Bottom Swiss colophon — clean single-line desktop rows */
.swiss-colophon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: clamp(18px, 2.4vh, 26px);
  border-top: 1px solid var(--rule);
}

.colophon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.statement {
  margin: 0;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.contact {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  font-weight: 400;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(20, 29, 26, 0.34);
  transition: border-color 180ms ease, color 180ms ease;
}

.contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

.legal {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.008em;
  color: var(--ink-secondary);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .legal {
    white-space: normal;
  }
}

/* Stacked composition: phones, and tablets held upright */
@media (max-width: 859px), (orientation: portrait) and (max-width: 1100px) {
  .ma-field {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .eq-mark {
    width: 36px;
    height: 36px;
  }

  .composition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .locus-chamber {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    min-height: 220px;
  }

  .wordmark-chamber {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 0;
  }

  .logotype {
    width: clamp(205px, 68vw, 290px);
  }

  .capital-tag {
    margin-bottom: 0;
    font-size: 15px;
  }

  .swiss-colophon {
    gap: 14px;
    padding-top: 18px;
  }

  .colophon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .statement {
    white-space: normal;
    font-size: 14.5px;
    max-width: 32ch;
  }

  .legal {
    white-space: normal;
    text-align: left;
    font-size: 11.5px;
    max-width: 44ch;
  }
}

@media (max-width: 380px) {
  .logotype {
    width: 196px;
  }
}


/* Upright tablets: same stacked poster, set larger */
@media (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) {
  .ma-field {
    padding-top: max(44px, env(safe-area-inset-top));
    padding-right: max(48px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    padding-left: max(48px, env(safe-area-inset-left));
  }
  .eq-mark { width: 42px; height: 42px; }
  .office { font-size: 14.5px; }
  .composition { gap: 28px; padding-top: 24px; padding-bottom: 36px; }
  .logotype { width: clamp(300px, 44vw, 440px); }
  .capital-tag { font-size: 18px; }
  .swiss-colophon { gap: 16px; padding-top: 24px; }
  .colophon-row { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .statement { font-size: 16.5px; max-width: none; }
  .contact { font-size: 16px; }
  .legal { font-size: 12.5px; max-width: 64ch; }
}

/* Small or short phones held upright */
@media (max-width: 859px) and (orientation: portrait) and (max-height: 700px) {
  .composition { gap: 14px; padding-top: 8px; padding-bottom: 18px; }
  .locus-chamber { min-height: 170px; }
  .logotype { width: clamp(176px, 54vw, 230px); }
  .capital-tag { font-size: 14px; }
  .swiss-colophon { gap: 10px; padding-top: 14px; }
  .colophon-row { gap: 8px; }
  .statement { font-size: 14px; }
  .legal { font-size: 11px; }
}

/* Phones held sideways: side-by-side composition, compact chrome */
@media (orientation: landscape) and (max-height: 500px) {
  .ma-field {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }
  .eq-mark { width: 30px; height: 30px; }
  .office { font-size: 12.5px; }
  .composition {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 12px;
  }
  .locus-chamber {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    min-height: 120px;
  }
  .wordmark-chamber {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }
  .logotype { width: clamp(150px, 27vw, 260px); }
  .capital-tag { font-size: 13px; margin-bottom: calc(clamp(150px, 27vw, 260px) * 0.088); }
  .swiss-colophon { gap: 6px; padding-top: 10px; }
  .colophon-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
  .statement { font-size: 13px; white-space: nowrap; max-width: none; }
  .contact { font-size: 13px; }
  .legal { font-size: 10.5px; max-width: none; line-height: 1.4; }
}

/* Large displays: scale the whole composition up so it never floats small in a big field */
@media (min-width: 1800px) and (min-height: 1000px) and (orientation: landscape) {
  :root { --plot-max: 1080px; }
  .eq-mark { width: 52px; height: 52px; }
  .office { font-size: 16px; }
  .logotype { width: clamp(430px, 24vw, 640px); }
  .capital-tag { font-size: 25px; margin-bottom: calc(clamp(430px, 24vw, 640px) * 0.088); }
  .statement { font-size: 19px; }
  .contact { font-size: 18px; }
  .legal { font-size: 13.5px; }
  .swiss-colophon { gap: 16px; padding-top: 30px; }
}

/* 404 link */
.statement a { color: inherit; text-underline-offset: 3px; }

/* Header: city and the login link */
.top-meta { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); margin: 0; }
.login {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(20, 29, 26, 0.34);
  text-underline-offset: 5px;
  padding: 12px 0;
  line-height: 1;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.login:hover { color: var(--accent); text-decoration-color: var(--accent); }
.login:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 380px) { .top-meta { gap: 12px; } .office, .login { font-size: 12.5px; } }
@media (min-width: 1800px) and (min-height: 1000px) and (orientation: landscape) { .login { font-size: 16px; } }
