:root {
  --ink: #23163e;
  --muted: #55436d;
  --purple: #6440ba;
  --paper: #faf7ff;
  --wash: #eee4ff;
  --lime: #d5f65a;
  --border: #dfd2f4;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.bar { background: var(--paper); border-bottom: 1px solid var(--border); }
.bar .wrap, footer .wrap { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -.04em; }
.cube { width: 26px; height: 25px; border-radius: 7px; background: linear-gradient(145deg, #c89aff, #8151dc); box-shadow: inset 0 2px 0 #e1c6fa, 0 4px 0 #533298; transform: rotate(-12deg); }
nav { display: flex; gap: clamp(12px, 3vw, 32px); flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 700; }
nav a:hover, nav [aria-current="page"] { color: var(--purple); text-decoration: underline; text-underline-offset: 5px; }
.hero { padding-block: clamp(32px, 6vw, 88px); background: radial-gradient(ellipse at 79% 13%, #e6d3ff, transparent 59%), var(--paper); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 66px); }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.5vw, 6.5rem); font-weight: 800; }
h1 span { color: var(--purple); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.26rem); max-width: 39ch; margin: 24px 0 30px; }
.hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 26px; border: 3px solid #fff; box-shadow: 0 9px 0 #a580df, 0 25px 40px #50358429; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); background: var(--lime); color: var(--ink); font: 800 1rem/1.3 var(--body); cursor: pointer; text-decoration: none; }
.button:hover { background: #e5ff82; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.section { padding-block: clamp(42px, 6vw, 80px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
.tile { background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 5px 0 var(--border); padding: 22px; text-decoration: none; display: grid; gap: 12px; }
.tile:hover { border-color: var(--purple); }
.tile p { margin: 0; }
.icon { display: grid; place-items: center; width: 50px; height: 46px; border-radius: 12px; background: var(--wash); color: var(--ink); box-shadow: inset 0 2px 0 #fff9, 0 4px 0 #c8afe9; font-size: 1.5rem; font-weight: 800; }
.tile:nth-child(2) .icon { background: var(--lime); box-shadow: inset 0 2px 0 #fff9, 0 4px 0 #a6bc49; }
.tile:nth-child(3) .icon { background: #ffd5c6; box-shadow: inset 0 2px 0 #fff9, 0 4px 0 #e3a38d; }
.page { min-height: 68vh; }
.page h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
.reading { max-width: 76ch; padding: clamp(20px, 5vw, 48px); margin-top: 25px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.reading h2 { font-size: 1.55rem; margin-top: 1.6em; }
.reading p { white-space: pre-line; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea { color: var(--ink); background: var(--paper); border: 1px solid #af9ac9; border-radius: 10px; padding: 11px; font: inherit; width: 100%; }
textarea { resize: vertical; min-height: 9rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
#status { margin: 0; }
footer { background: var(--wash); border-top: 1px solid var(--border); }
footer .wrap { min-height: 74px; font-size: .9rem; font-weight: 700; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 2; background: #fff; padding: .5rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media (max-width: 830px) {
  .hero-layout { grid-template-columns: 1fr; }
  h1 { max-width: 13ch; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .bar .wrap, footer .wrap { padding-block: 16px; }
  .bar .wrap { align-items: flex-start; flex-direction: column; }
  .tiles { grid-template-columns: 1fr; }
}
