/* Read, Write, Think, Learn
   Plain static site. Colours and fonts match the old WordPress theme (Twenty Twenty-One). */

:root {
  --bg: #d1e4dd;
  --text: #28303d;
  --teal: #156675;
  --purple: #8a2f8a;
  --wide: 1240px;
  --narrow: 610px;
  --gutter: clamp(16px, 5vw, 64px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-style: dotted; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.5rem 1rem;
}
.site-title { margin: 0; font-size: 1.375rem; font-weight: normal; line-height: 1.3; text-transform: uppercase; }
.site-title a { text-decoration: none; }
.site-title a:hover { text-decoration: underline; }
.tagline { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.4; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { text-decoration: none; font-size: 1.0625rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Page title with rule underneath (About, Contact) */
.page-title {
  margin: 3.5rem 0 0;
  padding-bottom: 2.25rem;
  border-bottom: 2px solid var(--text);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
}

/* Single column text */
.content { max-width: var(--narrow); margin: 0 auto; padding-block: 3rem 1rem; }
.content p { margin: 0 0 1.5rem; }
.content h2 { font-size: 1.125rem; font-weight: bold; font-style: italic; margin: 3rem 0 0.5rem; }
.label-en { color: var(--teal); }
.label-fr { color: var(--purple); }

.portrait { margin: 0 auto 2.5rem; width: 180px; }

/* Home */
.home-title {
  margin: 3.5rem 0 1.5rem;
  max-width: 14em;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: normal;
  line-height: 1.2;
}
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; padding-bottom: 2rem; }
.columns h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: normal; line-height: 1.3; }
.columns p { margin: 0 0 1.25rem; font-size: 1rem; }

figure { margin: 0 0 2.5rem; }
figcaption { margin-top: 0.5rem; text-align: center; font-size: 0.8125rem; line-height: 1.5; }
.rounded { border-radius: 9999px; }

/* Contact */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li { margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-block: 1.5rem 3rem;
  border-top: 2px solid var(--text);
}
.site-footer p { margin: 0; font-size: 1.125rem; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Phones and small tablets */
@media (max-width: 781px) {
  .columns { grid-template-columns: 1fr; }
  .columns figure { max-width: 420px; margin-inline: auto; }
  .site-header { padding-top: 1.5rem; }
  .page-title { margin-top: 2rem; padding-bottom: 1.5rem; }
  .home-title { margin-top: 2rem; }
}
