/* ===================================================================
   redversed — shared stylesheet
   grounded but whimsical. serious but not. dialectical.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Caveat:wght@400;600&display=swap');

:root {
  --cream: #f4ecd8;
  --cream-dark: #e8dcc0;
  --paper: #f8f2e0;
  --red-deep: #8b2331;
  --red: #b13027;
  --red-muted: #c44a3f;
  --green-deep: #2f4a2c;
  --green: #3d6b3a;
  --green-bright: #5c8c52;
  --ink: #2a2118;
  --ink-soft: #4a3f30;
  --gold: #c9a961;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--cream);
  /* subtle paper texture — SVG-based, no external images needed */
  background-image:
    radial-gradient(ellipse at top left, rgba(177, 48, 39, 0.04), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(61, 107, 58, 0.05), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ============ LAYOUT ============ */

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 40px 80px;
  position: relative;
}

/* decorative red frame bar on the left like an old book spine */
.page::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to bottom, var(--red-deep), var(--red), var(--red-deep));
  box-shadow: 2px 0 8px rgba(139, 35, 49, 0.2);
}

/* ============ HEADER ============ */

header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink-soft);
  position: relative;
}

header::after {
  content: "❦";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 14px;
  color: var(--red-deep);
  font-size: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  font-style: italic;
  color: var(--red-deep);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo .dot {
  color: var(--green-deep);
}

.tagline {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============ NAV ============ */

nav {
  margin-top: 28px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  letter-spacing: 0.5px;
}

nav a {
  color: var(--green-deep);
  text-decoration: none;
  padding: 4px 14px;
  margin: 0 2px;
  font-style: italic;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--red-deep);
  border-bottom: 1px solid var(--red-deep);
}

nav a.current {
  color: var(--red-deep);
  border-bottom: 1px solid var(--red-deep);
}

nav .sep {
  color: var(--ink-soft);
  opacity: 0.5;
  font-family: 'EB Garamond', serif;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: 42px;
  font-style: italic;
  color: var(--red-deep);
  margin-bottom: 20px;
  line-height: 1.15;
}

h2 {
  font-size: 30px;
  color: var(--green-deep);
  margin-top: 40px;
  margin-bottom: 16px;
  font-style: italic;
}

h3 {
  font-size: 22px;
  color: var(--ink);
  margin-top: 30px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 18px;
  text-align: justify;
  hyphens: auto;
}

p.lead {
  font-size: 21px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 30px;
}

a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green-deep);
}

em { font-style: italic; }
strong { font-weight: 600; color: var(--red-deep); }

blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 24px;
  margin: 24px 10px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 20px;
}

hr {
  border: 0;
  text-align: center;
  margin: 40px 0;
  overflow: visible;
}

hr::before {
  content: "✦ · ✦ · ✦";
  color: var(--red-deep);
  letter-spacing: 8px;
  font-size: 14px;
}

/* ============ FOOTER ============ */

footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-soft);
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--ink-soft);
}

footer .cc {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  margin-top: 8px;
  font-style: italic;
  opacity: 0.75;
}

/* ============ COMPONENTS ============ */

/* Decorative accent box — like a wax seal or stamp */
.seal {
  display: inline-block;
  border: 2px solid var(--red-deep);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  line-height: 86px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  color: var(--red-deep);
  font-size: 26px;
  transform: rotate(-8deg);
  background: rgba(177, 48, 39, 0.05);
  margin: 20px 0;
}

/* Marbled divider accent */
.marble-divider {
  height: 12px;
  margin: 40px 0;
  background:
    repeating-linear-gradient(
      45deg,
      var(--red-deep) 0, var(--red-deep) 2px,
      transparent 2px, transparent 8px,
      var(--green-deep) 8px, var(--green-deep) 10px,
      transparent 10px, transparent 16px
    );
  opacity: 0.6;
  border-radius: 2px;
}

/* poem block */
.poem {
  background: rgba(248, 242, 224, 0.7);
  padding: 30px 36px;
  margin: 30px 0;
  border-left: 3px solid var(--green-deep);
  border-right: 1px solid var(--cream-dark);
  box-shadow:
    2px 2px 0 var(--cream-dark),
    4px 4px 0 rgba(139, 35, 49, 0.1);
  position: relative;
}

.poem-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--red-deep);
  margin-bottom: 16px;
}

.poem-body {
  font-family: 'EB Garamond', serif;
  white-space: pre-wrap;
  line-height: 1.8;
  text-align: left;
  font-size: 18px;
}

.poem-meta {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 16px;
  text-align: right;
}

/* art gallery */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.art-card {
  background: var(--paper);
  padding: 14px 14px 20px;
  box-shadow:
    2px 2px 0 var(--cream-dark),
    4px 4px 10px rgba(42, 33, 24, 0.12);
  transform: rotate(-0.5deg);
  transition: transform 0.3s ease;
}

.art-card:nth-child(even) { transform: rotate(0.7deg); }
.art-card:nth-child(3n) { transform: rotate(-1deg); }

.art-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.art-card .frame {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'Caveat', cursive;
  font-size: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--ink-soft);
}

.art-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card .caption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--red-deep);
  text-align: center;
}

.art-card .date {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 2px;
}

/* guestbook entries */
.entry {
  background: var(--paper);
  padding: 20px 24px;
  margin: 20px 0;
  border-left: 2px solid var(--red);
  font-family: 'EB Garamond', serif;
  box-shadow: 1px 1px 0 var(--cream-dark);
}

.entry .meta {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.entry .meta .name {
  color: var(--red-deep);
  font-weight: 600;
}

.entry .msg {
  font-size: 17px;
  line-height: 1.6;
}

/* form styling */
.guestform {
  background: rgba(248, 242, 224, 0.6);
  padding: 24px;
  border: 1px dashed var(--red-deep);
  margin: 30px 0;
}

.guestform label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--green-deep);
  margin-bottom: 4px;
  margin-top: 12px;
}

.guestform input, .guestform textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  padding: 8px 10px;
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  color: var(--ink);
}

.guestform input:focus, .guestform textarea:focus {
  outline: 2px solid var(--red-muted);
  background: var(--paper);
}

.guestform textarea {
  resize: vertical;
  min-height: 90px;
}

.guestform button {
  background: var(--red-deep);
  color: var(--cream);
  border: none;
  padding: 10px 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 2px 2px 0 var(--ink-soft);
}

.guestform button:hover {
  background: var(--green-deep);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink-soft);
}

.guestform button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-soft);
}

/* bio box on home page */
.bio-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  margin: 30px 0;
  padding: 28px;
  background: rgba(248, 242, 224, 0.5);
  border: 1px solid var(--cream-dark);
  position: relative;
}

.bio-box::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid var(--red-deep);
  pointer-events: none;
  z-index: -1;
}

.bio-portrait {
  width: 140px;
  height: 180px;
  background: linear-gradient(135deg, var(--red-muted), var(--green-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--ink);
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text {
  font-size: 17px;
}

.bio-text h3 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--red-deep);
}

/* responsive */
@media (max-width: 640px) {
  .page { padding: 30px 22px 60px; }
  .logo { font-size: 42px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  nav { font-size: 15px; }
  nav a { padding: 3px 8px; }
  .bio-box { grid-template-columns: 1fr; text-align: center; }
  .bio-portrait { margin: 0 auto; }
}

/* little floating marginalia */
.margin-note {
  font-family: 'Caveat', cursive;
  color: var(--red);
  font-size: 17px;
  transform: rotate(-3deg);
  display: inline-block;
  margin: 8px 0;
}
