/* ==========================================================================
   Joseph Wiggins website styles
   Colours are set once, just below. Change a colour here and it changes
   everywhere it is used.
   ========================================================================== */

@font-face{font-family:"Heros Cn"; src:url("fonts/heros-cn-bold.woff") format("woff"); font-weight:700; font-style:normal; font-display:swap}
@font-face{font-family:"Inter"; src:url("fonts/inter-regular.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap}
@font-face{font-family:"Inter"; src:url("fonts/inter-medium.woff") format("woff"); font-weight:500; font-style:normal; font-display:swap}
@font-face{font-family:"Inter"; src:url("fonts/inter-semibold.woff") format("woff"); font-weight:600; font-style:normal; font-display:swap}

:root{
  --paper:#f5f5f0;      /* light page background */
  --white:#ffffff;
  --ink:#131a2a;        /* dark navy text */
  --muted:#566079;      /* grey text on light */
  --line:#d8dbe1;       /* thin lines on light */
  --night:#0c1220;      /* darkest background */
  --navy:#17233a;       /* Talent Factory poster navy */
  --yellow:#ffd60a;     /* bright yellow */
  --butter:#f8e78c;     /* pale yellow, used for text on dark */
  --mist:#aeb8cb;       /* grey text on dark */
  --line-d:#2b3854;     /* thin lines on dark */
  --felt:#a4161f;       /* the red felt strip above the keys */

  --display:"Heros Cn","Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif;
  --body:"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --wrap:72rem;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:5rem; -webkit-text-size-adjust:100%}
body{
  margin:0; font-family:var(--body); font-size:1.0625rem; line-height:1.6;
  --bg:var(--paper); --fg:var(--ink); --mu:var(--muted); --ln:var(--line);
  --btn-bg:var(--ink); --btn-fg:var(--butter);
  background:var(--bg); color:var(--fg);
}
img,svg{max-width:100%}
a{color:inherit}
p{margin:0 0 1em; max-width:38rem}
[hidden]{display:none !important}
:focus-visible{outline:3px solid var(--yellow); outline-offset:3px; border-radius:4px}

/* Section backgrounds. Light is for teaching, dark is for performing. */
.night,.navy,.tf{--fg:#f3f5f8; --mu:var(--mist); --ln:var(--line-d); --btn-bg:var(--yellow); --btn-fg:var(--ink); color:var(--fg)}
.night{--bg:var(--night); background:var(--bg)}
.navy,.tf{--bg:var(--navy); background:var(--bg)}
.white{--bg:var(--white); background:var(--bg)}
.sun{--bg:var(--yellow); --fg:var(--ink); --mu:#3a3410; --ln:#c9a800; --btn-bg:var(--ink); --btn-fg:var(--butter); background:var(--bg); color:var(--fg)}

/* Type */
h1,h2,.menu strong{font-family:var(--display); font-weight:700; margin:0; letter-spacing:-0.005em}
h1{font-size:clamp(3.5rem,15.5vw,9.5rem); line-height:.88}
h2{font-size:clamp(2.5rem,7.5vw,4.5rem); line-height:.95}
h3{font-family:var(--body); font-weight:600; font-size:1.25rem; line-height:1.25; margin:0; letter-spacing:-0.01em}
.lede{font-size:1.2rem; color:var(--mu)}
.after-h{margin-top:1.4rem}
.small{font-size:.95rem; color:var(--mu)}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 1.25rem}
.band{padding:5rem 0}
.split{display:grid; gap:2.5rem}
@media (min-width:54rem){.split{grid-template-columns:1.25fr 1fr; gap:4.5rem; align-items:start}}

/* Header */
.top{position:sticky; top:0; z-index:30; background:var(--night); color:#f3f5f8; border-bottom:1px solid var(--line-d)}
.top .wrap{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-top:.75rem; padding-bottom:.75rem}
.brand{font-family:var(--display); font-weight:700; font-size:1.55rem; line-height:1; text-decoration:none}
.nav{display:flex; align-items:center; gap:1.5rem; font-weight:500; font-size:.98rem}
.nav a{text-decoration:none; padding:.3rem 0; border-bottom:2px solid transparent}
.nav a:hover,.nav a[aria-current="page"]{border-bottom-color:var(--yellow)}
.nav a.btn{padding:.5rem 1.1rem; border-bottom:2px solid var(--yellow)}
.menu-btn{display:none; font:inherit; font-weight:600; color:inherit; background:transparent; border:2px solid #f3f5f8; border-radius:999px; padding:.4rem 1rem; cursor:pointer}
@media (max-width:47.99rem){
  .menu-btn{display:inline-block}
  .nav{display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch; gap:0; background:var(--night); border-bottom:1px solid var(--line-d); padding:.25rem 1.25rem 1.25rem}
  .nav.open{display:flex}
  .nav a{padding:.9rem 0; border-bottom:1px solid var(--line-d); font-size:1.1rem}
  .nav a.btn{margin-top:1rem; text-align:center; padding:.8rem 1rem}
}

/* Buttons */
.btn{display:inline-block; background:var(--btn-bg); color:var(--btn-fg); font:inherit; font-weight:600; line-height:1.3; text-decoration:none; padding:.85rem 1.5rem; border-radius:999px; border:2px solid var(--btn-bg); cursor:pointer}
.btn:hover{filter:brightness(1.1)}
.btn.ghost{background:transparent; color:var(--fg); border-color:var(--fg)}
.top .btn{background:var(--yellow); color:var(--ink); border-color:var(--yellow)}
.actions{display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.9rem}
.textlink{font-weight:600; text-underline-offset:.25em; text-decoration-thickness:2px; text-decoration-color:var(--yellow)}

/* Home hero and the playable keyboard */
.hero{padding:3.5rem 0 0}
.hero h1{color:#fff}
.hero .lede{font-size:1.25rem; margin-top:1.6rem; max-width:35rem}
.play-row{display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin:3.5rem 0 1rem}
.play-row .small{margin:0}
.keys{position:relative; display:flex; height:clamp(130px,23vw,230px); border-top:6px solid var(--felt); background:var(--paper); touch-action:manipulation; user-select:none; -webkit-user-select:none}
.key{appearance:none; border:0; padding:0; margin:0; cursor:pointer; font:inherit}
.key.w{flex:1; background:#f7f5ee; border-right:1px solid #c5c8cf; border-radius:0 0 7px 7px}
.key.w:last-of-type{border-right:0}
.key.b{position:absolute; top:0; height:62%; background:var(--night); border-radius:0 0 5px 5px; transform:translateX(-50%); z-index:2; box-shadow:0 4px 0 #05080f}
.key.w.on{background:var(--yellow)}
.key.b.on{background:#8f7800; box-shadow:none}

/* The big list of what's on offer */
.menu{border-top:3px solid var(--fg)}
.menu a{display:grid; gap:.3rem; padding:1.5rem 0; border-bottom:1px solid var(--ln); text-decoration:none}
@media (min-width:54rem){.menu a{grid-template-columns:1.1fr 1fr; gap:3rem; align-items:end}}
.menu strong{font-size:clamp(2.4rem,7vw,4.25rem); line-height:.95; justify-self:start; background:linear-gradient(var(--yellow),var(--yellow)) no-repeat 0 88%/0 .16em}
.menu a:hover strong,.menu a:focus-visible strong{background-size:100% .16em}
.menu span{color:var(--mu); padding-bottom:.35rem}

/* About */
.photo{margin:0 0 2rem}
.photo img{display:block; width:100%; height:auto; max-width:20rem; border-radius:10px; aspect-ratio:1/1; object-fit:cover}
.photo.wide img{max-width:none; aspect-ratio:21/9; margin-top:2.5rem}
.facts{list-style:none; margin:0; padding:0; border-top:3px solid var(--fg)}
.facts li{padding:.85rem 0; border-bottom:1px solid var(--ln); font-weight:500}

/* Rows used for lessons, live and studio */
.rows{margin-top:2.75rem; border-top:3px solid var(--fg)}
.row{display:grid; gap:.6rem; padding:1.7rem 0; border-bottom:1px solid var(--ln)}
@media (min-width:54rem){.row{grid-template-columns:1fr 1.6fr; gap:3rem}}
.row p{margin:0 0 .8rem; color:var(--mu)}
.row p:last-child{margin-bottom:0}
.tag{display:inline-block; font-size:.8rem; font-weight:600; letter-spacing:0; background:var(--yellow); color:var(--ink); padding:.15rem .65rem; border-radius:999px; margin-left:.4rem; vertical-align:middle; white-space:nowrap}

/* Fees */
.fees{margin-top:3.5rem; display:grid; gap:2rem}
@media (min-width:54rem){.fees{grid-template-columns:1fr 1.6fr; gap:3rem}}
.fees table{width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums}
.fees th,.fees td{text-align:left; padding:.8rem 0; border-bottom:1px solid var(--ln)}
.fees th{font-size:.9rem; font-weight:500; color:var(--mu); border-bottom:3px solid var(--fg)}
.fees td:last-child,.fees th:last-child{text-align:right}
.fees td:last-child{font-weight:600}
.fees td:nth-child(2),.fees th:nth-child(2){color:var(--mu); text-align:right; padding-right:1.5rem}

/* Conditions list */
.chips{list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; margin:1.25rem 0 0; padding:0}
.chips li{border:1.5px solid var(--fg); border-radius:999px; padding:.3rem .95rem; font-weight:500; font-size:.98rem}

/* Quotes */
blockquote{margin:0}
blockquote p{max-width:none}
blockquote footer{color:var(--mu); font-size:.95rem}
.lead-quote{margin:2.25rem 0 0; max-width:54rem}
.lead-quote p{font-size:clamp(1.3rem,3vw,1.75rem); line-height:1.4; font-weight:500; letter-spacing:-0.01em}
.quote-grid{display:grid; gap:2rem; margin-top:3rem}
@media (min-width:54rem){.quote-grid{grid-template-columns:1fr 1fr; gap:2.5rem 4.5rem}}
.quote-grid blockquote,.side-quote{border-top:3px solid var(--fg); padding-top:1.1rem}
.tf .side-quote,.tf .quote-grid blockquote{border-top-color:var(--yellow)}

/* Enquiry form */
form.enq{display:grid; gap:1rem}
@media (min-width:36rem){form.enq{grid-template-columns:1fr 1fr} form.enq .full{grid-column:1/-1}}
form.enq label{display:block; font-weight:600; font-size:.95rem; margin-bottom:.35rem}
form.enq input,form.enq select,form.enq textarea{width:100%; font:inherit; color:#f3f5f8; background:#19233a; border:1px solid #3c4d74; border-radius:8px; padding:.75rem .85rem}
form.enq textarea{min-height:8rem; resize:vertical}
form.enq input:focus,form.enq select:focus,form.enq textarea:focus{outline:3px solid var(--yellow); outline-offset:1px}
form.enq .btn{justify-self:start}
form.enq .btn[disabled]{opacity:.6; cursor:default}
.hp{position:absolute; left:-9999px}
.status{margin:0; min-height:1.5em}
.sent{border:2px solid var(--yellow); border-radius:10px; padding:1.5rem}
.sent h3{color:var(--butter); margin-bottom:.5rem}
.contact a.plain{color:var(--butter)}

/* Talent Factory page */
.tf-hero{padding:4rem 0 4.5rem}
.tf-hero h1{color:var(--butter); font-size:clamp(3.3rem,14vw,8.5rem)}
.tf-hero .lede{font-size:1.25rem; margin-top:1.6rem; color:#f3f5f8; max-width:36rem}
.ticks{list-style:none; margin:1.5rem 0; padding:0; border-top:3px solid var(--yellow); max-width:38rem}
.ticks li{padding:.75rem 0; border-bottom:1px solid var(--ln)}
.ways{display:grid; gap:2.5rem; margin-top:2.75rem}
@media (min-width:54rem){.ways{grid-template-columns:1fr 1fr; gap:4.5rem}}
.ways > div{border-top:3px solid var(--yellow); padding-top:1.2rem}
.ways h3{font-size:1.45rem; margin-bottom:.8rem}
.ways p{color:var(--mu)}

/* Beat maker */
.seq-box{margin-top:3.5rem; max-width:34rem}
.seq-box h3{margin-bottom:.3rem}
.seq{display:grid; grid-template-columns:3.6rem repeat(8,1fr); gap:6px; align-items:center; margin:1.1rem 0; touch-action:manipulation; user-select:none; -webkit-user-select:none}
.seq .lab{font-size:.85rem; font-weight:500; color:var(--mu)}
.cell{appearance:none; aspect-ratio:1/1; width:100%; border:0; border-radius:7px; background:rgba(255,255,255,.1); cursor:pointer; padding:0}
.cell:nth-of-type(4n+1){background:rgba(255,255,255,.17)}
.cell[aria-pressed="true"]{background:var(--yellow)}
.cell.now{box-shadow:0 0 0 2px #fff}
.seq-actions{display:flex; gap:.6rem; flex-wrap:wrap}
.seq-actions .btn{padding:.6rem 1.25rem}

/* Terms and privacy pages */
.doc h1{font-size:clamp(2.8rem,9vw,5rem); line-height:.92}
.doc h2{font-family:var(--body); font-weight:600; font-size:1.3rem; line-height:1.3; letter-spacing:-0.01em; margin:2.75rem 0 .8rem}
.doc p,.doc li{max-width:44rem}
.doc ul{padding-left:1.2rem}

/* Footer */
footer.site{background:var(--night); color:var(--mist); padding:2rem 0 calc(2rem + env(safe-area-inset-bottom,0px)); font-size:.92rem; border-top:1px solid var(--line-d)}
footer.site .wrap{display:flex; flex-wrap:wrap; gap:.6rem 2rem; justify-content:space-between}
footer.site nav{display:flex; flex-wrap:wrap; gap:.4rem 1.5rem}

@media (max-width:40rem){
  .band{padding:3.5rem 0}
  .hero{padding-top:2.5rem}
  .play-row{margin-top:2.5rem}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} .menu strong{transition:none}}
@media (prefers-reduced-motion:no-preference){.menu strong{transition:background-size .2s ease}}
@media print{.top,.keys,.play-row,.seq-box,form.enq{display:none}}
