@import url(reset.css);

:root {
  --header-bg: #ffd7f0;
  --header-links: #3a0032;
  --hero-bg: linear-gradient(0deg, #fffbff99, #fffbffaa), url(/IMG_20230414_160913_098.jpg);
  --button-bg: #ad009a;
  --button-text: #ffffff;
  --link-text: #6f5767;
  --link-underline: #f9daec;
  --footer-bg: #efdee6;
  --footer-text: #4f444a;
  --odd-section-bg: #ffdbce;
  --quote-text: #321205;
  --body-bg: #fffbff;
  --body-text: #1f1a1d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --header-bg: #840076;
    --header-links: #ffd7f0;
    --hero-bg: linear-gradient(0deg, #1f1a1d99, #1f1a1daa), url(/IMG_20230414_160913_098.jpg);
    --button-bg: #fface8;
    --button-text: #5e0053;
    --link-text: #dcbed0;
    --link-underline: #3e2a38;
    --footer-bg: #4f444a;
    --footer-text: #d2c2ca;
    --odd-section-bg: #663c2b;
    --quote-text: #ffdbce;
    --body-bg: #1f1a1d;
    --body-text: #eae0e3;
  }
}

* {
  font-family: sans-serif;
}

body {
  background: var(--body-bg);
  color: var(--body-text);
}

header {
  background: var(--header-bg);
  color: var(--header-links);
  height: 4rem;
  line-height: 2rem;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 10;
}

header nav {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 640px;
}

header nav .logo {
  height: 100%;
  padding: 1rem;
  font-weight: 600;
}

header nav ul {
  display: flex;
  flex-direction: row;
  height: 100%;
}

header nav a {
  display: block;
  height: 100%;
  padding: 1rem;
}

@media screen and (max-width: 550px) {
  header nav ul {
    display: none;
  }
}

.center {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.columns {
  display: flex;
  gap: 1rem;
}

.columns>* {
  flex: 1;
}

.columns>.box {
  border: 1px solid var(--header-links);
  border-radius: 1rem;
  padding: 1rem;
}

.container {
  margin-inline: auto;
  max-width: 640px;
}

.container>* {
  padding: 0 1rem;
}

.stack>*:not(img)+* {
  margin-top: 1rem;
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0;
}

section {
  overflow-y: hidden;
  padding: 2rem 0;
  position: relative;
  scroll-margin-top: 4rem;
}

section:first-of-type {
  margin-top: 4rem;
}

section.hero {
  background-image: var(--hero-bg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.testimonials {
  background: var(--odd-section-bg);
}

blockquote {
  color: var(--quote-text);
  display: block;
  font-size: 1.2rem;
  quotes: "“";
}

blockquote::before {
  color: var(--quote-text);
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  opacity: 0.5;
  vertical-align: -0.4em;
}

cite {
  color: var(--quote-text);
  display: block;
  text-align: right;
}

cite::before {
  content: "— ";
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

[role="doc-subtitle"] {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

section ul {
  list-style: revert;
  padding-inline-start: revert;
}

img {
  display: block;
  float: right;
  margin: 0 0 1rem 0;
  max-height: 100%;
  width: min(50vw, 300px);
}

.image {
  background-position: center;
  background-size: cover;
  height: 40vh;
  width: 100vw;
}

section a {
  color: var(--link-text);
  text-decoration-color: var(--link-underline);
  text-decoration-line: underline;
  text-decoration-thickness: .125em;
  text-underline-offset: .0625em;
}

button,
.button {
  background: var(--button-bg);
  border-radius: 1000px;
  color: var(--button-text);
  display: block;
  font-weight: 600;
  padding: 1rem 2rem;
  text-decoration: none;
  width: fit-content;
}