/* RAL screen approximations: https://www.ral-color.com/
   Paint colors vary from their appearance on a screen. */
:root {
  --navy: #002654; /* Solid dark navy */
  --powder-blue: #b0e0e6; /* Solid powder blue */
  --parchment: #f1e9d2; /* Solid parchment */
  --anthracite: #383e42; /* RAL 7016 */
  --border: 6px solid var(--anthracite);
  --space: clamp(16px, 3vw, 36px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

body {
  margin: 0;
  border-top: 12px solid var(--anthracite);
  background: var(--parchment);
  color: var(--anthracite);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.site-shell {
  width: min(100% - 2 * var(--space), 1280px);
  margin: var(--space) auto;
}

.masthead {
  height: clamp(120px, 17vw, 220px);
  border: var(--border);
  background: var(--navy);
  display: flex;
  align-items: flex-end;
}

.masthead::after {
  content: "";
  display: block;
  width: 100%;
  height: 32px;
  border-top: var(--border);
  background: var(--powder-blue);
}

.masthead--welcome {
  display: block;
  height: auto;
  color: var(--parchment);
}

.masthead--welcome .welcome h1 {
  color: inherit;
}

.youtube-button {
  display: inline-block;
  padding: 16px 24px;
  border: var(--border);
  background: var(--powder-blue);
  color: var(--navy);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.youtube-button:hover {
  background: var(--parchment);
}

.youtube-button:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 4px;
}

.navigation {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.4fr 1.2fr;
  gap: 6px;
  margin-top: 16px;
  border: var(--border);
  background: var(--anthracite);
}

.navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 16px;
  background: var(--parchment);
  color: var(--anthracite);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 6px;
}

.navigation a[aria-current="page"] {
  background: var(--navy);
  color: var(--parchment);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.navigation a:hover {
  background: var(--anthracite);
  color: var(--parchment);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.navigation a:focus-visible {
  outline: 4px solid var(--parchment);
  outline-offset: -9px;
  background: var(--anthracite);
  color: var(--parchment);
  text-decoration: underline;
}

.content {
  display: grid;
  gap: var(--space);
  margin-top: var(--space);
}

/* Empty layout regions await the supplied copy and photos. */
.panel {
  min-width: 0;
  min-height: 200px;
  border: var(--border);
  background: var(--parchment);
}

.panel--feature {
  min-height: clamp(260px, 32vw, 420px);
  border-top: 18px solid var(--navy);
}

.panel--accent {
  border-top: 18px solid var(--powder-blue);
}

.panel-row > .panel:first-child,
.panel-row > .panel:last-child {
  border-top-color: var(--navy);
}

.statistic {
  display: grid;
  place-items: center;
  padding: 24px 12px;
  text-align: center;
}

.statistic p {
  margin: 0;
}

.statistic-number,
.statistic-label {
  display: block;
  font-weight: 900;
}

.statistic-number {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.statistic-label {
  margin-top: 12px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  overflow-wrap: anywhere;
}

.welcome,
.page-copy {
  padding: var(--space);
}

.welcome h1,
.page-copy h1,
.page-copy h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.welcome p,
.page-copy p {
  max-width: 65ch;
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  overflow-wrap: anywhere;
}

.page-copy p + p {
  margin-top: 1em;
}

.panel-row,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space);
}

.gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo {
  display: block;
  min-width: 0;
  align-self: start;
  border: var(--border);
  background: var(--parchment);
}

.photo.photo--accent {
  border-top: 18px solid var(--powder-blue);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.media-layout {
  grid-template-columns: 1.5fr 1fr;
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space);
}

.home-photos {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: var(--space);
}

.home-photos > .photo + .photo {
  border-top-color: var(--navy);
}

.saving-layout {
  grid-template-columns: 2fr 1fr;
}

.media-layout > .panel--feature,
.saving-layout > .panel--feature {
  border-top-color: var(--powder-blue);
}

.media-layout > .photo--accent,
.saving-layout > .photo--accent {
  border-top-color: var(--navy);
}

.site-base {
  padding: 20px var(--space);
  margin-top: var(--space);
  border: var(--border);
  background: var(--powder-blue);
  color: var(--navy);
  text-align: center;
  overflow-wrap: anywhere;
}

.site-base p {
  margin: 0;
}

.site-base .footer-credit {
  margin-top: 16px;
}

.footer-credit a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-links a {
  display: block;
  padding: 10px 16px;
  border: var(--border);
  background: var(--parchment);
  color: var(--navy);
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  background: var(--navy);
  color: var(--parchment);
}

.footer-links a:focus-visible,
.footer-credit a:focus-visible,
.page-copy a:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 4px;
}

.legal-copy {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.legal-copy section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: var(--border);
}

.legal-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.3;
}

.legal-copy p,
.legal-copy li {
  font-size: 1.125rem;
  line-height: 1.65;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.5em;
}

.legal-copy li + li {
  margin-top: 12px;
}

.legal-copy .legal-date {
  margin-bottom: 20px;
}

.page-copy a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.legal-copy .email-button {
  display: inline-block;
  max-width: 100%;
  padding: 16px 24px;
  border: var(--border);
  background: var(--navy);
  color: var(--parchment);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-panel {
  min-height: 0;
  text-align: center;
}

.contact-panel p {
  margin-inline: auto;
}

.legal-copy .email-button:hover {
  background: var(--powder-blue);
  color: var(--navy);
}

@media (max-width: 800px) {
  .navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-layout,
  .saving-layout,
  .home-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navigation a {
    padding: 16px 10px;
    overflow-wrap: anywhere;
  }

  .panel-row,
  .gallery {
    grid-template-columns: 1fr;
  }
}
