/* Colours and type follow Anna's style guide: warm neutrals, one accent per
   page, Geologica Light headings, Montserrat text. */

@font-face { font-family: Geologica; font-weight: 300; font-display: swap;
  src: url(fonts/geologica-latin-300.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geologica; font-weight: 300; font-display: swap;
  src: url(fonts/geologica-latin-ext-300.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geologica; font-weight: 300; font-display: swap;
  src: url(fonts/geologica-cyrillic-300.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: Montserrat; font-weight: 400; font-display: swap;
  src: url(fonts/montserrat-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap;
  src: url(fonts/montserrat-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap;
  src: url(fonts/montserrat-cyrillic-400.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: Montserrat; font-weight: 500; font-display: swap;
  src: url(fonts/montserrat-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap;
  src: url(fonts/montserrat-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap;
  src: url(fonts/montserrat-cyrillic-500.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* A step lighter than the guide's Молоко (#F3F2EE), Anna's choice for the web. */
  --background: #F9F8F5;
  --sand: #D9D3C7;
  --cream: #FCF9D8;
  --sage: #A4A296;
  --graphite-light: #64635F;
  --graphite: #2E2D2A;
  --gutter: clamp(1.25rem, 6vw, 5rem);
  --measure: 42rem;
}

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

/* Keeps anchored content clear of the sticky header. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--graphite);
  font: 400 1.0625rem/1.75 Montserrat, system-ui, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: Geologica, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.25;
}

h1, h2 {
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 { margin: 0 0 2rem; font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.2rem, 3vw, 1.5rem); }
h3 { margin: 2.5rem 0 .75rem; font-size: 1.2rem; }

p, ul, ol { margin: 0 0 1.25rem; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover {
  background: var(--graphite);
  color: var(--background);
  /* Shadows pad the hover block, wider than tall, without moving nearby text. */
  box-shadow: .4em 0 0 .25em var(--graphite), -.4em 0 0 .25em var(--graphite);
  border-radius: 1px;
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: .5rem 1rem;
  background: var(--cream);
}
.skip-link:focus { top: .5rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.25rem var(--gutter);
  background: var(--background);
}

.site-name {
  margin-right: auto;
  font-family: Geologica, system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
}

.site-nav, .lang-switch { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

.site-nav a, .lang-switch a {
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
}

.lang-switch { gap: .25rem .75rem; }
.lang-switch a:not([aria-current]):not(:hover) { color: var(--graphite-light); }
[aria-current="page"] { text-decoration: underline; }
a[aria-current]:hover { text-decoration: none; }

.site-main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 6rem) var(--gutter);
}

/* Text beside the photo on wide screens; photo under the headline on phones. */
.site-main-wide { max-width: none; }

.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro portrait" "details portrait";
  column-gap: clamp(3rem, 6vw, 6rem);
}
.home-intro { grid-area: intro; }
.home-details { grid-area: details; }
.home-portrait { grid-area: portrait; margin: 0; }
/* Warmed and faded at the edges so the photo blends into the page. */
.home-portrait img {
  --fade-x: linear-gradient(to right, transparent 0, #000 22%);
  --fade-y: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.1) sepia(.14);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 56rem) {
  .home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "portrait" "details";
  }
  .home-portrait { margin-top: 1rem; }
  .home-portrait img {
    --fade-x: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
}

/* The cream circle is faint on the milk background by design. */
.accent-circle { position: relative; isolation: isolate; }
.accent-circle h1 { font-size: clamp(1.45rem, 3.4vw, 2rem); text-wrap: balance; }
.accent-circle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3rem;
  left: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: var(--cream);
}

.lead { font-size: 1.2rem; }
.note { color: var(--graphite-light); font-size: .95rem; }

.status {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--cream);
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.icon-link { display: block; color: #000; line-height: 0; }
.icon-link:hover { color: var(--background); }
.icon-link svg { display: block; width: 1.25rem; height: 1.25rem; }

.stack {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 2rem;
  margin: 0 0 1.25rem;
}
.stack dt { color: var(--graphite-light); }
.stack dd { margin: 0; }

h1 + .status { margin-top: -.75rem; }
.note:last-child { margin-top: 3rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin: 0 var(--gutter);
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--sage);
  color: var(--graphite-light);
  font-size: .8125rem;
}

.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
