:root {
  color-scheme: dark;
  --ground: #111819;
  --ink: #eef2ee;
  --muted: #b5c2bf;
  --line: #35413f;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .35em; }
a:focus-visible { outline: 2px solid #dce9e1; outline-offset: .3rem; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.frame { width: min(100% - var(--gutter) * 2, 86rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .8rem; background: var(--ground); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.masthead { border-bottom: 1px solid var(--line); }
.brand { font-weight: 680; letter-spacing: -.035em; text-decoration: none; }
.masthead nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
.masthead nav a, .footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; color: var(--ink); }
.hero { display: grid; justify-items: center; text-align: center; padding: clamp(2rem, 5vw, 4.25rem) 0 clamp(2.5rem, 6vw, 5rem); }
.cottage { width: min(100%, 49rem); filter: saturate(.75); mask-image: linear-gradient(#000 79%, transparent 98%); animation: emerge 1.35s ease-out both; }
.hero-copy { position: relative; margin-top: clamp(-4.25rem, -5vw, -1.15rem); }
h1 { font-size: clamp(2.75rem, 10vw, 9.5rem); font-weight: 620; letter-spacing: -.085em; line-height: .94; padding-right: .08em; }
.hero-copy p { margin-top: clamp(.9rem, 2vw, 1.5rem); color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.6rem); letter-spacing: -.02em; }
.label { font: 500 .875rem/1.5 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.hero-link { display: grid; place-items: center; min-height: 44px; margin-top: clamp(1.35rem, 4vw, 3rem); padding-inline: 1rem; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; }
.hero-link:hover { background: var(--ink); color: var(--ground); }
.section-label { color: var(--muted); }
.work, .studio { border-top: 1px solid var(--line); scroll-margin-top: 1rem; padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(3rem, 8vw, 7rem); }
.studio-copy { max-width: 38rem; margin-top: 1.5rem; color: var(--muted); line-height: 1.7; }
.studio { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.manifesto { font-size: clamp(1.65rem, 4.1vw, 4rem); font-weight: 520; line-height: 1.13; letter-spacing: -.05em; }
.manifesto span { display: inline-block; color: var(--muted); margin-top: .3em; }
.footer { border-top: 1px solid var(--line); }
@keyframes emerge {
  from { opacity: .15; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 740px) {
  .studio { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .cottage { animation: none; }
}

.catalog-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.catalog-intro h2 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.07em; font-weight: 590; }
.catalog-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.catalog-nav a, .store-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  text-decoration: none;
}
.catalog-nav a:hover, .store-link:hover { background: var(--ink); color: var(--ground); }
.store-link { color: var(--ink); font-size: .9375rem; align-self: start; margin-top: .75rem; }
.catalog-group { margin-top: clamp(2.5rem, 6vw, 5rem); scroll-margin-top: 1.25rem; }
.catalog-group h3 { font-size: clamp(1.6rem, 3vw, 2.65rem); font-weight: 570; letter-spacing: -.045em; margin-bottom: 1.1rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; align-items: start; }
.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border: 1px solid var(--line);
  background: #151e1f;
}
.app-heading { display: flex; align-items: center; gap: .9rem; }
.app-heading h4 { margin: .15rem 0 0; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.12; letter-spacing: -.035em; }
.app-category { color: var(--muted); font-size: .75rem; }
.app-icon { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: .8rem; }
.app-monogram {
  display: grid;
  place-items: center;
  background: #24302c;
  color: #d4e8ad;
  border: 1px solid #536356;
  font: 500 1rem ui-monospace, monospace;
  letter-spacing: .08em;
}
.app-hook { margin: .9rem 0 .25rem; color: var(--muted); line-height: 1.55; }
.app-card details { margin-top: auto; }
.app-card summary { cursor: pointer; padding-block: .6rem; line-height: 1.4; }
.app-card summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.app-card summary:focus-visible { outline: 2px solid var(--ink); outline-offset: .15rem; }
.app-card details p { margin: .35rem 0 .7rem; color: var(--muted); line-height: 1.65; }

.features { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 3rem); }
.app-feature { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; border: 1px solid var(--line); }
.feature-copy { align-self: center; padding: clamp(1.5rem, 5vw, 5rem); }
.feature-category { color: var(--feature-accent); }
.feature-copy h3 { margin-block: .6rem 1rem; font-size: clamp(2.1rem, 5.8vw, 6rem); line-height: .96; letter-spacing: -.065em; font-weight: 590; }
.feature-line { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.25; }
.feature-copy p:last-of-type { color: var(--muted); margin-top: .75rem; line-height: 1.6; max-width: 32rem; }
.feature-copy .store-link { margin-top: 1.3rem; }
.feature-art { position: relative; margin: 0; display: grid; place-items: center; overflow: hidden; min-height: clamp(20rem, 45vw, 36rem); }
.feature-art img { width: auto; max-height: clamp(15rem, 36vw, 29rem); box-shadow: 0 1.25rem 2.7rem #0007; }
.feature-nadir { --feature-accent: #d4c8ff; background: #181723; }
.nadir-art { background: radial-gradient(ellipse at 50% 76%, #4b3865, #211a34 63%, #151326); }
.nadir-art img { grid-area: 1 / 1; border-radius: .65rem; transform: translate(-25%, 2%) rotate(-7deg); }
.nadir-art img + img { transform: translate(29%, -4%) rotate(8deg) scale(.88); }
.feature-detective { --feature-accent: #ead0a6; background: #211d18; }
.detective-art { grid-column: 1; grid-row: 1; background: #44372b; padding: 1.5rem 1rem; align-content: center; gap: .85rem; }
.detective-art img { border: .4rem solid #beaa8d; rotate: -3deg; }
.detective-art figcaption { color: #f2dfc5; font: .875rem ui-monospace, monospace; letter-spacing: .05em; }
.feature-location { --feature-accent: #cadea9; background: #18211c; }
.location-art { grid-template-columns: 1fr 1fr; gap: 6%; padding: clamp(1rem, 3vw, 2.25rem) 9%; background-color: #26352a; background-image: repeating-linear-gradient(0deg, transparent 0 31px, #92a48922 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #92a48922 31px 32px); }
.location-art img { width: 100%; max-height: 29rem; object-fit: contain; box-shadow: 0 .85rem 1.8rem #0007; }
.location-art img:first-child { transform: translateY(-3%); }
.location-art img + img { transform: translateY(3%); }
@media (max-width: 740px) {
  .app-feature { grid-template-columns: 1fr; }
  .detective-art { grid-row: auto; }
}

.app-terms { color: var(--muted); font-size: .875rem; line-height: 1.45; margin-block: .3rem .15rem; }
.app-resources { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
