@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&display=swap');

/* ============================================================
   Bethany Jayne — children's storybook illustrator
   Warm paper palette + editorial serif / sans type system
   ============================================================ */

:root {
  /* Colour */
  --paper: #fbf5ea;
  --paper-deep: #f0e4cf;
  --card: #fffdf7;
  --ink: #22303a;
  --ink-soft: #46545c;
  --muted: #6b7880;
  --blue: #2b5fac;
  --blue-deep: #143a62;
  --teal: #15857c;
  --teal-deep: #0c5e57;
  --coral: #e25c43;
  --coral-deep: #c04a33;
  --yellow: #f2b90f;
  --yellow-soft: #fbecc3;
  --sky: #e2f2ed;
  --rose: #f6ddd1;
  --plum: #7c4a68;
  --line: rgba(34, 48, 58, .14);
  --shadow: 0 20px 45px rgba(34, 48, 58, .14);
  --shadow-sm: 0 8px 22px rgba(34, 48, 58, .1);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', 'Trebuchet MS', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1.02rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .14; background-image: radial-gradient(rgba(34, 48, 58, .14) 1px, transparent 1.4px); background-size: 9px 9px; mix-blend-mode: multiply; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { color: var(--ink); background: var(--yellow-soft); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 5; padding: .75rem 1.1rem; border-radius: .6rem; color: #fff; background: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: none; margin: 0; padding: 2.6rem max(2.5rem, calc((100vw - 1240px) / 2)) 1.1rem; color: var(--ink); background: linear-gradient(var(--paper) 76%, var(--paper-deep)); border-bottom: 6px solid var(--teal); }
.site-header::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 1.6rem; background: linear-gradient(90deg, var(--coral) 0 20%, var(--yellow) 20% 40%, var(--teal) 40% 60%, var(--blue) 60% 80%, var(--plum) 80% 100%); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--serif); font-size: 1.18rem; font-weight: 700; letter-spacing: .01em; }
.brand-mark { display: block; width: 2.6rem; height: 2.6rem; padding: .42rem; object-fit: contain; object-position: center; border-radius: 50%; background: var(--blue-deep); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.nav { display: flex; align-items: center; gap: 1.9rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; text-decoration: none; }
.nav a::after { position: absolute; right: 0; bottom: .3rem; left: 0; height: 3px; content: ''; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--coral); }
.nav a[aria-current='page'] { color: var(--teal-deep); }
.nav a[aria-current='page']::after { transform: scaleX(1); }
.nav-toggle { display: none; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; color: var(--coral); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(242, 185, 15, .25); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h1 { max-width: 760px; font-size: clamp(3rem, 6.4vw, 6.2rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h3 { font-size: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: 1240px; min-height: 640px; margin: 0 auto; padding: 5rem 2.5rem 4.5rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(21, 133, 124, .1) 1px, transparent 1.4px), radial-gradient(1000px 480px at 88% -5%, var(--yellow-soft) 0, rgba(251, 236, 195, 0) 60%), radial-gradient(820px 470px at -8% 112%, var(--sky) 0, rgba(226, 242, 237, 0) 55%); background-size: 22px 22px, auto, auto; background-position: 0 0, 0 0, 0 0; }
.hero-copy, .hero-art { position: relative; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { font-size: clamp(3.1rem, 6vw, 5.8rem); }
.hero-copy p:not(.eyebrow) { max-width: 520px; margin: 1.6rem 0 2.1rem; color: var(--ink-soft); font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.button-primary { color: var(--paper); border-color: var(--blue-deep); background: var(--blue); }
.button-primary:hover { background: var(--blue-deep); }
.text-link { color: var(--blue); font-size: .85rem; font-weight: 700; text-underline-offset: .34rem; text-decoration-color: var(--yellow); }
.text-link:hover { color: var(--coral); }
.hero-art { width: min(640px, 100%); justify-self: end; }
.hero-art::before { content: ''; position: absolute; z-index: -1; inset: 6% -7% -7% 7%; background: var(--yellow); border-radius: 47% 53% 45% 55%; transform: rotate(5deg); }
.hero-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: .85rem solid #fff; border-radius: 1.1rem; box-shadow: var(--shadow); transform: rotate(2deg); }
.scribble { position: absolute; z-index: 1; bottom: -1.3rem; left: -1.6rem; color: var(--coral-deep); font-family: var(--hand); font-size: 1.55rem; line-height: 1; transform: rotate(-4deg); }

/* ---------- sections ---------- */
.section { padding: 7rem 2.5rem; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-intro p:not(.eyebrow) { max-width: 410px; margin: 0; color: var(--muted); }

/* work / portfolio */
.work-section { position: relative; color: var(--paper); background: radial-gradient(1100px 600px at 15% -10%, rgba(43, 95, 172, .4), transparent 55%), linear-gradient(160deg, var(--blue-deep) 0%, #0b2a4a 100%); }
.work-section .eyebrow { color: var(--yellow); }
.work-section .eyebrow::before { background: var(--coral); box-shadow: 0 0 0 3px rgba(226, 92, 67, .3); }
.work-section h2 { color: var(--paper); }
.work-section .section-intro p:not(.eyebrow) { color: rgba(255, 253, 247, .78); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.work-card { position: relative; overflow: hidden; grid-column: span 4; min-height: 400px; border-radius: 1.1rem; background: var(--card); box-shadow: var(--shadow-sm); }
.work-card:nth-child(2) { grid-column: span 5; min-height: 480px; }
.work-card:nth-child(3) { grid-column: span 3; min-height: 400px; }
.work-card:nth-child(4) { grid-column: span 3; min-height: 440px; }
.work-card:nth-child(5) { grid-column: span 5; min-height: 440px; }
.work-card:nth-child(6) { grid-column: span 4; min-height: 440px; }
.work-card::before { content: ''; position: absolute; z-index: 2; top: 0; right: 0; left: 0; height: .45rem; background: var(--coral); }
.work-card:nth-child(3n)::before { background: var(--yellow); }
.work-card:nth-child(3n+1)::before { background: var(--teal); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover img { transform: scale(1.06); }
.work-label { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: .9rem 1.05rem; border-radius: .95rem; color: var(--ink); background: rgba(255, 253, 247, .94); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); transition: transform .25s ease; }
.work-card:hover .work-label { transform: translateY(-4px); }
.work-label strong { display: block; font-family: var(--serif); font-size: 1.2rem; letter-spacing: -.01em; }
.work-label span { display: block; margin-top: .1rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* statement / quote */
.statement { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; align-items: start; }
.statement-copy p:not(.eyebrow) { max-width: 620px; margin: 0 0 1.2rem; color: var(--ink-soft); font-size: 1.08rem; }
.note { position: relative; margin-top: 1.1rem; padding: 1.7rem 1.9rem 1.6rem 2.4rem; border-radius: 1.1rem; border-left: .35rem solid var(--coral); background: var(--paper-deep); font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; font-style: italic; }
.note::before { content: '\201C'; position: absolute; top: .4rem; left: .6rem; color: rgba(226, 92, 67, .28); font-family: var(--serif); font-size: 3.4rem; line-height: 1; }

/* contact band */
.contact-band { position: relative; color: var(--paper); background: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px) center / 22px 22px, linear-gradient(135deg, #e8705a 0%, var(--coral-deep) 100%); border-top: .4rem solid var(--yellow); }
.contact-band .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-band h2 { max-width: 680px; }
.contact-band .button { color: var(--ink); border-color: var(--paper); background: var(--paper); }

/* ---------- subpage heroes ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); grid-template-rows: auto auto auto; align-items: center; align-content: center; row-gap: .65rem; column-gap: clamp(2rem, 5vw, 5rem); max-width: none; min-height: 430px; margin: 0; padding: 4rem max(2.5rem, calc((100vw - 1240px) / 2)); background: radial-gradient(900px 440px at 95% -20%, var(--rose) 0, rgba(246, 221, 209, 0) 60%), var(--sky); border-bottom: .4rem solid var(--yellow); }
.page-hero > .eyebrow, .page-hero > h1, .page-hero > p { grid-column: 1; }
.page-hero > .eyebrow { grid-row: 1; align-self: end; }
.page-hero > h1 { grid-row: 2; font-size: clamp(2.7rem, 5vw, 4.7rem); max-width: 680px; }
.page-hero > p:not(.eyebrow) { grid-row: 3; align-self: start; }
.page-hero p:not(.eyebrow) { max-width: 600px; margin: .35rem 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.page-hero::after { grid-column: 2; grid-row: 1 / span 3; justify-self: end; width: min(100%, 430px); min-height: 280px; aspect-ratio: 6 / 5; content: ''; background: var(--paper-deep) center / cover no-repeat; border: .7rem solid #fff; border-radius: 1.1rem; box-shadow: var(--shadow); transform: rotate(2deg); }
.about-page .page-hero::after { aspect-ratio: 466 / 504; min-height: 0; background-image: url('./assets/4e4cc5_b89f6ea50577454bb355c0a60e1accde~mv2.jpeg'); }
.storybooks-page .page-hero::after { aspect-ratio: 16 / 10; min-height: 0; background-image: url('./assets/E24CC148-C065-4018-B7B2-606C58806642_MP4.jpg'); }
.contact-page .page-hero::after { aspect-ratio: 558 / 802; min-height: 0; background-image: url('./assets/4e4cc5_fa4c8363135847688a1e13e47ec61619~mv2.jpeg'); }
.page-hero + .section { padding-top: 6rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6rem; align-items: center; }
.portrait { position: relative; max-width: 400px; overflow: hidden; }
.portrait::before { content: ''; position: absolute; z-index: -1; inset: 10% -12% -12% 10%; background: var(--yellow); border-radius: 46% 54% 52% 48%; transform: rotate(-6deg); }
.portrait::after { content: ''; position: absolute; z-index: -1; inset: -10% 55% 45% -12%; background: var(--sky); border-radius: 50%; }
.portrait img { aspect-ratio: .92; width: 100%; object-fit: cover; border: .7rem solid #fff; border-radius: 1rem; box-shadow: var(--shadow); transform: rotate(-3deg); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 5rem; align-items: start; }
.contact-grid p:not(.eyebrow) { max-width: 46ch; color: var(--ink-soft); }
.contact-list { display: grid; gap: .35rem; margin-top: 2rem; }
.contact-item { display: grid; gap: .5rem; padding: 1.15rem 0; border-top: 2px solid var(--line); }
.contact-item strong { color: var(--blue-deep); font-family: var(--serif); font-size: 1.35rem; }
.contact-item a { color: var(--blue); font-weight: 500; }
.contact-item a:hover { color: var(--coral); }
.social-link { display: inline-flex; align-items: center; gap: .55rem; }
.instagram-icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.instagram-icon circle:last-child { fill: currentColor; stroke: none; }
.contact-form { display: grid; gap: 1.15rem; }
.contact-form label { display: grid; gap: .5rem; color: var(--ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 1.05rem; border: 2px solid var(--line); border-radius: .9rem; color: var(--ink); background: var(--card); font: inherit; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21, 133, 124, .16); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .button { align-self: start; }
.form-success { padding: 1.5rem; border-radius: 1.1rem; border-left: .35rem solid var(--teal); background: var(--sky); font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.form-success[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; max-width: 1240px; margin: 0 auto; padding: 2.4rem 2.5rem 2.8rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.site-footer::before { content: ''; position: absolute; top: 0; right: 2.5rem; left: 2.5rem; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal), var(--blue)); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.work-grid .reveal:nth-child(2) { transition-delay: .06s; }
.work-grid .reveal:nth-child(3) { transition-delay: .12s; }
.work-grid .reveal:nth-child(4) { transition-delay: .18s; }
.work-grid .reveal:nth-child(5) { transition-delay: .24s; }
.work-grid .reveal:nth-child(6) { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-header { padding: calc(1.6rem + .8rem) 1.25rem 1.1rem; align-items: center; }
  .nav-toggle { display: block; padding: .5rem 0; }
  .nav { position: absolute; top: 4.6rem; right: 1.25rem; left: 1.25rem; display: none; padding: 1.1rem; border: 2px solid var(--line); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; gap: .4rem; }
  .hero, .page-hero { display: block; min-height: 0; padding: 3.4rem 1.25rem 4.4rem; }
  .page-hero::after { display: block; width: min(100%, 430px); min-height: 220px; margin: 2.5rem auto 0; transform: rotate(1deg); }
  .about-page .page-hero::after, .storybooks-page .page-hero::after, .contact-page .page-hero::after { min-height: 0; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-copy p { font-size: 1rem; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { width: 100%; max-width: none; margin: 3.6rem auto 0; }
  .hero-art::before { right: 0; left: 0; transform: none; }
  .scribble { left: 0; bottom: -1.1rem; }
  .section { padding: 4.5rem 1.25rem; }
  .section-intro, .contact-band .section-inner { display: block; }
  .section-intro p:not(.eyebrow) { margin-top: 1rem; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .work-card, .work-card:nth-child(n) { grid-column: span 1; min-height: 230px; }
  .work-card:nth-child(2), .work-card:nth-child(5) { min-height: 300px; }
  .work-label { right: .45rem; bottom: .45rem; left: .45rem; padding: .6rem; }
  .work-label strong { font-size: .98rem; }
  .work-label span { font-size: .62rem; }
  .statement, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { overflow: hidden; }
  .contact-band h2 { margin-bottom: 1.5rem; }
  .site-footer { padding: 1.6rem 1.25rem 1.8rem; flex-direction: column; }
  .site-footer::before { right: 1.25rem; left: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}