/* EB Garamond — latin subset, self-hosted so the page makes no third-party
   font request. Files taken from Google's CSS2 API (v33), selecting the block
   whose unicode-range begins U+0000-00FF. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/ebgaramond-400-normal.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: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ebgaramond-400-italic.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;
}

:root {
  --bg: #fffdfa;
  --text: rgb(17, 17, 17);
  --nav: #141414;
  --link: #5f71f5;
  --muted: #666;
  --column: 528px;
}

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

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

body {
  margin: 0;
  padding: 45px 24px 96px;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Garamond, Georgia, serif;
  /* Matches the OpenType features the Framer build enabled. */
  font-feature-settings: "cv01" on, "cv05" on, "cv09" on, "cv11" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--column);
  margin: 0 auto;
}

/* ---- Artwork ---- */

.artwork {
  margin: 0 auto 28px;
  width: 280px;
  max-width: 100%;
}

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

.artwork figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.artwork figcaption a {
  color: inherit;
  text-decoration: underline;
}

/* ---- Masthead ---- */

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1em;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin: 34px 0 30px;
  font-size: 20px;
}

nav a {
  color: var(--nav);
  text-decoration: none;
}

/* The current page is underlined; the other is not. */
nav a[aria-current="page"] {
  text-decoration: underline;
}

/* ---- Body copy ---- */

p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

/* The contact page centres its detail lines and spaces them further apart
   than body copy; the About page's paragraphs stay left-aligned. */
.contact p {
  text-align: center;
  margin-bottom: 28px;
}

.contact a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

p a {
  color: var(--link);
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

@media (max-width: 599px) {
  body {
    padding: 32px 20px 64px;
  }
  h1 {
    font-size: 34px;
  }
  nav {
    gap: 64px;
  }
}
