/* Moving Ahead Digital Hubs: the page on the bare domain.
   Colours and type follow the hub sites. This page uses no script. */

:root {
  --coral: #f14943;
  --coral-dark: #d93531;
  --navy: #324563;
  --navy-deep: #1f2f49;
  --aqua: #78bdc4;
  --ink: #26364f;
  --text: #4e5359;
  --muted: #696f75;
  --line: #dedbd7;
  --paper: #ffffff;
  --warm: #f7f6f3;
  --shadow: 0 22px 54px rgba(31, 47, 73, 0.12);
  --max: 900px;
}

@font-face { font-family: "LatoMA"; src: url("assets/fonts/Lato-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "LatoMA"; src: url("assets/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "AmalfiCoast"; src: url("assets/fonts/Amalfi-Coast.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

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

html { background: var(--paper); }

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--warm);
  font-family: "LatoMA", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before { content: ""; position: fixed; z-index: 10; inset: 0 0 auto; height: 5px; background: var(--coral); }

h1, p { margin-top: 0; }

a { color: var(--navy-deep); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }

.container { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner { display: flex; min-height: 96px; align-items: center; padding-top: 5px; }
.site-header img { display: block; width: 112px; height: auto; }

main { display: flex; flex: 1; align-items: center; padding: clamp(2.5rem, 7vw, 6rem) 0; }

.card {
  width: 100%;
  padding: 2.75rem 3.9rem 3.25rem;
  border-top: 8px solid var(--coral);
  background: var(--paper);
  box-shadow: var(--shadow);
}

h1 { margin-bottom: 0; font-size: 1rem; font-weight: 300; line-height: 1; }

.page-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}
.page-marker::before { content: ""; flex: none; width: 42px; height: 3px; background: var(--coral); }

.welcome-title {
  display: block;
  /* The script letters reach well above and below their line, so the space
     around the word scales with its size. */
  padding: 0.74em 0 0.82em;
  color: var(--coral);
  font-family: "AmalfiCoast", "LatoMA", Arial, sans-serif;
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
}

.plain-title {
  display: block;
  padding: 1.3rem 0 1.4rem;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.card p { max-width: 62ch; margin-bottom: 1.1rem; }
.card p:last-child { margin-bottom: 0; }
.lede { color: var(--ink); font-size: 1.18rem; line-height: 1.6; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1.6rem 0; }
.site-footer img { display: block; width: 96px; height: auto; }
.site-footer__meta { color: var(--muted); font-size: 0.76rem; text-align: right; }

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .site-header__inner { min-height: 80px; }
  .card { padding: 2rem 1.5rem 2.25rem; }
}
