/* ==========================================================================
   aaronjsmith.net — typewriter style (homepage, spiritual direction, tarot)
   Colors and fonts live in :root. Edit them here and every page follows.
   ========================================================================== */

:root {
  --paper: #f4efe3;
  --paper-light: #fbf8f1;
  --ink: #2b2a26;
  --ink-soft: #4a4740;
  --muted: #6b6457;
  --sage: #7d8c6e;
  --sage-dark: #55644a;
  --rust: #a4502c;

  --type: "Courier Prime", Courier, monospace;
  --display: "Special Elite", "Courier Prime", Courier, monospace;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (min-width: 48em) { body { font-size: 1.15rem; } }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  margin-top: 1.8em;
}
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
a:hover,
a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper-light);
  padding: .5rem 1rem;
  border: 0;
}
.skip-link:focus { top: .75rem; color: var(--paper-light); }

.wrap {
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.prose { max-width: 40rem; margin-inline: auto; }

/* ---------- Homepage ---------- */

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.home main { max-width: 60rem; width: 100%; text-align: center; }

.home blockquote {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.7;
}
.home blockquote p { margin: 0; }

.home-name {
  display: inline-block;
  margin: 0 0 3rem;
  padding: .4rem .9rem;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--ink);
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 3vw, 1.5rem);
}
.tiles a {
  display: block;
  color: var(--ink);
  border: 0;
}
.tiles svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: .6rem;
}
.sketch {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tiles span {
  font-size: clamp(.8rem, 2.4vw, 1.15rem);
  border-bottom: 1px solid var(--sage);
  padding-bottom: .15rem;
}
.tiles a:hover .sketch,
.tiles a:focus-visible .sketch { stroke: var(--rust); }
.tiles a:hover span,
.tiles a:focus-visible span {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ---------- Inner pages: header and footer ---------- */

.site-header .wrap {
  padding-block: 2.5rem 0;
  text-align: center;
}
.brand {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.1rem;
  padding: .4rem .9rem;
  border: 1px solid var(--ink);
}
.brand:hover,
.brand:focus-visible { border-color: var(--rust); }

.site-footer {
  margin-top: 3.5rem;
  padding-block: 0 2.5rem;
  text-align: center;
}
.copyright {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Inner pages: body ---------- */

.page-head {
  text-align: center;
  padding-block: 2.5rem 1.5rem;
}
.subtitle {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

.page-body { padding-bottom: 2rem; }

/* At a glance: a plain list above the opening, no box */
.with-aside { display: block; }
.facts {
  max-width: 40rem;
  margin: 0 auto 3rem;
}
.facts h2 {
  margin: 0 0 .75rem;
  font-family: var(--type);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dl { margin: 0; }
.facts dl > div { padding: .35rem 0; }
.facts dt {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.facts .actions { margin-top: .75rem; }
.status-open {
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0 0 .5rem;
}
.status-open::before {
  content: "● ";
  color: var(--sage);
}

.pull {
  margin: 2rem 0;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* Offer rows (tarot) */
.wide-section { max-width: 60rem; margin-inline: auto; }
.wide-section > h2 { text-align: center; }
.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
}
.offer {
  display: flex;
  flex-direction: column;
  border-top: 1px dashed var(--sage);
  padding-top: 1rem;
}
/* offers always sit in two columns: a 2 x 2 grid */

/* Links to the other pages, as the sketches on the homepage */
.more {
  max-width: 40rem;
  margin: 3.5rem auto 0;
}
.offer h3 { margin-bottom: .1rem; }
.offer .price {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .1rem;
}
.offer .meta {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.offer .desc { margin-bottom: .6rem; }
.offer .btn { align-self: flex-start; }

/* Phones: keep the 2 x 2 offer grid, with smaller text so titles fit */
@media (max-width: 39.99em) {
  .offers { gap: 1.5rem 1rem; }
  .offer h3 { font-size: 1.05rem; }
  .offer .price { font-size: 1.05rem; }
  .offer .meta { font-size: .7rem; letter-spacing: .02em; }
  .offer .desc { font-size: .95rem; }
}

/* Buttons: plain underlined text links, like the homepage */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sage);
  padding: 0 0 .15rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover,
.btn:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
}
.btn--ghost { color: var(--ink); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  margin-top: .75rem;
}

/* FAQ: plain questions, no dividers */
.faq details { padding: .5rem 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; }

/* Reach-out: no panel, just the form */
.reach-out {
  margin-top: 3rem;
  scroll-margin-top: 2rem;
}
.reach-out h2 { margin-top: 0; }
.form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.field { display: grid; gap: .35rem; }
.field label {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.field .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: .55rem .2rem;
}
.field input,
.field select { min-height: 2.8rem; }
.field textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { min-height: 1.5rem; margin: 0; }
.form-status.is-success { color: var(--sage-dark); font-weight: 700; }
.form-status.is-error { color: var(--rust); }
.small { font-size: .95rem; color: var(--muted); }

.label {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding-block: 3rem 2rem;
}
.not-found h1 { margin-bottom: .5em; }
.not-found .actions {
  justify-content: center;
  gap: 1.5rem;
}
.not-found .back {
  margin-top: 2.5rem;
}

/* ---------- Subscribe ---------- */

.signup { margin: 1.5rem 0 .75rem; min-height: 58px; }

.follow {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.follow li { padding: .6rem 0; }
.follow-label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.follow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.follow-note {
  display: block;
  font-size: .95rem;
  color: var(--muted);
}
.handle {
  font-family: var(--type);
  font-size: .95rem;
  border: 1px solid var(--ink);
  padding: .1rem .4rem;
  overflow-wrap: anywhere;
}
.copy {
  font-family: var(--type);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: .2rem .6rem;
  cursor: pointer;
}
.copy:hover,
.copy:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-top: 2.5rem;
}
.section-head h2 { margin: 0 0 .5rem; }

.posts {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.posts li { padding: .7rem 0; }
.post-date {
  display: block;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-title {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  border: 0;
}
.post-dek {
  display: block;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
