/* Six String Hayride — Blog styles
   Palette: parchment cream, barn red, brass, walnut, charcoal
   Type: Rye (display, woodtype western) + Lora (body) + Special Elite (typewriter meta) */

@import url('https://fonts.googleapis.com/css2?family=Rye&family=Lora:ital,wght@0,400;0,600;1,400&family=Special+Elite&display=swap');

:root {
  --cream: #F2E8D5;
  --cream-deep: #E9DBC0;
  --walnut: #3D2B1F;
  --barn-red: #8B2E2E;
  --barn-red-deep: #6E2222;
  --brass: #B8894A;
  --charcoal: #2A211A;
  --line: rgba(61, 43, 31, 0.18);
}

* { box-sizing: border-box; }

body.hayride-blog {
  margin: 0;
  background: var(--cream);
  background-image:
    radial-gradient(rgba(61,43,31,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  color: var(--walnut);
  font-family: 'Lora', serif;
  line-height: 1.65;
}

.hayride-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.hayride-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 3px solid var(--walnut);
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
}

.hayride-nav a {
  color: var(--barn-red);
  text-decoration: none;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hayride-nav a:hover { text-decoration: underline; }

.hayride-title {
  font-family: 'Rye', cursive;
  font-size: 2.1rem;
  color: var(--barn-red);
  margin: 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.08);
}

.hayride-eyebrow {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  display: block;
  margin-bottom: 0.35rem;
}

.hayride-intro {
  color: var(--walnut);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

/* Recipe-card style post preview — perforated top edge like a torn recipe card */
.hayride-card {
  position: relative;
  background: #FBF6EB;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(61,43,31,0.08);
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hayride-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 6px;
  background-image: repeating-radial-gradient(circle at 6px 0, transparent 0 3px, var(--cream) 3px 4px);
  background-size: 12px 6px;
  background-repeat: repeat-x;
}

.hayride-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0 rgba(61,43,31,0.12);
}

.hayride-card h2 {
  font-family: 'Rye', cursive;
  font-size: 1.4rem;
  color: var(--barn-red-deep);
  margin: 0.15rem 0 0.5rem;
  line-height: 1.3;
}

.hayride-card .hayride-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.03em;
}

.hayride-card p {
  margin: 0.75rem 0 0;
  color: var(--walnut);
}

.hayride-empty {
  font-family: 'Special Elite', monospace;
  color: var(--brass);
  border: 1px dashed var(--line);
  padding: 2rem;
  text-align: center;
  border-radius: 2px;
}

.hayride-subscribe-box {
  background: #FBF6EB;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.hayride-subscribe-box label {
  font-family: 'Special Elite', monospace;
  font-size: 0.78rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hayride-subscribe-box input[type="email"] {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  color: var(--walnut);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
}

/* Single post view */
.hayride-post h1 {
  font-family: 'Rye', cursive;
  font-size: 2rem;
  color: var(--barn-red-deep);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.25;
}

.hayride-post .hayride-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.78rem;
  color: var(--brass);
  margin-bottom: 2rem;
  display: block;
}

.hayride-post-body {
  font-size: 1.05rem;
}
.hayride-post-body img { max-width: 100%; border-radius: 2px; }
.hayride-post-body h2, .hayride-post-body h3 {
  font-family: 'Rye', cursive;
  color: var(--barn-red-deep);
}
.hayride-post-body a { color: var(--barn-red); }

.hayride-episode-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.1rem;
  background: var(--barn-red);
  color: var(--cream) !important;
  text-decoration: none;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  border-radius: 2px;
}
.hayride-episode-link:hover { background: var(--barn-red-deep); }

.hayride-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  color: var(--brass);
  text-decoration: none;
}
.hayride-back:hover { text-decoration: underline; }

/* Comments */
.hayride-comments {
  margin-top: 3.5rem;
  border-top: 3px solid var(--walnut);
  padding-top: 1.5rem;
}
.hayride-comments h3 {
  font-family: 'Rye', cursive;
  color: var(--barn-red-deep);
  font-size: 1.3rem;
}
.hayride-comment {
  background: #FBF6EB;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.hayride-comment .hayride-comment-name {
  font-family: 'Rye', cursive;
  color: var(--barn-red-deep);
  font-size: 1rem;
}
.hayride-comment .hayride-comment-date {
  font-family: 'Special Elite', monospace;
  font-size: 0.68rem;
  color: var(--brass);
  margin-left: 0.5rem;
}
.hayride-comment p { margin: 0.5rem 0 0; }

.hayride-comment-form {
  margin-top: 2rem;
  background: #FBF6EB;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
}
.hayride-comment-form label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0.3rem;
}
.hayride-comment-form label:first-child { margin-top: 0; }
.hayride-comment-form input[type="text"],
.hayride-comment-form input[type="email"],
.hayride-comment-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  color: var(--walnut);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
}
.hayride-comment-form .hayride-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hayride-comment-form .hayride-checkbox-row label {
  margin: 0;
  text-transform: none;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--walnut);
}

/* Admin */
.hayride-admin {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  font-family: 'Lora', serif;
  color: var(--walnut);
}

.hayride-admin label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.78rem;
  color: var(--brass);
  margin: 1.1rem 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hayride-admin input[type="text"],
.hayride-admin input[type="password"],
.hayride-admin input[type="url"],
.hayride-admin textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #FBF6EB;
  color: var(--walnut);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
}

.hayride-admin textarea { resize: vertical; }

.hayride-admin .hayride-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.hayride-admin .hayride-checkbox-row label { margin: 0; }

.hayride-btn {
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  padding: 0.65rem 1.3rem;
  border: none;
  border-radius: 2px;
  background: var(--barn-red);
  color: var(--cream);
  cursor: pointer;
}
.hayride-btn:hover { background: var(--barn-red-deep); }
.hayride-btn.secondary {
  background: transparent;
  color: var(--walnut);
  border: 1px solid var(--line);
}
.hayride-btn.danger {
  background: var(--charcoal);
}

.hayride-post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.hayride-post-row .hayride-post-row-title {
  font-family: 'Rye', cursive;
  color: var(--barn-red-deep);
  font-size: 1.1rem;
}
.hayride-post-row .hayride-post-row-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;
  color: var(--brass);
}
.hayride-post-row-actions button {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  margin-left: 0.4rem;
  cursor: pointer;
  color: var(--walnut);
}

.hayride-status-pill {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}
.hayride-status-pill.draft { background: var(--line); color: var(--walnut); }
.hayride-status-pill.published { background: var(--barn-red); color: var(--cream); }

.hayride-msg {
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 2px;
  margin-top: 1rem;
}
.hayride-msg.ok { background: rgba(139,46,46,0.1); color: var(--barn-red-deep); }
.hayride-msg.err { background: rgba(139,46,46,0.18); color: var(--barn-red-deep); }
