:root {
  /* Palette */
  --umber:     #554029;
  --night:     #0b0b10;
  --wine:      #5a0f1b;
  --raspberry: #8e2a3a;
  --blush:     #f2b6c6;
  --gold:      #c4a15a;
  --cream:     #efe7dc;
  /* Greens kept from the original site */
  --moss:      #585c46;
  --sage:      #b6bfb0;

  --title: "Playfair Display", Georgia, serif;
  --script: "Allura", "Playfair Display", cursive;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--wine);
  border-bottom: 1px solid rgba(196,161,90,.35);
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 6vw, 90px);
}
.logo { font-family: var(--title); font-weight: 600; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.nav { display: flex; gap: clamp(24px, 4vw, 56px); }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream); transition: color .2s; }
.nav a:hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 76px);
  display: flex; align-items: center;
  padding: 80px clamp(16px, 8vw, 140px);
  background:
    linear-gradient(90deg, rgba(11,11,16,.85) 0%, rgba(11,11,16,.35) 55%, rgba(11,11,16,0) 100%),
    url("images/hero.jpg") 75% 22% / cover no-repeat,
    #0d110d;
}
.hero-inner { max-width: 520px; }
.hero h1 { font-family: var(--title); font-weight: 400; font-size: clamp(52px, 7vw, 88px); line-height: 1; margin: 0 0 8px; color: var(--cream); }
.hero .tagline { font-family: var(--script); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.2; margin: 0 0 40px; color: var(--blush); }

.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; padding: 14px 36px; border-radius: 100px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-raspberry { background: var(--raspberry); color: var(--cream); }
.btn-raspberry:hover { background: var(--wine); border-color: var(--gold); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--night); }

/* ---------- Shared section bits ---------- */
section { padding: 100px clamp(16px, 5vw, 72px); }
h2 { font-family: var(--title); font-weight: 400; font-size: clamp(40px, 5vw, 56px); letter-spacing: .06em; margin: 0; text-transform: uppercase; }
.flourish { display: block; width: 64px; height: 1px; background: var(--gold); margin: 22px auto 0; }
.photo { background: #16120f; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1280px; margin: 0 auto; }
.about-text { text-align: center; padding: 20px 0; }
.about h2 { color: var(--gold); }
.about .flourish { margin-bottom: 36px; }
.about-text p { max-width: 400px; margin: 0 auto 36px; color: var(--cream); font-size: 15px; line-height: 1.9; }
.about .photo img { object-position: 50% 30%; }
.about .photo { min-height: 520px; border: 1px solid rgba(196,161,90,.4); padding: 10px; background: transparent; }
.about .photo img { min-height: 500px; }

/* ---------- Projects ---------- */
.projects { background: var(--night); text-align: center; padding-top: 30px; }
.projects h2 { color: var(--cream); }
.projects .flourish { margin-bottom: 56px; }
.project { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1280px; margin: 0 auto; }
.project-card {
  position: relative; justify-self: center; width: 100%; max-width: 480px;
  background: var(--cream); background-clip: padding-box;
  padding: clamp(40px, 5vw, 58px) clamp(24px, 4vw, 48px);
  border: 30px solid transparent;
  border-image: url("images/thorn-frame.svg") 30 round;
  margin-bottom: 56px;
}
/* blood running down from the top of the frame */
.project-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: url("images/drips-inside.svg") left top repeat-x;
  pointer-events: none;
}
/* blood dripping off the bottom thorns */
.project-card::after {
  content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 56px; margin-top: 2px;
  background: url("images/drips-below.svg") 12px top repeat-x;
  pointer-events: none;
}
.project h3 { font-family: var(--title); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; color: var(--wine); margin: 0 0 14px; }
.project .status { font-family: var(--type); font-size: 17px; color: var(--wine); margin: 0; letter-spacing: .04em; }
.project .photo { aspect-ratio: 4 / 5; max-height: 680px; justify-self: center; width: 100%; max-width: 560px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }

.no-photo { grid-template-columns: 1fr !important; }
.no-photo .photo { display: none; }

/* ---------- Contact ---------- */
.contact { background: var(--moss); text-align: center; }
.contact h2 { color: var(--cream); }
.contact .flourish { margin-bottom: 44px; }
.contact .lede { font-family: var(--type); font-size: clamp(16px, 1.8vw, 19px); color: var(--cream); margin: 0 0 40px; }
form.contact-form { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
input, textarea {
  font: inherit; font-size: 15px; color: var(--night);
  background: var(--cream); border: 1px solid transparent; border-radius: 2px;
  padding: 10px 12px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--blush); }
.contact-form button {
  grid-column: 1 / -1; justify-self: center; margin-top: 6px;
  font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); background: var(--wine); border: 1px solid var(--wine); border-radius: 100px;
  padding: 14px 54px; cursor: pointer; transition: border-color .2s, background .2s;
}
.contact-form button:hover { background: var(--raspberry); border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }

/* ---------- Mailing list ---------- */
.mailing { background: var(--wine); text-align: center; padding-bottom: 90px; }
.mailing .script { font-family: var(--script); font-size: 38px; color: var(--blush); margin: 0 0 2px; }
.mailing h2 { color: var(--cream); font-size: clamp(30px, 3.5vw, 40px); }
.mailing .flourish { margin-bottom: 40px; }
form.signup {
  max-width: 680px; margin: 0 auto; background: var(--night); border: 1px solid rgba(196,161,90,.45);
  padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 16px 18px; text-align: left; align-items: end;
}
.signup input[type=email] { background: var(--cream); }
.signup button {
  font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--night); background: var(--gold); border: 0; border-radius: 2px; padding: 0 34px; height: 43px; cursor: pointer;
}
.signup button:hover { background: var(--blush); }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--cream); }
.check input { width: 15px; height: 15px; accent-color: var(--raspberry); }

.form-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--cream); min-height: 1em; text-align: center; }
.form-note.error { color: var(--blush); }
button:disabled { opacity: .6; cursor: wait; }

footer { text-align: center; padding: 28px 16px 32px; font-family: var(--type); font-size: 13px; color: var(--sage); background: var(--night); }

/* ---------- Tiny Tales page ---------- */
.nav a[aria-current=page] { color: var(--gold); }
.page-hero {
  text-align: center; padding: 110px 16px 90px;
  background:
    linear-gradient(180deg, rgba(11,11,16,.55), rgba(11,11,16,.92)),
    url("images/hero.jpg") 75% 30% / cover no-repeat, var(--night);
}
.vine-divider { height: 46px; background: url("images/vine.svg") center / auto 46px repeat-x var(--night); margin-top: -23px; position: relative; }
.page-hero h1 { font-family: var(--title); font-weight: 400; font-size: clamp(48px, 7vw, 80px); margin: 0; color: var(--cream); }
.page-hero .script { font-family: var(--script); font-size: clamp(30px, 3.4vw, 40px); color: var(--blush); margin: 6px 0 0; }

.tales-section h2, .stories-section h2 { text-align: center; color: var(--gold); font-size: clamp(32px, 4vw, 44px); }
.tales-section .flourish, .stories-section .flourish { margin-bottom: 48px; }
.stories-section { background: var(--umber); }

.tales { max-width: 720px; margin: 0 auto; display: grid; gap: 40px; }
.tale {
  background: var(--cream); color: var(--night);
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
  border: 1px solid var(--gold); outline: 1px solid rgba(239,231,220,.25); outline-offset: 8px;
}
.tale h3 { font-family: var(--title); font-weight: 600; font-size: clamp(24px, 3vw, 30px); color: var(--wine); margin: 0 0 6px; }
.tale time { display: block; font-family: var(--type); font-size: 14px; color: var(--raspberry); margin-bottom: 22px; }
.tale p { font-family: var(--title); font-size: 18px; line-height: 1.75; margin: 0 0 16px; }
.tale p:last-child { margin-bottom: 0; }

.story-list { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 18px; }
.story-list li { border-bottom: 1px solid rgba(196,161,90,.45); padding: 0 0 18px; }
.story-list a { display: block; text-decoration: none; }
.story-list .story-title { font-family: var(--title); font-size: clamp(22px, 2.6vw, 28px); color: var(--cream); transition: color .2s; }
.story-list a:hover .story-title { color: var(--blush); }
.story-list .story-meta { display: block; font-family: var(--type); font-size: 15px; color: var(--gold); margin-top: 6px; }
.story-list .story-blurb { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--cream); }

/* Shown only while a list has no entries yet */
.empty { display: none; text-align: center; font-family: var(--type); font-size: 17px; color: var(--gold); margin: 0; }
.tales:not(:has(.tale)) + .empty, .story-list:not(:has(li)) + .empty { display: block; }
.tales:not(:has(.tale)), .story-list:not(:has(li)) { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--wine); padding: 8px 0 16px; display: none; border-bottom: 1px solid rgba(196,161,90,.35);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; font-size: 14px; }
  .hero {
    align-items: flex-end; text-align: center; justify-content: center; padding-bottom: 72px;
    background:
      linear-gradient(180deg, rgba(11,11,16,0) 30%, rgba(11,11,16,.85) 85%),
      url("images/hero.jpg") 70% 30% / cover no-repeat, #0d110d;
  }
  .about, .project { grid-template-columns: 1fr; }
  .about .photo { order: -1; min-height: 0; }
  .about .photo img { min-height: 0; aspect-ratio: 4 / 5; }
  .project .photo { order: -1; width: 100%; }
  form.contact-form { grid-template-columns: 1fr; }
  form.signup { grid-template-columns: 1fr; }
  .signup button { width: 100%; }
}
