/* MELLON placeholder website. Brand values: PROJECT_SPEC.md 5.2, DECISIONS.md D-017, D-019. */

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/satoshi/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/satoshi/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #f9f5f1;             /* brand lightest */
  --color-text: #474427;                   /* brand green, 9.1:1 */
  --color-label: #9f4e39;                  /* brand brick, 5.3:1 */
  --color-text-muted: rgb(71 68 39 / 0.8); /* green at 80%, 5.3:1 */
  --font-primary: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --content-max: 56rem;
  /* Logo width; its height is width / 1.945 (viewBox 129.67 x 66.67). */
  --logo-width: clamp(11rem, 50vw, 20rem);
  /* Clear space below the logo: half the logo's height (ARCHITECTURE.md 7). */
  --logo-clear-space: calc(var(--logo-width) / 3.89);
}

/* Reset */

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

h1,
h2,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Layout */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  /* Only takes effect when a single word is wider than the screen
     (e.g. "MANUFACTURING" at 200% text size on a 320 px phone). */
  overflow-wrap: anywhere;
}

.page {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-2) var(--space-4);
  text-align: center;
}

.site-footer {
  padding: var(--space-3) var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Sections */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand__logo img {
  width: var(--logo-width);
}

.brand__tagline {
  margin-top: var(--logo-clear-space);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  letter-spacing: 0.02em;
}

/* Keeps each phrase on one line when it fits, so narrow screens break
   at the separators instead of leaving a single word behind. */
.brand__phrase,
.site-footer__phrase {
  display: inline-block;
}

.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  width: 100%;
  max-width: 36rem;
  margin-top: var(--space-5);
}

.location__label {
  margin-bottom: var(--space-1);
  color: var(--color-label);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.location__address {
  line-height: 1.6;
}

.contact {
  margin-top: var(--space-5);
  font-size: 1.125rem;
}

.contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact a:hover {
  text-decoration-thickness: 2px;
}

.contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

/* Locations side by side from 640 px */

@media (min-width: 40em) {
  .locations {
    grid-template-columns: 1fr 1fr;
  }
}
