/* designfunstuff.com: the studio's front door, in the shop's After Hours look, like the hub
   (apps/hub/app/hub.css). Same palette, fonts, logo filter and banner. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-wght-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-wght-latin.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #151a27;
  --night: #101521;
  --card: #1b2131;
  --ink: #e9e5d5; /* 13.6:1 on bg */
  --muted: #b6b7bf; /* 8.7:1 on bg */
  --accent: #f18051; /* 6.9:1 on bg */
  --signal: #949cd0; /* 6.2:1 on bg */
  --line: #555c73;
  --gutter: max(20px, 6%);
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 12px; }
.mono {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--accent);
}

/* The original dark logo, made cream with the shop's filter. */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid #ffffff30;
  background: linear-gradient(#101521c7, transparent);
}
.logo { display: block; line-height: 0; }
.logo img {
  width: 84px;
  filter: brightness(0) invert(93%) sepia(10%) saturate(351%) hue-rotate(351deg);
}
@media (min-width: 720px) { .logo img { width: 100px; } }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px var(--gutter) 56px;
  background: var(--night);
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #101521f2 0%, #101521d9 38%, #10152170 72%, #10152150 100%),
    linear-gradient(0deg, #101521 0%, transparent 35%);
}
@media (max-width: 719px) {
  .hero { padding: 120px var(--gutter) 36px; }
  .hero-shade { background: linear-gradient(0deg, #101521 8%, #101521e0 55%, #101521b3 100%); }
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw + 20px, 104px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero h1 em { letter-spacing: -0.03em; }
.lead {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: clamp(16px, 0.4vw + 14px, 19px);
  line-height: 1.7;
  color: #d0ced0;
}

/* Three doors: apps, Etsy, and the shop to come. */
.doors { padding: 0 var(--gutter) clamp(56px, 7vw, 88px); }
.doors ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .doors ul { grid-template-columns: repeat(3, 1fr); } }
.door > a,
.door > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 220px;
  padding: 28px;
  background: var(--bg);
  text-decoration: none;
  transition: background 0.18s ease;
}
.door > a:hover { background: var(--card); }
.door-name {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(28px, 1.5vw + 20px, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.door > a:hover .door-name,
.door > a:hover .door-go { color: var(--accent); }
.door-text { color: var(--muted); max-width: 34ch; }
.door-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.door-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lamp { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.foot {
  padding: 32px var(--gutter) 44px;
  background: #10131d;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 6px 0 0; }
.foot a {
  color: var(--ink);
  text-decoration-color: #7c8192;
  text-underline-offset: 5px;
}
.foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------- additions: nav, icons, about, latest, contact */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.top { justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: clamp(16px, 3vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; letter-spacing: 0.04em; text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.icon {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.door-head { display: flex; align-items: center; justify-content: space-between; }

.about {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.about h2, .contact h2 {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 3vw + 20px, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
:is(.about, .contact) h2 em {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent);
}
.about-intro > p:not(.mono) { margin: 22px 0 0; max-width: 48ch; line-height: 1.8; color: var(--muted); }
.pillars { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pillars li {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 20px; row-gap: 6px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.pillars .icon { grid-row: span 2; }
.pillars h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
}
.pillars p { margin: 0; line-height: 1.7; color: var(--muted); }

.latest { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.feature {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-top: 16px; padding: 24px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.18s ease;
}
.feature:hover { border-color: var(--accent); }
.feature:hover .feature-name, .feature:hover .feature-arrow { color: var(--accent); }
.feature-icon {
  width: 72px; height: 72px; border-radius: 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent);
}
@media (min-width: 420px) { .feature-icon { width: 96px; height: 96px; border-radius: 22px; } }
.feature picture { flex: none; line-height: 0; }
.feature-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.feature-name {
  font-family: var(--display); font-size: clamp(22px, 1vw + 18px, 30px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
}
.feature-sub { color: var(--muted); max-width: 60ch; }
.feature .door-go { margin-top: 4px; padding-top: 0; }
.feature-arrow {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--muted); stroke-width: 1.5;
}
.feature:hover .feature-arrow { stroke: var(--accent); }
@media (max-width: 419px) { .feature-arrow { display: none; } .feature { padding: 20px; } }

.contact {
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact > p:not(.mono) { margin: 20px auto 0; max-width: 52ch; line-height: 1.8; color: var(--muted); }
.contact a { color: var(--ink); text-decoration-color: #7c8192; text-underline-offset: 5px; }
.contact a:hover { color: var(--accent); }

.foot-logo {
  width: 84px; margin-bottom: 18px;
  filter: brightness(0) invert(93%) sepia(10%) saturate(351%) hue-rotate(351deg);
}
.tm { font-size: 12px; color: #a3a6b4; }
