/* Avides Societe - single hand-written stylesheet.
   Colours and proportions follow the previous WordPress (Primer) look. */

/* Self-hosted fonts: Noto Sans (regular, bold, italic) and Cormorant Garamond Bold (site title only),
   Latin subsets, SIL OFL 1.1 – see /fonts/LICENSE.txt. The URLs are filled in by baseof.html. */
@font-face {
  font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/NotoSans-Regular.09aee8065d25508f23a4c3d92cd777ac869c52d93fd868a88f025d888a7937d6.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/NotoSans-Bold.e77bfe1db912f687b0319b60de158cfada67f89c8ee4f8e2bd6020f970accbfb.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/fonts/NotoSans-Italic.c302cbfdd98d628d60b6ef8de3c8459c70449df3a5ff2baacfa7481d95e79f4c.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/CormorantGaramond-Bold.21a0fc1c5c22708cf4aa0c147fd32982e25bf9e21efec0ca31a4495ba41753eb.woff2") format("woff2");
}

:root {
  --header-bg: #511e1e;
  --text: #252525;
  --heading: #353535;
  --link: #1e73be;
  --muted: #6b6b6b;
  --max: 1100px;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.8 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--link); }
a:hover, a:focus { color: #1a62a8; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Skip link: hidden until focused */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

/* Text for screen readers only */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Header + navigation */
.site-header { background: var(--header-bg); color: #fff; }
.title-block { padding-top: clamp(1.5rem, 2vw, 4rem); padding-bottom: clamp(1.5rem, 1vw, 4rem); }
.site-title {
  margin: 0 0 0.25rem;
  /* Cormorant Garamond is a display face with a very small x-height, so it is set larger than the
     sans text (2.5em x 1.12 = the same 44.8px line box as the other title faces, so the header
     height is unchanged). Bold (700) keeps the hairlines readable in white on the dark header. */
  font: 700 2.5em/1.12 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
.site-title a { color: #fff; text-decoration: none; }
/* Hover and keyboard focus: full white with a thin underline. Shared by the site title and the nav entries. */
.site-title a:hover, .site-title a:focus,
nav a:hover, nav a:focus {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.site-description { margin: 0; }

/* The row is pulled 1rem to the left, the width of each entry's side padding, so the first entry keeps its
   normal padding (the current-page box has room on the left) while its TEXT lines up with the title above
   and the body text below. */
nav ul { list-style: none; margin: 0 0 0 -1rem; padding: 0; display: flex; flex-wrap: wrap; }
nav a {
  display: block;
  padding: 0.7rem 1rem;
  line-height: 1rem;
  color: #fff;
  text-decoration: none;
}
nav a[aria-current] { background: rgba(0, 0, 0, 0.22); color: #fff; }

/* Content + contact block */
.layout { display: grid; gap: 1.5rem; margin-top: 1.25em; }
main { padding: 0.3em 0 1em 0; }
main p { margin: 0 0 1.5em; }
main p:last-child { margin-bottom: 0; }
main ul { margin: 0 0 1.5em; padding-left: 1.5em; }
main li { margin-bottom: 0.5em; }
main li:last-child { margin-bottom: 0; }
/* Term + description (Management and Fees pages): <dt> bold, <dd> indented 2.5em (40px at 16px, the
   browser default made explicit). Written in the Markdown as "Term" then ": description". */
main dl { margin: 0 0 1.5em; }
main dl:last-child { margin-bottom: 0; }
main dt { font-weight: 700; }
main dd { margin: 0 0 1.5em 2.5em; }
main dd:last-child { margin-bottom: 0; }
aside { padding: 0.3em 0 1em 0; }
aside h4 { margin: 0.2rem 0 0.8rem; font-size: 1.25em; line-height: 1.4; color: var(--heading); }
aside p { margin: 0 0 1.5em; }
aside p:last-child { margin-bottom: 0; }

@media (min-width: 61em) {
  .layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.8%; }
  main { padding: 0.5em 3.375em 2.5em 0; }
  aside { padding: 0.5em 2rem 2rem 2rem; }
}

/* Footer */
.site-footer { margin-top: 1.5em; padding: 1.5em 0; color: var(--muted); font-size: 90%; }
