/* The CarbonCopy website. Recreates the look of the old WordPress site
   (the Twenty Twenty theme) without WordPress. */

:root {
  --accent: #cd2653;
  --ink: #000;
  --muted: #6d6d6d;
  --paper: #f5efe0;
  --line: #dcd7ca;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Hoefler Text", Garamond, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 var(--sans);
  letter-spacing: -0.015em;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  text-decoration: none;
}

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

.inner {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}

/* Site header */

.site-header {
  background: #fff;
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px 0;
}

.site-title {
  color: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.site-title:hover,
.site-title:focus {
  text-decoration: underline;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Page title */

.page-header {
  background: #fff;
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.0415em;
  line-height: 1.138;
}

/* Page content */

.content {
  width: calc(100% - 40px);
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 0 0;
  font: 18px/1.5 var(--serif);
  letter-spacing: normal;
}

.content > * {
  margin: 0 0 1.25em;
}

.content > :last-child {
  margin-bottom: 0;
}

.content p {
  line-height: 1.4;
}

.content h2 {
  margin: 35px 0 20px;
  font: 700 32px/1.25 var(--sans);
  letter-spacing: -0.0415em;
}

.content h2 strong {
  font-weight: inherit;
}

.content hr {
  position: relative;
  overflow: visible;
  height: 1px;
  margin: 40px 0;
  border: 0;
  color: var(--muted);
  background: linear-gradient(to left, currentColor calc(50% - 16px), transparent calc(50% - 16px), transparent calc(50% + 16px), currentColor calc(50% + 16px));
}

.content hr::before,
.content hr::after {
  content: "";
  position: absolute;
  top: calc(50% - 8px);
  width: 1px;
  height: 16px;
  background: currentColor;
  transform: rotate(22.5deg);
}

.content hr::before {
  left: calc(50% - 5px);
}

.content hr::after {
  right: calc(50% - 5px);
}

.content figure {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.content .center {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 18px 24px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font: 600 15px/1.25 var(--sans);
  letter-spacing: 0.0333em;
  text-decoration: none;
}

.button:hover,
.button:focus {
  text-decoration: underline;
}

/* Site footer, kept at the bottom of short pages */

main {
  flex: 1;
}

.site-footer {
  margin-top: 50px;
  background: #fff;
  font-size: 16px;
}

.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 30px 0;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer p a {
  color: inherit;
  text-decoration: none;
}

.site-footer p a:hover,
.site-footer p a:focus {
  text-decoration: underline;
}

.to-the-top {
  color: var(--muted);
  text-decoration: none;
}

.to-the-top:hover,
.to-the-top:focus {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .site-header .inner {
    padding: 28px 0;
  }

  .site-title {
    font-size: 24px;
  }

  .site-header ul {
    font-size: 18px;
  }

  .page-header {
    padding: 80px 0;
  }

  .page-header h1 {
    font-size: 64px;
  }

  .content {
    padding-top: 80px;
    font-size: 21px;
  }

  .content h2 {
    margin: 60px 0 30px;
    font-size: 48px;
  }

  .content hr {
    margin: 80px 0;
  }

  .site-footer {
    margin-top: 80px;
    font-size: 18px;
  }

  .site-footer .inner {
    padding: 43px 0;
  }
}

@media (min-width: 1220px) {
  .page-header h1 {
    font-size: 84px;
  }
}
