/*
Theme Name: Animas Press
Theme URI: https://animaspress.example
Author: Animas Press
Author URI: https://animaspress.example
Description: A quiet single-page theme for a small literary imprint with a woodcut, letterpress character. Black ink on warm paper, antique type, one restrained accent. Edit the content block at the top of index.php to make it yours.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animas-press
*/

/* ---------- Tokens ---------- */
:root {
  --paper:   #F3EFE6;   /* warm pressed paper */
  --paper-2: #EAE3D5;   /* faint panel */
  --ink:     #1A1815;   /* warm near-black ink */
  --muted:   #574F45;   /* secondary text */
  --faint:   #8C8475;   /* labels, captions */
  --hair:    #D9D1C1;   /* hairlines */
  --blood:   #7C1F1F;   /* oxblood — used sparingly */

  --measure: 660px;
  --display: "IM Fell English SC", Georgia, "Times New Roman", serif;
  --body:    "EB Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper vignette, no image — keeps it light */
  background-image: radial-gradient(120% 80% at 50% 0%, #F7F3EB 0%, var(--paper) 42%, #ECE5D7 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blood); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 28px; }
.section { padding: 58px 0; }
.section + .section { border-top: 1px solid var(--hair); }

/* Antique small-caps section label */
.eyebrow {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-align: center;
  margin: 0 0 26px;
}

/* ---------- Masthead ---------- */
.masthead { padding: 52px 0 0; text-align: center; }
.masthead .logo { width: min(360px, 78vw); margin: 0 auto; }
.nav {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.nav a { color: var(--muted); padding: 0 4px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .sep { color: var(--hair); padding: 0 10px; }

/* Ornamental divider — the antique-press signature */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 34px auto 0;
  max-width: 240px;
  color: var(--blood);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--hair) 60%);
}
.rule::after { background: linear-gradient(90deg, var(--hair) 40%, transparent); }
.rule span { font-size: 12px; line-height: 1; transform: translateY(-1px); }

/* ---------- Ethos / lede ---------- */
.ethos { text-align: center; padding-top: 50px; }
.lede {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.42;
  color: var(--ink);
  margin: 0 auto;
  max-width: 24ch;
}

/* ---------- Prose ---------- */
.prose p { margin: 0 0 18px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.h-sm {
  font-family: var(--body);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--ink);
}

/* ---------- Current title ---------- */
.title-row { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }
.cover {
  width: 162px;
  flex: 0 0 auto;
  border: 1px solid var(--hair);
  background: var(--paper-2);
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* Real cover: show whole image, no crop */
.cover-img {
  width: 168px;
  flex: 0 0 auto;
  border: 1px solid var(--hair);
  box-shadow: 0 10px 26px rgba(26, 24, 21, 0.28);
}
.title-meta { flex: 1 1 260px; }
.title-meta h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.18;
  margin: 0 0 4px;
}
.byline { color: var(--muted); margin: 0 0 16px; font-style: italic; }
.spec {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: 18px 0 0;
}
.spec span { color: var(--muted); }

.status {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--blood);
  margin: 14px 0 0;
}

/* ---------- Inside the collection ---------- */
.stories { margin: 4px 0 0; }
.story { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--hair); }
.story:first-child { border-top: none; padding-top: 2px; }
.story .num {
  font-family: var(--display);
  color: var(--blood);
  font-size: 15px;
  letter-spacing: 0.06em;
  flex: 0 0 28px;
  padding-top: 5px;
}
.story-body h4 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 5px;
  line-height: 1.2;
}
.story-body p { margin: 0; color: var(--muted); }

/* ---------- Author ---------- */
.author-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 14px;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .h-sm { font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 38px 0 54px;
  text-align: center;
  color: var(--faint);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.site-footer a { color: var(--muted); }

/* ---------- A11y ---------- */
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .section { padding: 46px 0; }
  .masthead { padding-top: 40px; }
  .cover { width: 136px; }
  .cover-img { width: 140px; }
}
