/* ===== Rozanne Myburgh — site styles =====
   Colours come from your watercolour artwork; change them here to restyle the site. */
:root {
  --paper: #ffffff;
  --tint: #fbf6f3;
  --ink: #1f1d1d;
  --muted: #5f5a58;
  --pink: #c8306d;
  --pink-dark: #a2215a;
  --green: #5b9b2f;
  --blue: #2f7fb8;
  --orange: #e48a2a;
  --line: #ece3de;
  --radius: 12px;
  --display: "Josefin Sans", "Century Gothic", sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; overflow-x: hidden; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pink-dark); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.script { font-family: var(--script); font-size: 1.6rem; color: var(--pink); margin: 0; line-height: 1; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-family: var(--display); font-weight: 300; font-size: 1.35rem; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.brand span { font-family: var(--script); font-size: 1.6rem; letter-spacing: 0; text-transform: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: .98rem; letter-spacing: .04em; }
.nav-links a:hover { color: var(--pink); }
.nav-links .nav-cta { background: var(--pink); color: #fff; padding: .5rem 1.1rem .4rem; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--pink-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ----- Buttons ----- */
.btn { display: inline-block; padding: .8rem 1.5rem .7rem; border-radius: 999px; font-family: var(--display); font-weight: 600; letter-spacing: .05em; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .55rem 1.1rem .45rem; font-size: .88rem; background: var(--ink); color: #fff; }
.btn-small:hover { background: var(--pink); }

/* ----- Hero ----- */
.hero { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-art { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: left top; }
.hero-text { position: relative; width: min(600px, 100% - 2.5rem); margin: clamp(-3rem, -2vw, 0rem) max(1.25rem, calc((100% - 1140px) / 2)) 0 auto; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ----- Sections ----- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 auto 2.5rem; }
.strip { width: 100%; height: clamp(70px, 11vw, 150px); object-fit: cover; object-position: center bottom; display: block; margin: 0; }
.strip-flip { transform: scaleX(-1); }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: 12px 12px 0 var(--green); }
.facts { list-style: none; padding: 1.1rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.facts li { padding: .25rem 0; color: var(--muted); }
.facts strong { color: var(--ink); }

/* ----- Services ----- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(60, 30, 40, .07); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.service-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); font-size: .96rem; }
.service-meta { font-size: .85rem !important; color: var(--green) !important; font-weight: 700; margin-top: auto; }
.service .btn { align-self: flex-start; }

/* ----- Projects ----- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; align-items: start; }
.project { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project summary { list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project summary img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project summary .p-date, .project summary h3 { padding: 0 1.2rem; }
.project summary .p-date { display: block; margin-top: 1rem; }
.project summary h3 { font-size: 1.1rem; margin: .2rem 0 1rem; position: relative; padding-right: 2.4rem; }
.project summary h3::after { content: "+"; position: absolute; right: 1.2rem; top: -.1rem; font-size: 1.4rem; color: var(--pink); font-weight: 300; }
.project[open] summary h3::after { content: "–"; }
.project > p { padding: 0 1.2rem 1.2rem; margin: 0; color: var(--muted); font-size: .95rem; }
.project summary:hover h3 { color: var(--pink-dark); }
.p-date { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }

/* ----- Books ----- */
.cover { aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; box-shadow: 5px 7px 16px rgba(40, 20, 30, .22), inset 6px 0 0 rgba(0,0,0,.12); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; background: url("../images/strip-top.webp") center / 300% auto; mix-blend-mode: soft-light; opacity: .9; }
.cover span { position: relative; font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.cover small { position: relative; font-size: .72rem; opacity: .9; margin-top: .3rem; }
.c-1 { background: linear-gradient(160deg, #e0628f, var(--pink-dark)); }
.c-2 { background: linear-gradient(160deg, #f2a64b, #c9561f); }
.c-3 { background: linear-gradient(160deg, #8cc152, #3f7a22); }
.c-4 { background: linear-gradient(160deg, #e2574c, #9c2a28); }
.c-5 { background: linear-gradient(160deg, #4d9ad6, #1f5d8f); }
.c-6 { background: linear-gradient(160deg, #6c6bc4, #3b3a85); }
.c-7 { background: linear-gradient(160deg, #c89b4a, #7d5a1d); }
.c-8 { background: linear-gradient(160deg, #3fa7a0, #1e6a64); }
.c-9 { background: linear-gradient(160deg, #b25fae, #6d2a6a); }
.c-10 { background: linear-gradient(160deg, #46526b, #232a3a); }
.book-feature { display: grid; grid-template-columns: 200px 1fr; gap: 2.2rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 6px 24px rgba(60, 30, 40, .07); max-width: 900px; margin: 0 auto; }
.book-feature p:not(.p-date) { color: var(--muted); }
.books-sub { text-align: center; margin: 3.2rem 0 1.6rem; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--muted); }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2rem 1.5rem; }
.book .cover { margin-bottom: 1rem; }
.book p { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.book a { font-weight: 700; font-size: .9rem; text-decoration: none; }

/* ----- Work cards ----- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.card:nth-child(2) { border-top-color: var(--pink); }
.card:nth-child(3) { border-top-color: var(--green); }
.card:nth-child(4) { border-top-color: var(--orange); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(60, 30, 40, .09); }
.card-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: .5rem; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-link { color: var(--pink-dark); font-weight: 700; font-size: .9rem; }

/* ----- CV ----- */
.cv-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.cv-head h2 { margin: 0; }
.cv-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; }
.cv-sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); margin: 0 0 1.1rem; }
.cv-side .cv-sub:not(:first-child) { margin-top: 2.2rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.7rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); }
.timeline h4 { margin: .15rem 0 .1rem; }
.when { font-size: .8rem; font-weight: 700; color: var(--green); }
.where { color: var(--muted); font-style: italic; margin-bottom: .4rem; }
.timeline p:not(.where) { font-size: .95rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.plain strong { color: var(--ink); }

/* ----- Booking ----- */
.booking { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3.5rem; align-items: start; }
.booking-intro p { color: var(--muted); }
.contact-line { font-weight: 700; }
.note { font-size: .88rem; border-left: 3px solid var(--green); padding-left: .9rem; }
.booking-form { background: var(--tint); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.booking-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.booking-form input:not([type=radio]):not([type=checkbox]), .booking-form select, .booking-form textarea {
  font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid #d9cec8; border-radius: 8px; background: #fff; width: 100%; color: var(--ink);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice legend { font-weight: 700; margin-bottom: .6rem; font-family: var(--display); font-size: 1.1rem; }
.choice label { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid #d9cec8; border-radius: 8px; padding: .7rem .85rem; cursor: pointer; font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.choice input, .consent input { accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.consent { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 400 !important; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.booking-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--pink-dark); }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: #c9c2bf; font-size: .86rem; }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0; }
.footer-row p { margin: 0; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-text { margin: 1.5rem auto 0; }
}
@media (max-width: 860px) {
  .about-grid, .cv-grid, .booking { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav-links.open { max-height: 440px; }
  .nav-links a { padding: 1rem 1.25rem; width: 100%; border-top: 1px solid var(--line); }
  .nav-links .nav-cta { border-radius: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .row, .choice { grid-template-columns: 1fr; }
  .book-feature { grid-template-columns: 1fr; padding: 1.4rem; }
  .book-feature .cover { max-width: 170px; }
  .books { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .booking-form { padding: 1.3rem; }
  .hero-art { min-height: 220px; }
}

/* ----- Photo band ----- */
.photo-band { overflow: hidden; grid-template-rows: 100%; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 6px; height: clamp(180px, 26vw, 340px); }
.photo-band img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.photo-band img:nth-child(2) { object-position: center 30%; }
.photo-band img:nth-child(4) { object-position: center 100%; }
@media (max-width: 700px) {
  .photo-band { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto; height: auto; }
  .photo-band img { aspect-ratio: 1; }
  .photo-band img:nth-child(n+4) { display: none; }
}

/* ----- Real book covers ----- */
.cover-img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 5px 7px 16px rgba(40, 20, 30, .22); margin-bottom: 1rem; transition: transform .2s; }
.book:hover .cover-img { transform: translateY(-4px); }

.timeline li.highlight::before { background: var(--pink); }
.timeline li.highlight h4 { color: var(--pink-dark); }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.book-feature .cover-img { margin-bottom: 0; }
@media (max-width: 600px) { .book-feature .cover-img { max-width: 170px; } }
.section-tight { padding-top: 0; }

/* ----- Writing ----- */
.articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.article { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.3rem; align-items: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.article h3 { font-size: 1.08rem; margin: .3rem 0 .5rem; }
.article h3 a { color: var(--ink); text-decoration: none; }
.article h3 a:hover { color: var(--pink-dark); }
.article p { color: var(--muted); font-size: .93rem; margin-bottom: .6rem; }
.article .read, .more a { font-weight: 700; font-size: .9rem; text-decoration: none; }
.more { margin-top: 2rem; }
@media (max-width: 860px) { .articles { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .article { grid-template-columns: 1fr; } .article img { aspect-ratio: 16 / 9; } }

/* ----- In the media ----- */
.media { margin-top: clamp(3rem, 7vw, 5rem); }
.media-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
@media (max-width: 760px) { .media-list { grid-template-columns: 1fr; } }
.media-list li { display: grid; gap: .2rem; padding: 1.1rem 0 1.1rem 1.2rem; border-left: 3px solid var(--green); margin-bottom: 1rem; }
.m-outlet { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green); }
.media-list a { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.media-list a:hover { color: var(--pink-dark); }
.m-meta { color: var(--muted); font-size: .9rem; }
.cv-more { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.cv-note { color: var(--muted); font-size: .9rem; margin: -.4rem 0 .4rem; }
@media (max-width: 860px) { .cv-more { grid-template-columns: 1fr; } }
.clients { font-size: .86rem !important; font-style: italic; }
.quote { margin: .2rem 0 1rem; padding: .2rem 0 .2rem .9rem; border-left: 3px solid var(--pink); font-size: .92rem; color: var(--ink); font-style: italic; }
.quote cite { display: block; margin-top: .35rem; font-style: normal; font-size: .8rem; color: var(--muted); }
