/*
  Clear Desk Co. (N3): color system
  Harmony: complementary. Aubergine violet (hue ~265) against its complement, a soft pear olive
  (hue ~65) that echoes the olive chairs and warm wood of Kelly Sikkema's desk shoot. The cool
  lilac paper keeps the warm walnut photos glowing without turning into cream.
  60% dominant  --paper      #F4F2F8  page background
  30% secondary --aubergine  #2F2442  packages, availability panel, footer
  support       --heather    #D9D3E6  surfaces, open slots
  text          --ink        #221A30  body text / --soft #5E556E for secondary text
  10% accent    --pear       #C4CC4E  buttons, selected slots, checks
  Contrast (WCAG): ink on paper 15.02 | soft on paper 6.30 | paper on aubergine 13.02
  pear on aubergine 8.33 | aubergine on pear (button text) 8.33 | ink on heather 11.45
*/
:root {
  --paper: #F4F2F8;
  --aubergine: #2F2442;
  --aubergine-2: #3B2E52;
  --heather: #D9D3E6;
  --ink: #221A30;
  --soft: #5E556E;
  --pear: #C4CC4E;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --pad: clamp(1.1rem, 5vw, 5rem);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7a6aa6; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 99; background: var(--aubergine); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
section { scroll-margin-top: 84px; }
.h2 { font: 400 clamp(2.4rem, 4.8vw, 4.1rem)/1.02 var(--serif); letter-spacing: -.01em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.6rem; border-radius: 10px; font: 600 1rem/1.1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--aubergine); color: var(--paper); }
.btn--dark:hover { background: var(--aubergine-2); }
.btn--pear { background: var(--pear); color: var(--aubergine); }
.btn--pear:hover { background: #d0d762; }
.btn--full { width: 100%; }
.link-under { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--pear); padding: .6rem 0; }
.link-under:hover { text-decoration-color: var(--aubergine); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--pad); background: rgba(244, 242, 248, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--heather); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 400 1.7rem/1 var(--serif); text-decoration: none; }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--aubergine); position: relative; }
.brand__mark::after { content: ""; position: absolute; left: 6px; top: 4px; width: 6px; height: 10px; border-right: 3px solid var(--pear); border-bottom: 3px solid var(--pear); transform: rotate(40deg); }
.nav__links { display: flex; align-items: center; gap: 2rem; font-weight: 500; }
.nav__links a { text-decoration: none; padding: .4rem 0; }
.nav__links a:not(.nav__cta):hover { text-decoration: underline; text-decoration-color: var(--pear); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__cta { background: var(--aubergine); color: var(--paper); padding: .6rem 1.1rem !important; border-radius: 10px; }
.nav__toggle { display: none; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__who { font-weight: 600; color: var(--soft); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .7rem; }
.hero__who::before { content: ""; width: 34px; height: 2px; background: var(--pear); }
.hero__title { font: 400 clamp(3rem, 6.4vw, 5.9rem)/.98 var(--serif); letter-spacing: -.015em; margin-bottom: 1.6rem; }
.hero__lede { font-size: 1.2rem; color: var(--soft); max-width: 34rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__visual { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.todo { position: absolute; left: -3.5rem; bottom: 2.5rem; width: 290px; background: var(--paper); border-radius: 12px; padding: 1.2rem 1.3rem 1.1rem; box-shadow: 0 24px 50px rgba(34, 26, 48, .22); }
.todo__day { font: italic 400 1.5rem/1 var(--serif); margin-bottom: .8rem; }
.todo li { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; font-size: .95rem; border-top: 1px solid var(--heather); }
.box { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--soft); position: relative; animation: fillbox .01s linear both; }
.box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border-right: 2.5px solid var(--aubergine); border-bottom: 2.5px solid var(--aubergine); transform: rotate(40deg) scale(0); animation: tick .35s ease both; }
.todo li:nth-child(1) .box, .todo li:nth-child(1) .box::after { animation-delay: .6s; }
.todo li:nth-child(2) .box, .todo li:nth-child(2) .box::after { animation-delay: .95s; }
.todo li:nth-child(3) .box, .todo li:nth-child(3) .box::after { animation-delay: 1.3s; }
.todo li:nth-child(4) .box, .todo li:nth-child(4) .box::after { animation-delay: 1.65s; }
@keyframes fillbox { to { background: var(--pear); border-color: var(--pear); } }
@keyframes tick { to { transform: rotate(40deg) scale(1); } }

/* Services */
.services { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.services__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.services__head p { color: var(--soft); font-size: 1.1rem; max-width: 32rem; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
.svc li { padding: 1.6rem 0 1.8rem; border-top: 1px solid rgba(34, 26, 48, .2); }
.svc h3 { font: 400 1.9rem/1.1 var(--serif); margin-bottom: .5rem; }
.svc p { color: var(--soft); }
.services__photo { margin-top: 3rem; }
.services__photo img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; object-position: 50% 55%; border-radius: 6px; }

/* Packages */
.packages { background: var(--aubergine); color: var(--paper); padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.packages > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.packages__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.packages__head p { color: var(--heather); font-size: 1.1rem; max-width: 30rem; }
.pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pk__item { padding-top: 1.5rem; border-top: 1px solid rgba(244, 242, 248, .3); }
.pk__item--pick { border-top: 3px solid var(--pear); }
.pk__hours { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 1.6rem; min-height: 86px; align-content: end; }
.pk__hours i { aspect-ratio: 1; border-radius: 3px; background: rgba(217, 211, 230, .22); }
.pk__hours i.on { background: var(--pear); }
.pk__item h3 { font: 400 2.4rem/1 var(--serif); }
.pk__price { font: 400 3.1rem/1.1 var(--serif); color: var(--pear); margin: .4rem 0 .1rem; }
.pk__price small { font: 500 1rem var(--sans); color: var(--heather); }
.pk__meta { font-weight: 600; margin-bottom: .7rem; }
.pk__item > p:last-child { color: var(--heather); }
.packages__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 3rem; color: var(--heather); }

/* Process */
.process { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) var(--pad); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 3rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--heather); }
.steps li { position: relative; }
.steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--aubergine); font: 400 1.6rem/1 var(--serif); margin-bottom: 1.2rem; position: relative; }
.steps li:first-child .steps__n { background: var(--pear); border-color: var(--pear); }
.steps h3 { font: 600 1.15rem/1.3 var(--sans); margin-bottom: .4rem; }
.steps p { color: var(--soft); }

/* Availability */
.avail { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--heather); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); }
.avail > * { min-width: 0; }
.avail__intro p { color: var(--soft); font-size: 1.1rem; margin: 1.2rem 0 2rem; max-width: 30rem; }
.avail__photo img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.avail__panel { background: var(--aubergine); color: var(--paper); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2.4rem); }
.grid { display: grid; grid-template-columns: 6.2rem repeat(5, 1fr); gap: 8px; }
.grid__day { text-align: center; font-weight: 600; padding-bottom: .2rem; }
.grid__time { display: flex; flex-direction: column; justify-content: center; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.grid__time small { font-weight: 400; color: var(--heather); font-size: .82rem; }
.slot { position: relative; min-height: 64px; border: 2px solid rgba(217, 211, 230, .35); background: var(--aubergine-2); border-radius: 10px; cursor: pointer; font-size: 0; color: transparent; transition: background-color .2s, border-color .2s, transform .15s; }
.slot:hover:not(:disabled) { border-color: var(--pear); }
.slot:active:not(:disabled) { transform: scale(.96); }
.slot[aria-pressed="true"] { background: var(--pear); border-color: var(--pear); }
.slot[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 16px; border-right: 3px solid var(--aubergine); border-bottom: 3px solid var(--aubergine); transform: translate(-50%, -50%) rotate(40deg); }
.slot--busy { cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(217, 211, 230, .18) 7px 9px); border-style: dashed; }
.slot:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0 .4rem; font-size: .88rem; color: var(--heather); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.lg { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--aubergine-2); border: 2px solid rgba(217, 211, 230, .35); }
.lg--on { background: var(--pear); border-color: var(--pear); }
.lg--busy { border-style: dashed; background: transparent; }
.summary { font: italic 400 1.35rem/1.35 var(--serif); color: var(--paper); margin: .6rem 0 1.4rem; min-height: 2.7em; }
.summary strong { font-style: normal; color: var(--pear); font-weight: 400; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.fields__wide { grid-column: 1 / -1; }
.fields label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.fields input, .fields select, .fields textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid transparent; border-radius: 10px; padding: .75rem .9rem; min-height: 50px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; border-color: var(--pear); }
.form__done { margin-top: 1rem; background: var(--pear); color: var(--aubergine); border-radius: 12px; padding: 1.2rem; }
.form__done-title { font: 400 1.7rem/1.1 var(--serif); }

/* Words */
.words { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(4.5rem, 9vw, 7rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.quote blockquote { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--serif); margin-bottom: 1rem; }
.quote figcaption { color: var(--soft); font-weight: 600; }
.quote figcaption::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--pear); vertical-align: middle; margin-right: .6rem; }

/* Footer */
.foot { background: var(--aubergine); color: var(--heather); padding: 3rem var(--pad); display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: baseline; }
.foot__brand { font: 400 2rem/1 var(--serif); color: var(--paper); }
.foot a { color: var(--pear); font-weight: 600; }
.foot__credit { grid-column: 1 / -1; font-size: .9rem; border-top: 1px solid rgba(217, 211, 230, .2); padding-top: 1.2rem; }

@media (max-width: 960px) {
  .hero, .avail { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .todo { left: auto; right: -.5rem; }
  .svc { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .nav__toggle { display: grid; gap: 5px; place-content: center; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--aubergine); cursor: pointer; }
  .nav__toggle span:not(.sr) { width: 20px; height: 2px; background: var(--paper); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--heather); padding: .5rem var(--pad) 1.2rem; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--heather); font-size: 1.1rem; }
  .nav__cta { margin-top: .8rem; text-align: center; border-bottom: 0 !important; }
  .services__head, .packages__head, .pk, .words, .foot { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .services__photo img { aspect-ratio: 4 / 3; }
  .avail__photo { display: none; }
  .avail__intro p { margin-bottom: 0; }
  .todo { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin: -3rem 1rem 0; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 4.6rem repeat(5, 1fr); gap: 5px; }
  .grid__time { font-size: .82rem; }
  .grid__time small { font-size: .72rem; }
  .slot { min-height: 50px; border-radius: 8px; }
  .fields { grid-template-columns: 1fr; }
  .avail__panel { margin: 0 -.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
