/* ==========================================================================
   Novelty Editing — site stylesheet
   Shared across all public pages (home, about, hire-me, blog, portfolio, books)
   Dark literary theme + white header band with the quill artwork.
   Swap --accent to #ff5a1f for the orange variant.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Ichimaru';            /* wordmark / brand */
  src: url('/assets/fonts/ichimaru.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Revolto';             /* section + feature headers */
  src: url('/assets/fonts/revolto.otf') format('opentype');
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --bg:        #0f0f12;
  --surface:   #15161c;
  --surface-2: #1b1c24;
  --line:      #25262f;
  --ink:       #e9e9ec;
  --muted:     #a2a2aa;
  --accent:    #b73535;   /* literary red — change to #ff5a1f for orange */
  --accent-ink:#ffffff;
  --hero-bg:   #ffffff;

  --font-body:   system-ui, 'Segoe UI', Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  --font-brand:  'Ichimaru', Georgia, 'Times New Roman', serif;
  --font-header: 'Revolto', 'Segoe UI', sans-serif;

  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* 3. Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 4. Header bar (white) --------------------------------------------------- */
.site-header {
  background: var(--hero-bg);
  border-bottom: 1px solid #ececec;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 46px; height: auto; }
.brand__name {
  font-family: var(--font-brand);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
  color: #0b0d10;
  letter-spacing: .3px;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 24px); flex-wrap: wrap; }
.nav a {
  color: #0e1114;
  font-family: var(--font-brand);
  font-size: clamp(15px, 2.2vw, 18px);
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.is-active { color: var(--accent); }

/* shared button */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--accent); }

/* 5. Home hero (white band + quill art) ----------------------------------- */
.hero {
  background: var(--hero-bg);
  border-bottom: 1px solid #ececec;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 24px;
}
.hero__copy h1 {
  font-family: var(--font-header);
  color: #0b0d10;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.hero__copy .tagline {
  display: inline-block;
  font-family: var(--font-brand);
  color: var(--accent);
  font-size: clamp(16px, 2.4vw, 20px);
  margin-bottom: 14px;
}
.hero__copy p { color: #3b4048; margin: 0 0 20px; max-width: 48ch; }
.hero__art { margin: 0; }
.hero__art img { width: 100%; height: auto; }

/* 6. Sections / typography ------------------------------------------------ */
.section { padding: 56px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: 36px; }
.section__head h2 {
  font-family: var(--font-header);
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 8px;
}
.section__head p { color: var(--muted); margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3, h4 { font-family: var(--font-header); color: var(--ink); line-height: 1.2; }
.lead { font-size: 1.1rem; color: #c7ccd4; max-width: 70ch; }

/* 7. Interior page header strip ------------------------------------------ */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 6px; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1.1em; color: #cdd2da; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.6rem; }
.prose a { color: var(--accent); text-decoration: underline; }

/* 8. Intro (about / home) ------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.portrait { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

/* 9. Services grid -------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 10. Free-sample banner -------------------------------------------------- */
.offer {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.offer h2 { margin: 0 0 10px; }
.offer p { color: var(--muted); max-width: 60ch; margin: 0 auto 18px; }

/* 11. Testimonials -------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}
.quote blockquote { margin: 0 0 12px; color: #d6dbe2; font-style: italic; }
.quote cite { color: var(--accent); font-style: normal; font-weight: 700; }
.quote cite span { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* 12. Pricing tiers ------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.tier--popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.tier__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.tier h3 { margin: 0 0 2px; font-size: 1.3rem; }
.tier .tier__sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.tier .price { font-family: var(--font-header); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.tier .price small { font-size: .85rem; color: var(--muted); display: block; margin-top: 4px; font-family: var(--font-body); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.tier li { padding: 7px 0 7px 24px; position: relative; color: #cdd2da; font-size: .92rem; border-top: 1px solid var(--line); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }
.tier .btn { margin-top: auto; text-align: center; }

/* 13. Forms --------------------------------------------------------------- */
.form { max-width: 620px; }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.form label .req { color: var(--accent); }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .hint { color: var(--muted); font-size: .85rem; margin: -8px 0 16px; }

/* 13b. Rate calculator ---------------------------------------------------- */
.calc { display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.calc__inputs {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.calc__out {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.calc__label { text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; color: var(--muted); }
.calc__amount { font-family: var(--font-header); font-size: clamp(2rem, 7vw, 2.8rem); color: var(--accent); line-height: 1.1; margin-top: 6px; }
.calc__rate { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.calc .field { margin-bottom: 16px; }
.calc .field:last-child { margin-bottom: 0; }
.calc label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.calc input, .calc select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); padding: 11px 12px; font: inherit;
}
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* 14. Blog list ----------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.post:hover { transform: translateY(-3px); border-color: var(--accent); }
.post .cats { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.post h3 { margin: 0 0 8px; font-size: 1.2rem; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--accent); text-decoration: none; }
.post p { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.post .date { color: #74747e; font-size: .82rem; }

/* 15. Coming soon --------------------------------------------------------- */
.coming { text-align: center; padding: 90px 20px; }
.coming img { width: 92px; margin: 0 auto 20px; opacity: .9; }
.coming h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 10px; }
.coming p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }

/* 16. Footer -------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px;
}
.site-footer h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin: 0 0 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer .foot-brand img { width: 40px; }
.site-footer .foot-brand span { font-family: var(--font-brand); font-size: 1.4rem; color: var(--ink); }
.site-footer .legal { color: #6c6c76; font-size: .82rem; }
.foot-bottom { border-top: 1px solid var(--line); text-align: center; padding: 16px; color: #6c6c76; font-size: .82rem; }

/* 17. Utilities ----------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }

/* 18. Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .intro { grid-template-columns: 1fr; }
  .cards, .pricing { grid-template-columns: 1fr; }
  .quotes, .posts { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { gap: 14px; }
}
