/* ---------------------------------------------------------------
   April L. Dodd, M.A.
   Blush ground, deep aubergine type, magenta mandala.
   Fraunces display over Spectral text. Margin-set section names.
   --------------------------------------------------------------- */

:root {
  --ground:   #faf5f5;
  --ground-2: #f4eaee;
  --ink:      #2b1c2e;
  --ink-soft: #6c5361;
  --magenta:  #e4187f;
  --rose:     #c9879f;
  --rose-dp:  #a43468;
  --deep:     #2b1c2e;
  --on-deep:  #f4e8ed;
  --on-deep-soft: #c2a7b4;
  --rule:     rgba(43, 28, 46, 0.14);
  --rule-lt:  rgba(244, 232, 237, 0.2);

  --measure: 64ch;
  --gutter:  clamp(1.5rem, 5vw, 5rem);
  --section: clamp(4.5rem, 10vw, 9rem);

  --display: Fraunces, Georgia, "Times New Roman", serif;
  --text:    Spectral, Georgia, "Times New Roman", serif;
  --script:  Parisienne, "Snell Roundhand", cursive;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.24;
}

h3 { font-size: 1.3rem; line-height: 1.38; }

/* one word of the page's largest line, in the script from the mandala */
.accent {
  font-family: var(--script);
  font-size: 1.24em;
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.4em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  line-height: 1.5;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}

.dim { color: var(--ink-soft); }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rose);
  padding-bottom: 1px;
}

a:hover { border-bottom-color: var(--magenta); }

a:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* ---------- layout ---------- */

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.grid > .name {
  font-family: var(--text);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--rose-dp);
  margin: 0.35rem 0 0;
}

.band { padding-block: var(--section); }
.band + .band { border-top: 1px solid var(--rule); }

.band--tint { background: var(--ground-2); border-top: 0; }

.band--deep {
  background: var(--deep);
  color: var(--on-deep);
  border-top: 0;
}

.band--deep .name { color: var(--rose); }
.band--deep .dim { color: var(--on-deep-soft); }
.band--deep a { border-bottom-color: var(--rose); }
.band--deep a:hover { border-bottom-color: var(--on-deep); }
.band--deep .row { border-top-color: var(--rule-lt); }
.band--deep .row:last-child { border-bottom-color: var(--rule-lt); }
.band--deep .todo { border-color: var(--rose); color: var(--rose); }
.band--deep .plain li::before { border-top-color: var(--rose); }

/* ---------- header ---------- */

.masthead { padding: 1.75rem 0 0; }

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.logotype { border-bottom: 0; display: block; }
.logotype img { width: clamp(126px, 13.5vw, 162px); }

.nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.nav a { border-bottom: 0; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--magenta);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--section); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 320px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { max-width: 20ch; }

.hero .sig { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 46ch; }

.hero .sig hr {
  width: 3.5rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--magenta);
  margin: 0 0 1.5rem;
}

.hero .sig p { font-size: 1.125rem; color: var(--ink-soft); }
.hero .sig strong { font-weight: 500; color: var(--ink); }

.rise { animation: rise 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.rise-2 { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.7rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- prose ---------- */

.stack > * + * { margin-top: 1.4em; }
.stack h2 + p { margin-top: 1.15em; }

/* ---------- rows ---------- */

.rows { margin: 2.75rem 0 0; }

.row { padding-block: 2.3rem; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row h3 { margin-bottom: 0.55rem; }
.row p { margin-bottom: 0; }

.price {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 1.2rem;
}

.row .price,
.row .more { margin-top: 0.9rem; }

/* ---------- petal divider ---------- */

.ornament {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
  color: var(--rose);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

.ornament svg { width: 2.4rem; height: 2.4rem; flex: none; }

/* ---------- faint mandala in a deep band ---------- */

.has-mark { position: relative; overflow: hidden; }

.has-mark::after {
  content: "";
  position: absolute;
  right: -11rem;
  top: 50%;
  width: 36rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url(../img/mandala-mark.png) center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.has-mark > .wrap { position: relative; z-index: 1; }

/* ---------- numbered steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  max-width: var(--measure);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: start;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}

.steps li:last-child { border-bottom: 1px solid var(--rule); }

.steps li::before {
  content: counter(step);
  font-family: var(--script);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--rose-dp);
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* ---------- quiet list ---------- */

.plain { margin: 1.6rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }

.plain li { padding-left: 1.5rem; position: relative; margin-bottom: 0.8rem; }

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.55rem;
  height: 0;
  border-top: 1px solid var(--magenta);
}

.plain strong { font-weight: 500; }

/* ---------- books ---------- */

.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 2.5rem 0 0;
  align-items: end;
}

.books figure { margin: 0; }

.books a { border-bottom: 0; display: block; }

.books img {
  width: 100%;
  filter: drop-shadow(0 6px 18px rgba(43, 28, 46, 0.14));
}

.books figcaption {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: 2.5rem 0 0;
}

.quotes blockquote {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.band--deep .quotes blockquote { border-top-color: var(--rule-lt); }

.quotes blockquote::before {
  content: "\201C";
  display: block;
  height: 1.7rem;
  font-family: var(--script);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--magenta);
}

.quotes p {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.quotes cite {
  font-style: normal;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.band--deep .quotes cite { color: var(--on-deep-soft); }

/* ---------- press ---------- */

.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin: 2rem 0 0;
}

.press img { height: 69px; width: auto; }
.press img.wide { height: 36px; }
.press img.cover { height: 150px; border-radius: 12px; }
.press a { border-bottom: 0; display: block; }

/* ---------- form ---------- */

.form { margin: 2.25rem 0 0; max-width: 34rem; }

.form label {
  display: block;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.form input,
.form textarea {
  width: 100%;
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.4rem;
}

.form textarea { resize: vertical; }

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
  border-color: transparent;
}

.form button {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 1.05rem;
  color: var(--ground);
  background: var(--deep);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1.9rem;
  cursor: pointer;
}

.form button:hover { background: var(--rose-dp); }

.form button:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* ---------- to-fill-in marker ---------- */

.todo {
  border: 1px dashed var(--rose-dp);
  border-radius: 0.75rem;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0 0;
  max-width: var(--measure);
  color: var(--rose-dp);
  font-size: 0.9375rem;
  line-height: 1.65;
  font-style: italic;
}

.todo b {
  display: block;
  font-style: normal;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* ---------- portrait ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split img { border-radius: 0.5rem; }

/* arched portrait with an offset outline */
.arch { position: relative; margin: 0 0.9rem 0.9rem 0; }

.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(0.9rem, 0.9rem);
  border: 1px solid var(--rose);
  border-radius: 999px 999px 0.5rem 0.5rem;
}

.split .arch img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 999px 999px 0.5rem 0.5rem;
}

.split .arch--left img { object-position: 7% center; }

.portrait {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--rule);
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
}

/* ---------- footer ---------- */

.footer {
  background: var(--deep);
  color: var(--on-deep-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 1.0625rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer a { color: var(--on-deep); border-bottom-color: var(--rule-lt); }
.footer a:hover { border-bottom-color: var(--rose); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }

/* ---------- responsive ---------- */

@media (max-width: 54rem) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  .grid > .name { margin-top: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid .mark { max-width: 170px; order: -1; }
  .split .arch { max-width: 24rem; }
  .has-mark::after { width: 24rem; right: -10rem; opacity: 0.07; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { transition: none !important; }
}
