/* copytofollow.com */

:root {
  --paper: #f8f6f1;
  --ink: #1d1b18;
  --text: #36322c;
  --muted: #857e72;
  --rule: #e5e0d6;
  --accent: #1d5190; /* the blue of the boat in the footer */
  --measure: 35rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  color-scheme: light;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 380;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: clamp(1.75rem, 6vw, 3.25rem);
}

.wordmark {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.45em;
}

/* Content */

main {
  flex: 1;
  padding-top: clamp(3.5rem, 12vw, 7rem);
}

h1,
h2 {
  color: var(--ink);
  text-wrap: balance;
}

.intro {
  margin: 0 0 2.25rem;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  font-weight: 330;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-title {
  margin: 0;
  font-size: clamp(2.5rem, 1.75rem + 3vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.lede {
  margin: 2.5rem 0;
  color: var(--ink);
  font-size: 1.1875em;
  font-weight: 340;
  line-height: 1.55;
}

h2 {
  margin: 3.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
}

.price {
  color: var(--ink);
}

.price strong {
  font-weight: 600;
}

/* Two-column ruled list; subgrid keeps the columns aligned across rows. */
.pairs {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.pairs li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.pairs li > :first-child {
  color: var(--ink);
  font-weight: 500;
}

.pairs li > :last-child {
  color: var(--muted);
  font-style: italic;
}

.pairs a:hover {
  color: var(--accent);
}

@media (max-width: 34rem) {
  .pairs {
    grid-template-columns: 1fr;
  }
}

.note {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* Footer */

.site-footer {
  margin-top: clamp(4.5rem, 14vw, 9rem);
  background: var(--paper);
}

.colophon {
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.colophon p {
  margin: 0.4rem 0 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

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

.social a:hover {
  color: var(--accent);
}

.site-footer picture {
  display: block;
}

/* The painting is on white paper: multiply melts its white into --paper,
   and the mask softens the top edge of the sky. */
.footer-art {
  display: block;
  width: 100%;
  height: auto;
  min-height: 13rem;
  object-fit: cover;
  object-position: 28% 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
  mask-image: linear-gradient(transparent, #000 18%);
}
