/* Rebuilt from the 2025 WordPress site (Twenty Twenty-Three + custom CSS by aimee c. harrison). */

@font-face {
  font-family: "Trickster";
  font-weight: 100 400;
  font-display: swap;
  src: url("assets/fonts/Trickster-Regular.woff2") format("woff2"),
       url("assets/fonts/Trickster-Regular.woff") format("woff");
}

:root {
  --bg: #c4af9f;
  --ink: #000;
  --title: #5f0d00;
  --subhead: #551f13;
  --section-title: #eee;
  --link: #1a0049;
  --link-hover: #dcb7f1;
  --nav-hover: #40357c;
  --nav-underline: #bd8bd4;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --display: "Trickster", Helvetica, serif;
  --text-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-size);
  line-height: 1.6;
}

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

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); text-decoration: none; }
a:focus-visible { outline: 2px dashed var(--link); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Header */

.site-header { padding: 9vh 0 0; text-align: center; }

.site-title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 100;
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: var(--title);
}

.site-header nav { padding: 0 15vw; }

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  text-decoration-skip-ink: none;
}
.site-header nav a:hover {
  color: var(--nav-hover);
  text-decoration: underline solid var(--nav-underline) 4.5px;
}
.site-header nav a:active {
  color: var(--title);
  text-decoration: underline solid #fff 4.5px;
}

/* Cover sections: full-width background art with a parallax feel */

.title-cover,
.text-cover {
  position: relative;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.title-cover {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 430px;
  padding: clamp(1.5rem, 5vw, 2rem);
  background-image: url("assets/images/Squid_Cover_Two.png");
}

.title-cover--first {
  margin-top: 12vh;
  min-height: 80vh;
}

.title-cover--photo {
  min-height: 710px;
  background-image: url("assets/images/Mechanical-1.jpg");
}
.title-cover--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
}

.section-title {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 5rem;
  font-family: var(--display);
  font-weight: 100;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 2px;
  color: var(--section-title);
  scroll-snap-align: start;
  scroll-margin-top: 2rem;
}
.section-title--center { text-align: center; }

.text-cover {
  min-height: 30vh;
  padding: 10vh calc(5vw + clamp(2.5rem, 8vw, 4.5rem)) 10vh;
  background-image: url("assets/images/Squid_Cover_Fainter.png");
}
.text-cover--book { background-image: url("assets/images/Book_Cover_Faint.png"); }

.text-cover p { padding: 0 2rem; }

/* Columns */

.columns {
  display: flex;
  gap: 2rem;
}
.column { flex: 1 1 0; min-width: 0; }
.column--narrow { flex-basis: 33.33%; }
.column--wide { flex-basis: 66.66%; }

.bio-image {
  display: block;
  width: 20vw;
  max-width: 100%;
  margin-left: 2rem;
}

.subhead {
  margin: 0.6rem 0 0.65rem;
  padding: 0 2rem;
  font-family: var(--display);
  font-weight: 100;
  font-size: 1.7rem;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--subhead);
}
.subhead--spaced { margin-top: 2rem; margin-bottom: 0.5rem; }

.tight { margin-top: 0; }

.review-text { margin: 0 0 0 3rem; }

strong { color: var(--title); }

/* Separator in the Twenty Twenty-Three "dots" style */

hr.dots {
  border: none;
  margin: 1.5rem 12vw 1.5rem 0;
  text-align: center;
  line-height: 1;
}
hr.dots::before {
  content: "\00b7 \00b7 \00b7";
  font-size: 1.5rem;
  letter-spacing: 2em;
  padding-left: 2em;
}

/* Footer */

.site-footer {
  padding-top: 0;
  text-align: center;
}

.dots--footer-top { margin: 20vh 0 10vh !important; }
.dots--footer-bottom { margin: 10vh 0 20vh !important; }

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  padding: 0.25rem;
  color: var(--ink);
}
.social a:hover { color: var(--nav-hover); }
.social svg { fill: currentColor; }

.footer-text {
  margin: 0;
  padding-bottom: 10vh;
  font-size: 1rem;
  color: #fff;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
}
.to-top:hover { background: rgb(0 0 0 / 0.6); color: #fff; }

/* Fixed backgrounds stutter or are ignored on touch devices */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .title-cover, .text-cover { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .site-header nav { padding: 0 8vw; }

  .title-cover--first { margin-top: 11vh; }

  .text-cover { padding: 6vh 8vw 10vh; }

  .columns { flex-direction: column; gap: 0; }

  .bio-image {
    width: 30vw;
    margin: 0 auto 6vh;
  }

  .subhead { text-align: center; font-size: 1.5rem; letter-spacing: 1px; }

  .review-text { margin-left: 0; }

  hr.dots { margin-right: 0; }
}

@media (max-width: 481px) {
  .site-header { padding-top: 7vh; }

  .site-title {
    margin-bottom: 8vh;
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .site-header nav { padding: 0 3vw; }
  .site-header nav a { font-size: 0.9rem; }

  .title-cover--first { margin-top: 22vh; }

  .section-title {
    margin: 0;
    padding: 0;
    font-size: 2.25rem;
    text-align: center;
  }

  .text-cover { padding: 10vw 8vw 10vh; }
  .text-cover p { padding: 0; font-size: 1rem; line-height: 1.5; }
  .subhead { padding: 0; }

  .bio-image { width: 60vw; margin-bottom: 4vh; }
}
