:root {
  --bg: #1a2290;
  --ink: #05061a;
  --paper: #f3f1ff;
  --a: #ff4fa3;
  --b: #ffd83d;
  --c: #3ee6b0;
  --on-bg: #fffdf7;
  --shadow: #b7b8cf;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;

  scroll-padding-top: env(safe-area-inset-top, 0px);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-bg);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.5;
  transition: background 0.4s;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 4px solid var(--b);
  outline-offset: 3px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* hero */
.hero {
  padding: 6rem 0 8rem;
}

.hi {
  font-family: Caveat, cursive;
  font-size: 3rem;
  color: var(--b);
  margin: 0;
  transform: rotate(-5deg);
  display: inline-block;
}

.smiley {
  font-family: Caveat, cursive;
  font-size: 6rem;
  color: var(--b);
  margin: 0;
  transform: rotate(18deg) translateY(20px);
  display: inline-block;
  letter-spacing: 0;
}

.smiley:hover {
  transform: rotate(28deg) translateY(20px) scale(1.5);
  transition: transform 0.2s;
  color: var(--a);
}

h1 {
  font-size: 10rem;
  line-height: 0.88;
  margin: 8px 0 24px;
  font-weight: 800;
  letter-spacing: -0.12em;
}
h1 span {
  display: inline-block;
  cursor: pointer;
  animation: drop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 60ms);
  transition:
    transform 0.2s,
    color 0.2s;
}
h1 span:hover {
  transform: translateY(-10px) rotate(-6deg);
  color: var(--b);
}
h1 span.spin {
  animation: spin 0.7s;
}

@media (max-width: 700px) {
  h1 {
    font-size: 4rem;
  }

  .smiley {
    font-size: 3.5rem;
    transform: rotate(18deg) translateY(-20px);
  }

  .desc {
    line-height: 1.2;
  }

  .jobs {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}

@media (min-width: 701px) and (max-width: 1080px) {
  h1 {
    font-size: 6.5rem;
  }
}

@keyframes drop {
  from {
    transform: translateY(-120%) rotate(20deg);
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg) scale(1.2);
  }
}
.desc {
  font-size: 2rem;
  margin: 0 0 3rem;
  font-weight: 700;
}
.btn {
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  background: var(--b);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);

  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.btn:hover {
  background: var(--a);
}
.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}
.btn.alt {
  background: var(--paper);
}
.btn.alt.mix {
  align-items: center;
  display: inline-flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.btn.alt:hover {
  background: var(--c);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.top-btn {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  padding: 12px;
  z-index: 100;
}

/* paper sections */
.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 36px 36px 0 0;
  padding: 4.5rem 0 4.5rem;
}
h2 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.sub {
  font-size: 20px;
  max-width: 46ch;
  margin: 0 0 36px;
}

/* changelog */
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 4px solid var(--ink);
  margin-left: 8px;
}
.log li {
  position: relative;
  padding: 0 0 32px 28px;
}
.log li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--a);
  border: 4px solid var(--ink);
}
.ver {
  display: inline-block;
  font-weight: 800;
  background: var(--ink);
  color: var(--b);
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 15px;
}
.log h3 {
  font-size: 26px;
  margin: 8px 0 4px;
}
.log p {
  margin: 0;
  max-width: 60ch;
}

/* stickers */
.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.stk {
  font-weight: 800;
  font-size: 22px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform 0.2s;
}
.stk:nth-child(3n + 1) {
  background: var(--a);
  transform: rotate(-3deg);
}
.stk:nth-child(3n + 2) {
  background: var(--b);
  transform: rotate(2deg);
}
.stk:nth-child(3n) {
  background: var(--c);
  transform: rotate(-1deg);
}
.stk:hover {
  transform: rotate(0) scale(1.08);
}
.learning {
  font-family: Caveat, cursive;
  font-size: 30px;
  margin: 28px 0 0;
}

@media (max-width: 1080px) {
  .stickers {
    gap: 1rem;
  }
}

/* projects */
.proj {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.card {
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 8px 8px 0 var(--ink);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.15s;
}
.card:nth-child(3n + 1) {
  background: var(--b);
  border-radius: 28px 80px 28px 28px;
}
.card:nth-child(3n + 2) {
  background: var(--c);
  border-radius: 80px 28px 28px 28px;
}
.card:nth-child(3n) {
  background: var(--a);
  border-radius: 28px 28px 80px 28px;
}
.card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
}
.card h3 {
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 8px;
}
.card a {
  text-decoration: none;
}
.card p {
  margin: 0;
}
.tags {
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
}

/* ask me */
.qs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}
.qs .btn {
  font-size: 17px;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}
.qs .btn[aria-pressed="true"] {
  background: var(--a);
  color: var(--ink);
}
.bubble.big {
  font-size: clamp(22px, 3.4vw, 30px);
  max-width: 72rem;
  min-height: 5.5em;
  margin: 0;
  background: var(--b);
  box-shadow: 6px 6px 0 var(--ink);
}

[hidden] {
  display: none !important;
}
.tabs {
  margin-bottom: 36px;
}
.story p {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 24ch;
}
.story mark {
  background: var(--b);
  color: var(--ink);
  padding: 0 8px;
  border-radius: 10px;
}
.facts {
  font-family: "Indie Flower", cursive;
  font-weight: 400;
  font-style: normal;
  display: flex;
  padding: 4rem;
  background: #e0b791;
  flex-wrap: wrap;
  gap: 2rem;
  border: 5px solid #3a2b1d;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 15px 11px var(--shadow);
}
.fact {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  border-radius: 8px;
  text-align: center;

  padding: 2rem 1.5rem;
  box-shadow: 4px 4px 0 #00000073;
  max-width: 18rem;
  min-height: 13rem;
  transition: transform 0.2s;
}
.fact:nth-child(3n + 1) {
  background: var(--a);
  transform: rotate(-2deg);
}
.fact:nth-child(3n + 2) {
  background: var(--b);
  transform: rotate(2deg);
}
.fact:nth-child(3n) {
  background: var(--c);
  transform: rotate(-1deg);
}
.fact:hover {
  transform: rotate(0) scale(1.1);
}

/* .pin {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgb(0, 38, 255);
} */

.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 24px;
}
.job {
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 24px 26px;
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper);
}
.job h3 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.7rem 0 4px;
}
.job .when {
  font-weight: 800;
  font-size: 15px;
  background: var(--ink);
  color: var(--b);
  border-radius: 8px;
  padding: 2px 10px;
  display: inline-block;
}
.job .at {
  font-weight: 700;
  margin: 0 0 12px;
}
.job ul {
  margin: 0;
  padding-left: 20px;
}
.job li {
  margin-bottom: 6px;
}
.job.next {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 700px) {
  .jobs {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
}

/* hair lab */
.lab {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 700px) {
  .lab {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.stage {
  background: var(--c);
  border: 4px solid var(--ink);
  border-radius: 40px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 16px 16px 0;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
}
.stage svg {
  display: block;
  width: 100%;
  height: auto;
}
#avatar .hb {
  fill: var(--base);
  transition: fill 0.35s;
}
#avatar .hh {
  fill: var(--hl);
  transition: fill 0.35s;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
@media (max-width: 700px) {
  .swatches {
    justify-content: center;
  }
}
.sw {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
}
.sw:hover {
  transform: scale(1.15) rotate(-8deg);
}
.sw[aria-pressed="true"] {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}
.pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.pick input {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
}

input[type="color" i] {
  inline-size: 2rem;
  block-size: 2rem;
}

input[type="color" i]::-webkit-color-swatch-wrapper {
  padding: 0;
  width: 100%;
  height: 100%;
}

.colorpick-eyedropper-input-trigger {
  display: none;
}

.bubble {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 1rem 2rem;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 28ch;
}
.hname {
  font-family: Caveat, cursive;
  color: var(--a);
  font-size: 34px;
  margin: 0 0 8px;
}

/* footer */
.hello {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}
.hello h2 {
  font-size: clamp(44px, 10vw, 120px);
}
.hello .btn {
  display: inline-block;
  text-decoration: none;
  margin-top: 12px;
}
.hello small {
  display: block;
  margin-top: 4.5rem;
  opacity: 0.7;
}
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg, #2b3bff);
  color: var(--on-bg, #fffdf7);
  border-top: 4px solid var(--ink, #0e1033);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 1.0625rem;
  font-weight: 700;
  animation: cc-in 0.4s ease-out;
}
.cc p {
  margin: 0;
  max-width: 60ch;
}
.cc-actions {
  display: flex;
  gap: 12px;
}
.cc .btn {
  font-size: 16px;
  padding: 8px 20px;
  box-shadow: 4px 4px 0 var(--ink, #0e1033);
}
@keyframes cc-in {
  from {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc {
    animation: none;
  }
}
