/* figtree-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/figtree-v9-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* figtree-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/figtree-v9-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/lora-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
  --color-brand: #f18d1f;
  --color-heading: #6e922d;
  --color-text: #2a363b;
  --color-background: #f4eedd;
  --color-surface: #ffffff;
  --color-border: #d9cfb3;
  --color-muted: #5c666a;
}

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  line-height: 19px;
}

h1,
h2 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: 40px;
  line-height: 48px;
}

h2 {
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 42px;
}

p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 21px;
}

a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration-color: var(--color-brand);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--color-brand);
}

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

.site-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  align-items: flex-end;
  padding-top: 48px;
  padding-bottom: 24px;
}

.logo {
  justify-self: start;
  width: 88px;
  margin-top: 16px;
}

.site-header,
.content,
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
}

.content > p {
  max-width: 680px;
}

.gallery {
  margin: 40px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.gallery__grid img {
  grid-column: span 2;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery__grid img:nth-child(-n + 2) {
  grid-column: span 3;
}

.gallery figcaption {
  margin-top: 12px;
  color: var(--color-muted);
  font-style: italic;
}

.notice {
  padding: 16px 20px;
  background: var(--color-surface);
  font-weight: 700;
}

.site-footer {
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--color-border);
}

address {
  font-style: normal;
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .logo {
    justify-self: center;
    margin: 0 auto;
  }

  h1 {
    font-size: 32px;
    line-height: 36px;
  }

  h2 {
    font-size: 26px;
    line-height: 30px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid img,
  .gallery__grid img:nth-child(-n + 2) {
    grid-column: auto;
  }
}
