@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

:root {
  --black: #111111;
  --white: #ffffff;
  --grey: #767676;
  --line: #e2e2e2;
  --bg: #9eabb7;
  --accent: #d9ec37;
  --max: 780px;
  --gutter: clamp(24px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--gutter);
}

.nav-mark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--accent);
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.nav-link:hover {
  border-color: var(--black);
}

/* Hero */

.hero {
  text-align: center;
  padding: 10vh var(--gutter) 9vh;
}

.hero-mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--accent);
}

.hero-tagline {
  margin: 22px 0 0;
  font-style: italic;
  font-size: 17px;
  color: var(--grey);
  letter-spacing: 0.02em;
}

/* Sections */

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0;
}

.section-more {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--grey);
  white-space: nowrap;
}

.section-more:hover {
  color: var(--black);
}

/* Latest */

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.latest-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.latest-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f3f3f3;
  margin-bottom: 18px;
}

.latest-card-date {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 8px;
}

.latest-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.2;
}

.latest-card-excerpt {
  font-size: 15px;
  color: var(--grey);
  margin: 0;
  line-height: 1.55;
}

.latest-empty {
  font-style: italic;
  color: var(--grey);
}

/* Favorites */

.favorites-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.favorites-copy {
  max-width: 440px;
}

.favorites-copy p {
  color: var(--grey);
  margin: 0;
}

.favorites-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.favorites-link {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  white-space: nowrap;
}

.favorites-link:hover {
  color: var(--grey);
  border-color: var(--grey);
}

/* Links page */

.links-hero {
  padding: 8vh var(--gutter) 6vh;
  text-align: center;
}

.links-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(40px, 8vw, 56px);
  margin: 0;
}

.links-hero p {
  color: var(--grey);
  font-style: italic;
  margin: 14px 0 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 100px;
  border-top: 1px solid var(--line);
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  padding: 28px 0;
}

.link-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
}

.link-desc {
  font-size: 14px;
  color: var(--grey);
  text-align: right;
}

.link-list a:hover .link-name {
  color: var(--grey);
}

/* Footer */

footer {
  padding: 40px var(--gutter) 56px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
}

.footer-links a:hover {
  color: var(--black);
}

.footer-copy {
  font-size: 12px;
  color: var(--grey);
  margin: 0;
}
