/*
Theme Name: Lindsey A. Zahn
Theme URI: https://lindseyzahn.com/
Author: Lindsey A. Zahn
Description: Personal website theme for Lindsey A. Zahn: a full-screen impressionist painting on the homepage (Peach River or Poppy Field) with a handwritten name, and quiet, classic inner pages for About, Speaking Engagements, Publications, and Contact.
Version: 1.0.3
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lindseyzahn
*/

:root {
  --ink: #1f1c22;
  --soft: #4e4852;
  --link: #5f5965;
  --hair: #e4dde2;
  --paper: #ffffff;
  --script: "Homemade Apple", "Brush Script MT", cursive;
  --display: "Cormorant Garamond", Garamond, Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.3125rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; color: var(--ink); }

/* Navigation */
.nav { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 0; padding: 0; list-style: none; font-family: var(--body); font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: 10px 2px; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.social { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.social svg { width: 20px; height: 20px; }

/* Homepage: the painting, the name, the pages */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; text-align: center; overflow: hidden; background: #f3e2d7; }
.home-hero__painting { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.home-hero__name { position: relative; margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.5; color: var(--ink); }
.home-hero .nav { position: relative; justify-content: center; max-width: 61rem; gap: 10px 54px; font-size: 1.1875rem; }
.home-hero .nav a { padding: 10px 6px; }
.home-hero .nav a[aria-current="page"] { border-bottom: 0; }

/* Inner pages */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 18px 48px; border-top: 1px solid var(--hair); }
.site-header__name { font-family: var(--script); font-size: 1.875rem; line-height: 1.9; color: var(--ink); text-decoration: none; }
.site-header__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; }
.page-title { margin: 0; padding: 72px 24px 48px; text-align: center; font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.875rem); line-height: 1.6; color: var(--ink); }
.page-photo { max-width: 47.5rem; margin: 0 auto 56px; padding: 0 28px; }
.page-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 22%; }
.entry { max-width: 42.5rem; margin: 0 auto; padding: 0 28px 64px; }
.entry p { margin: 0 0 1.25em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.entry h2 { margin: 2.4em 0 0.5em; font-family: var(--display); font-weight: 600; font-size: 2.375rem; line-height: 1.2; color: var(--ink); }
.entry ul.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.entry ul.items li { display: flex; flex-direction: column; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.entry .item-meta { font-size: 0.9375rem; letter-spacing: 0.18em; color: var(--soft); text-transform: uppercase; }
.entry .item-title { font-family: var(--display); font-style: italic; font-size: 1.75rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
a.item-title:hover { text-decoration: underline; }
.entry .item-detail { font-size: 1.1875rem; line-height: 1.55; color: var(--soft); }
.entry .item-title em { font-style: normal; }
.entry ul.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); column-gap: 36px; border-top: 1px solid var(--hair); }
.entry ul.features li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 92px; padding: 10px 16px; border-bottom: 1px solid var(--hair); font-family: var(--display); font-size: 1.45rem; }
.entry .center { display: flex; justify-content: center; margin-top: 28px; }
.signature { margin: 24px 0 0; text-align: center; font-family: var(--script); font-size: 1.875rem; line-height: 1.8; color: var(--ink); }
.site-footer { padding: 28px 24px 48px; text-align: center; border-top: 1px solid var(--hair); font-size: 0.875rem; letter-spacing: 0.14em; color: var(--soft); text-transform: uppercase; }
.not-found { text-align: center; padding: 0 24px 96px; }

@media (max-width: 760px) {
  body { font-size: 1.1875rem; }
  .site-header { padding: 14px 20px; justify-content: center; text-align: center; }
  .site-header__right { justify-content: center; }
  .nav { justify-content: center; gap: 2px 18px; font-size: 0.85rem; }
  .home-hero .nav { gap: 4px 26px; font-size: 1rem; }
  .entry p { text-align: left; }
}
