:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --ink: #15181f;
  --secondary: #51545c;
  --line: #d7d7d0;
  --accent: #a63e1c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.container { width: min(78rem, 100% - clamp(2.5rem, 9vw, 8rem)); margin-inline: auto; }

.skip { position: absolute; z-index: 3; top: 1rem; left: 1rem; padding: .7rem 1rem; background: white; }
.skip:not(:focus) { clip-path: inset(100%); }
.masthead, .footer, .contact { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.masthead { min-height: 5.75rem; border-bottom: 1px solid var(--line); }
.masthead a, .footer a { text-decoration: none; }
.masthead nav, .wordmark { display: flex; align-items: center; }
.masthead nav { gap: clamp(1rem, 3vw, 2rem); font-size: .9375rem; font-weight: 600; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; }
.wordmark { gap: .55rem; font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.suffix { margin-inline-start: -.26rem; color: var(--secondary); font-size: .875rem; font-weight: 550; }
.mark { display: inline-block; width: 1rem; height: 1rem; background: var(--accent); clip-path: polygon(0 0, 32% 0, 32% 68%, 100% 68%, 100% 100%, 0 100%); }

.hero { padding-block: clamp(2.5rem, 7vw, 6rem); }
.eyebrow { font-size: .875rem; line-height: 1.4; font-weight: 700; color: var(--accent); }
h1 { margin-top: 1rem; max-width: 16ch; font-size: clamp(3.05rem, 6.1vw, 6.15rem); font-weight: 690; letter-spacing: -.06em; word-spacing: .025em; line-height: .99; text-wrap: balance; }
h1 em { color: var(--accent); font-style: normal; }
.intro { margin-top: 1.5rem; max-width: 39ch; color: var(--secondary); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.125rem; padding: .7rem 1.2rem; border-radius: .7rem; background: var(--ink); color: white; text-decoration: none; font-weight: 650; }
.button:hover { background: var(--accent); color: white; }
.hero .button { margin-top: 1.65rem; }

.portfolio { padding-block: 1rem clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.375rem); letter-spacing: -.055em; line-height: 1.07; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.product { display: flex; flex-direction: column; align-items: flex-start; gap: .52rem; min-height: 18rem; padding: clamp(1.15rem, 2.45vw, 1.9rem); border: 1px solid var(--line); border-radius: 1.05rem; background: #faf9f5; }
.app-icon { display: grid; place-content: center; width: 4rem; height: 4rem; margin-bottom: .7rem; border-radius: .95rem; }
.duo-icon { grid-template-columns: repeat(2, 1rem); gap: .25rem; background: #f6e2d7; }
.duo-icon span { display: block; width: 1rem; height: 1.45rem; border-radius: 1rem; background: var(--accent); transform: rotate(29deg) translateY(.13rem); }
.duo-icon span + span { transform: rotate(29deg) translateY(-.13rem); background: #cb6742; }
.product h3 { font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.14; }
.product p:not(.eyebrow), .contact p { color: var(--secondary); }
.product a, .status { margin-top: auto; padding-top: .8rem; font-size: .9375rem; font-weight: 650; }
.status { color: var(--secondary); }

.contact { border-block: 1px solid var(--line); padding-block: 2rem; }
.contact h2 { font-size: 2rem; }
.contact p { margin-top: .45rem; }
.footer { min-height: 5rem; font-size: .875rem; color: var(--secondary); }

@media (max-width: 54rem) {
  .product { padding: 1.1rem; }
}

@media (max-width: 42rem) {
  .masthead { min-height: 4.5rem; }
  .products { grid-template-columns: 1fr; }
  .hero { padding-top: 2.3rem; }
  .product { min-height: 0; padding: 1.35rem; }
  .contact { align-items: flex-start; flex-direction: column; gap: 1rem; }
}
