/* ------------------------------------------------------------------
   Anchit Labs — shared shell for the portfolio pages (home, finance
   tools, games, hire). The individual tool pages keep their own inline
   styles; this file is only the frame around them.
   ------------------------------------------------------------------ */

:root {
  --bg: #fff8f1;
  --bg-2: #fdf0e8;
  --surface: #ffffff;
  --line: #f0e3d6;
  --line-2: #e6d7c8;
  --text: #241f2e;
  --text-2: #4a4256;
  --muted: #635a72;
  --coral: #ff7a59;
  --coral-ink: #c2451f;      /* coral dark enough for small text on cream */
  --coral-soft: #fdefe7;
  --coral-soft-ink: #8a3a1c;
  --mint-soft: #e3f3f0;
  --mint-ink: #0f6b61;
  --sun-soft: #fff0cf;
  --sun-ink: #7a5600;
  --lilac-soft: #f4eff9;
  --lilac-ink: #52407a;
  --ink: #241f2e;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(36, 31, 46, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', 'Nunito', system-ui, sans-serif; letter-spacing: -0.02em; }
a { color: var(--text); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.75rem; }

/* ---------------- nav ---------------- */
.nav { border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.18rem; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand i { width: 11px; height: 11px; border-radius: 3px; background: var(--coral); display: inline-block; font-style: normal; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; font-size: .95rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--coral-ink); }
.nav-links a.here { border-bottom: 2px solid var(--coral); padding-bottom: 3px; }
.btn, .btn-ghost {
  font: inherit; font-weight: 800; text-decoration: none; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem; border: 2px solid var(--ink); cursor: pointer;
}
.btn { background: var(--ink); color: var(--bg); }
.btn:hover { background: #342c44; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(36, 31, 46, .06); color: var(--ink); }
.btn-link { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.btn-link:hover { color: var(--coral-ink); }

/* ---------------- hero ---------------- */
.hero { padding: 4.5rem 0 3rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 1.3rem; }
.eyebrow i { width: 26px; height: 2px; background: var(--coral); display: inline-block; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); font-weight: 700; line-height: 1.05; margin: 0 0 1.3rem; max-width: 16ch; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); margin: 0 0 2.1rem; max-width: 42rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 3.2rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.7rem; }
.stats b { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 700; display: block; line-height: 1.2; }
.stats span { font-size: .87rem; font-weight: 700; color: var(--muted); }

/* ---------------- sections ---------------- */
.section { padding: 2.6rem 0 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; margin: 0; }
.section-head a { font-size: .95rem; font-weight: 800; color: var(--coral-ink); text-decoration: none; }
.section-sub { font-size: 1.05rem; color: var(--muted); margin: 0 0 2.1rem; max-width: 40rem; }
.section-sub b { color: var(--text); }

.band { background: var(--bg-2); border-top: 1px solid #f3decd; border-bottom: 1px solid #f3decd; padding: 4rem 0; margin: 4.5rem 0; }
.band .section { padding-top: 0; }

/* ---------------- spreadsheet cards ---------------- */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.sheet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.sheet-card:hover { border-color: var(--coral); }
.sheet-card img { width: 100%; height: 170px; object-fit: cover; object-position: center top; display: block; border-bottom: 1px solid var(--line); }
.sheet-card-noshot { height: 170px; display: flex; align-items: center; justify-content: center; background: var(--lilac-soft); color: var(--lilac-ink); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.sheet-card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.sheet-card strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.sheet-card-line { font-size: .92rem; line-height: 1.5; color: var(--text-2); }
.sheet-card-cta { font-size: .88rem; font-weight: 800; color: var(--coral-ink); margin-top: .25rem; }

/* ---------------- game cards ---------------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: block; }
.game-card:hover { border-color: var(--coral); }
.game-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.game-card-body { padding: 1.4rem 1.6rem 1.6rem; display: block; }
.game-card strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; display: block; margin-bottom: .35rem; }
.game-card-line { font-size: .95rem; line-height: 1.55; color: var(--text-2); }

/* ---------------- small tool rows ---------------- */
.tool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.75rem; }
.tool-row { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.tool-row:hover .tool-row-name { color: var(--coral-ink); }
.tool-row-name { font-size: 1.02rem; font-weight: 800; display: block; }
.tool-row-name::after { content: ' →'; color: var(--coral-ink); }
.tool-row-line { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.beta { font-style: normal; font-size: .68rem; font-weight: 800; background: var(--sun-soft); color: var(--sun-ink); padding: .15rem .45rem; border-radius: 999px; vertical-align: middle; }

/* ---------------- feature row (image + text) ---------------- */
.feature { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; }
.feature .shot { flex: 1 1 340px; min-width: 0; }
.feature .shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.feature .text { flex: 999 1 380px; min-width: 0; }
.feature h3 { font-size: 1.6rem; margin: 0 0 .7rem; }
.feature p { font-size: 1rem; line-height: 1.65; color: var(--text-2); margin: 0 0 1.1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; padding: 0; }
.chip { font-size: .78rem; font-weight: 800; background: var(--coral-soft); color: var(--coral-soft-ink); padding: .4rem .8rem; border-radius: 999px; }
.chip-2 { background: var(--mint-soft); color: var(--mint-ink); }
.chip-3 { background: var(--lilac-soft); color: var(--lilac-ink); }
.chip-4 { background: var(--sun-soft); color: var(--sun-ink); }

/* ---------------- dark call-to-action panel ---------------- */
.panel { background: var(--ink); color: #f6f2ec; border-radius: 26px; padding: 3rem; }
.panel h2, .panel h3 { color: #fff; }
.panel p { color: #bdb4c6; }
.panel .btn { background: var(--coral); color: #231408; border-color: var(--coral); }
.panel .btn:hover { background: #ff8e72; color: #231408; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; margin: 2rem 0 2.5rem; }
.panel-grid h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.panel-grid p { font-size: .95rem; line-height: 1.6; margin: 0; }
.panel-grid > div { border-top: 3px solid var(--coral); padding-top: 1.2rem; }
.panel-grid > div:nth-child(2) { border-top-color: #ffc857; }
.panel-grid > div:nth-child(3) { border-top-color: #19a89b; }

/* ---------------- footer ---------------- */
.foot { padding: 4rem 0 4.5rem; }
.foot-in { border-top: 1px solid var(--line); padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center; }
.foot span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; font-weight: 700; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--coral-ink); }

.ad-slot { text-align: center; margin: 2.5rem auto; min-height: 0; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .feature, .panel { padding: 1.5rem; }
  .nav-in { padding: .9rem 1.25rem; }
  .nav-links { gap: 1rem; font-size: .9rem; }
  .wrap { padding: 0 1.25rem; }
  .band { margin: 3rem 0; padding: 2.75rem 0; }
}

/* Chain Dunk's screenshot is portrait (it is a phone game), so it letterboxes inside a
   landscape card — show it whole on a dark ground rather than cropping its sides off. */
.game-card img[src*="chain-dunk"] { object-fit: contain; background: #140f1c; }

/* ---------------- icons ---------------- */
.icon { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.tool-row { display: flex; gap: 1rem; align-items: flex-start; }
.tool-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: var(--coral-soft); color: var(--coral-ink);
  display: flex; align-items: center; justify-content: center; margin-top: .15rem;
}
.tool-row:hover .tool-icon { background: var(--coral); color: #fff; }
.tool-row-text { min-width: 0; }
.sheet-card strong, .game-card strong { display: flex; align-items: center; gap: .55rem; }
.sheet-card strong .icon, .game-card strong .icon { color: var(--coral-ink); width: 19px; height: 19px; }

/* ---------------- email chooser ---------------- */
.email-wrap { position: relative; display: inline-block; }
.email-menu {
  position: absolute; z-index: 40; top: calc(100% + .5rem); left: 0; width: 17.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(36, 31, 46, .28); padding: .5rem 0; text-align: left;
}
.email-menu-head { margin: .2rem 0 .4rem; padding: 0 1rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.email-menu-item {
  display: flex; width: 100%; align-items: center; gap: .8rem; padding: .65rem 1rem;
  font: inherit; font-size: .92rem; font-weight: 700; color: var(--text); text-align: left;
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.email-menu-item:hover, .email-menu-item:focus-visible { background: var(--bg-2); color: var(--text); outline: none; }
.email-menu-mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.email-menu-copy { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .7rem; }
.email-menu-copy span span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) {
  /* centring the menu on the trigger pushes it off the left edge when the button sits near it */
  .email-menu { left: 0; transform: none; width: min(17.5rem, calc(100vw - 2.5rem)); }
}
