@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #1e2b27;
  --muted: #727771;
  --line: rgba(30, 43, 39, 0.16);
  --green: #24453a;
  --green-light: #a8c6a5;
  --yellow: #efc94e;
  --yellow-dark: #806515;
  --white: #fffdf8;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(36, 69, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 69, 58, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linejoin: round;
  stroke-linecap: square;
}

.brand-word {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.075em;
}

.brand-word span {
  color: var(--yellow-dark);
}

.topbar-note,
.eyebrow,
.section-heading,
.tool-number,
.card-category,
.card-tags,
.footer-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #789b68;
  box-shadow: 0 0 0 4px rgba(120, 155, 104, 0.13);
}

.intro {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: 32px;
  padding: 30px 0 28px;
}

.intro-copy {
  position: relative;
  z-index: 1;
  animation: enter 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--green);
}

.eyebrow span {
  color: #9b8d6b;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.075em;
}

h1 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.intro-text {
  max-width: 540px;
  margin-bottom: 0;
  color: #5e655f;
  font-size: 15px;
  line-height: 1.75;
}

.intro-sketch {
  position: relative;
  min-height: 258px;
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--green);
  animation: enter 800ms 120ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.intro-sketch svg {
  width: 100%;
  overflow: visible;
}

.sketch-frame,
.sketch-room {
  stroke: rgba(36, 69, 58, 0.47);
  stroke-width: 1.5;
}

.sketch-detail {
  stroke: rgba(36, 69, 58, 0.23);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.sketch-dim,
.sketch-tick {
  stroke: #b28e2f;
  stroke-width: 1.25;
}

.sketch-point {
  fill: var(--yellow);
  stroke: var(--paper);
  stroke-width: 2;
}

.sketch-label,
.sketch-size {
  position: absolute;
  color: #7a8079;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sketch-label {
  top: 37px;
  right: 4px;
}

.sketch-size {
  right: 4px;
  bottom: 36px;
  color: var(--yellow-dark);
}

.calculator-section {
  padding: 20px 0 52px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
}

.section-count {
  color: #92958c;
  font-weight: 500;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  min-height: 296px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px 25px 20px;
  border: 1px solid rgba(30, 43, 39, 0.14);
  border-radius: 5px;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  animation: enter 650ms 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.tool-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0.11);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(30, 43, 39, 0.12);
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  transform: scaleX(1);
}

.tool-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.paint-card {
  background: var(--yellow);
  color: #26302a;
}

.paint-card::before {
  background: var(--green);
}

.drywall-card {
  background: #243b34;
  color: #f7f3e9;
}

.drywall-card::before {
  background: #d7e4c6;
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-category {
  padding-top: 5px;
  color: rgba(30, 43, 39, 0.67);
}

.drywall-card .card-category {
  color: rgba(247, 243, 233, 0.68);
}

.card-illustration {
  width: 116px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: -5px -4px 0 0;
}

.card-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.paint-illustration svg {
  stroke: rgba(36, 69, 58, 0.85);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paint-illustration .paint-fill {
  fill: rgba(255, 253, 248, 0.46);
  stroke: none;
}

.drywall-illustration svg {
  stroke: rgba(232, 238, 219, 0.78);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drywall-illustration .drywall-accent {
  fill: #8da88a;
  stroke: none;
}

.drywall-illustration circle,
.drywall-illustration path:nth-last-child(1) {
  stroke: #d7e4c6;
}

.card-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin-top: -2px;
}

.tool-number {
  display: block;
  margin-bottom: 10px;
  color: rgba(30, 43, 39, 0.58);
  font-size: 10px;
}

.drywall-card .tool-number {
  color: rgba(247, 243, 233, 0.57);
}

.card-copy h2 {
  margin-bottom: 11px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(31px, 3.4vw, 43px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.card-copy p {
  max-width: 370px;
  margin-bottom: 0;
  color: rgba(30, 43, 39, 0.79);
  font-size: 13px;
  line-height: 1.6;
}

.drywall-card .card-copy p {
  color: rgba(247, 243, 233, 0.78);
}

.card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(30, 43, 39, 0.2);
}

.drywall-card .card-bottom {
  border-color: rgba(247, 243, 233, 0.2);
}

.card-tags {
  color: rgba(30, 43, 39, 0.68);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.drywall-card .card-tags {
  color: rgba(247, 243, 233, 0.65);
}

.card-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.card-link span {
  display: inline-block;
  font-size: 17px;
  transition: transform 180ms ease;
}

.tool-card:hover .card-link span,
.tool-card:focus-visible .card-link span {
  transform: translate(3px, -3px);
}

.footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.footer-mark {
  color: #8d9189;
  font-size: 9px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 36px, 560px);
  }

  .topbar {
    min-height: 70px;
  }

  .topbar-note {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .intro {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 48px 0 26px;
  }

  .intro-copy {
    max-width: 560px;
  }

  h1 {
    max-width: 510px;
    font-size: clamp(42px, 11vw, 58px);
  }

  .intro-text {
    max-width: 500px;
    font-size: 14px;
  }

  .intro-sketch {
    position: absolute;
    width: 160px;
    min-height: 0;
    right: 6px;
    top: 66px;
    opacity: 0.2;
    pointer-events: none;
  }

  .sketch-label,
  .sketch-size {
    display: none;
  }

  .calculator-section {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tool-card {
    min-height: 296px;
    padding: 19px 20px 17px;
  }

  .card-illustration {
    width: 94px;
    height: 78px;
  }

  .card-copy h2 {
    font-size: 36px;
  }

  .footer {
    min-height: 74px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px 0;
  }

  .footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .topbar-note {
    max-width: 138px;
    text-align: right;
    line-height: 1.45;
  }

  .intro {
    padding-top: 40px;
  }

  h1 {
    font-size: 41px;
  }

  .tool-card {
    min-height: 310px;
  }

  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
