:root {
  color-scheme: light;
  --ink: #173a31;
  --muted: #244739;
  --cream: #fff0cb;
  --yellow: #f4d75a;
  --red: #ec7544;
  --blue: #82bfd2;
  --mint: #c5d794;
  --display: "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font: 100%/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #934021;
  outline-offset: 4px;
}
p { color: var(--muted); }
.shell { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--cream); transform: translateY(-150%); z-index: 2; }
.skip:focus { transform: none; }

.top, .footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; }
.top { min-height: 76px; padding-block: .7rem; }
.top nav, .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.top a, .footer a { text-decoration: none; }
.top nav a, .footer nav a, .footer > a:last-child { font-size: .87rem; font-weight: 750; }
.top nav a:hover, .footer a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; font-family: var(--display); font-size: 1.25rem; font-weight: 900; letter-spacing: -.06em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .48em; border: 2px solid var(--ink); border-radius: 45%; background: var(--yellow); color: var(--ink); line-height: 1; }
.suffix { color: #934021; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 5vw, 4.2rem); }
.hero {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background-color: var(--yellow);
  background-image: radial-gradient(circle, #81502326 1px, transparent 1.5px);
  background-size: 8px 8px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  min-height: 540px;
  padding-block: clamp(2.5rem, 5.8vw, 5rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 6.55vw, 6.65rem);
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--cream);
}
.hero h1 span { color: var(--ink); }
.hero-copy p { max-width: 35ch; margin: 1.3rem 0 1.5rem; font-size: clamp(1rem, 1.7vw, 1.22rem); font-weight: 600; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: .35rem;
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  font: 800 .95rem/1.45 var(--display);
  text-decoration: none;
}
.button:hover { background: var(--mint); }
.hero-art {
  min-width: 0;
  border: 4px solid var(--ink);
  padding: clamp(.38rem, 1vw, .65rem);
  background: var(--blue);
  box-shadow: 7px 8px 0 var(--ink);
}
.hero-art img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); }

.apps, .studio, .contact { padding-block: clamp(2.8rem, 6vw, 5.4rem); }
.apps { background: var(--cream); }
.studio { background: var(--red); border-block: 3px solid var(--ink); }
.contact { background: var(--blue); }
.section-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1.3rem 3rem; }
.section-inner p { max-width: 50ch; margin: 0 0 .9rem; }
.portfolio-note { margin: .7rem 0 1.65rem; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.2vw, 1.6rem); }
.app-card {
  padding: .75rem .75rem 1.2rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: .45rem;
  box-shadow: 4px 5px 0 var(--ink);
}
.app-card h3, .app-card p { margin-inline: .4rem; }
.app-card h3 { margin-block: .3rem .5rem; font-size: clamp(1.45rem, 2.7vw, 2.05rem); }
.app-card p:last-child { margin-block: 0; font-size: .95rem; }
.app-platform { margin-block: .85rem 0; font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.app-art {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 2px solid var(--ink);
  border-radius: .2rem;
  background-image: linear-gradient(#173a3126 1px, transparent 1px), linear-gradient(90deg, #173a3126 1px, transparent 1px);
  background-size: 17px 17px;
}
.app-art span {
  display: grid;
  place-items: center;
  width: 61px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 35% 34% 32% 32%;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  transform: rotate(-9deg);
}
.app-art-web { background-color: var(--blue); color: #204e5e; }
.app-art-mobile { background-color: var(--red); color: #934021; }
.app-art-desktop { background-color: var(--mint); color: #236044; }

.contact h2 { margin-bottom: .7rem; }
.contact-form {
  display: grid;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: .45rem;
  box-shadow: 5px 6px 0 var(--ink);
}
.contact-form label { font-size: .88rem; font-weight: 800; }
.contact-form label span { font-weight: 450; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 44px;
  margin: .3rem 0 1rem;
  padding: .55rem .7rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: .55rem;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form button:disabled { opacity: .65; cursor: default; }
.contact-form .contact-status { margin: .9rem 0 0; }
.contact-form .contact-status:empty { margin: 0; }
.footer {
  width: 100%;
  padding: 1.5rem max(2.5rem, calc((100% - 1160px) / 2));
  border-top: 3px solid var(--ink);
  background: var(--yellow);
}
.document { max-width: 740px; min-height: 68vh; padding-block: clamp(2.5rem, 7vw, 6rem); }
.document h1 { font-size: clamp(2.45rem, 7vw, 4.6rem); margin-bottom: 1.3rem; }
.document h2 { margin: 1.5em 0 .4em; font-size: clamp(1.5rem, 4vw, 2rem); }
.document p { margin-top: .65rem; }
.eyebrow { margin: 0 0 .9rem; font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.notice { padding: .85rem 1rem; border: 2px solid var(--ink); border-radius: .35rem; background: var(--yellow); }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .top { min-height: 64px; }
  .hero-inner, .section-inner { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-block: 2.2rem 1.6rem; }
  .hero-art { width: min(100%, 410px); justify-self: center; }
  .app-grid { grid-template-columns: 1fr; }
  .footer.shell { width: 100%; padding-inline: 1.25rem; }
}
@media (max-width: 460px) {
  .top nav { gap: .5rem .75rem; }
  .footer { align-items: flex-start; flex-direction: column; }
}
