/* =========================================================
   The SIM Card Method — shared styles (generic blog shell)
   Identity: bright, modern, product-blog. A geometric grotesque
   over clean Inter, a confident signal-blue, and a signal-bars
   mark as the recurring motif. Placeholder topic: mobile / SIM
   connectivity (travel eSIM, switching carriers, dual-SIM).
   ========================================================= */

:root {
  --bg:      #FFFFFF;
  --bg-2:    #F4F6FB;
  --ink:     #14161C;
  --blue:    #2B54E0;
  --blue-dk: #1E3FB0;
  --muted:   #565E6C;
  --faint:   #8A93A3;
  --line:    #E6E9F0;

  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 70rem;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.narrow { max-width: 46rem; }

.eyebrow { font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--blue); }
.tag { font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--faint); }

/* signal-bars mark */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.05em; }
.bars i { width: 3px; background: var(--blue); border-radius: 1px; display: block; }
.bars i:nth-child(1) { height: 35%; }
.bars i:nth-child(2) { height: 58%; }
.bars i:nth-child(3) { height: 80%; }
.bars i:nth-child(4) { height: 100%; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); z-index: 10; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .bars { height: 1.5rem; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: clamp(0.85rem, 2.5vw, 1.9rem); flex-wrap: wrap; }
.topnav a { font-family: var(--body); font-weight: 500; font-size: 0.86rem; color: var(--muted); text-decoration: none; transition: color .15s ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--blue); }
.topnav .is-current { color: var(--ink); }
.topnav .btn { font-family: var(--body); font-weight: 600; font-size: 0.82rem; color: #fff; background: var(--blue); padding: 0.5rem 0.95rem; border-radius: 999px; }
.topnav .btn:hover { background: var(--blue-dk); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 6.5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 1rem auto 0.6rem; max-width: 18ch;
}
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* ---------- Featured + latest ---------- */
.stream { padding-bottom: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
.featured { text-decoration: none; display: block; }
.featured__art {
  aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 15% 20%, rgba(43,84,224,0.16), transparent 55%),
    radial-gradient(120% 120% at 85% 80%, rgba(43,84,224,0.10), transparent 50%),
    var(--bg-2);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.featured__art .bars { height: 2.75rem; }
.featured__meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
.featured__cat { color: var(--blue); }
.featured__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.featured:hover .featured__title { color: var(--blue); }
.featured__dek { color: var(--muted); margin: 0; max-width: 46ch; }

.latest__head { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; padding-bottom: 0.9rem; border-bottom: 2px solid var(--ink); margin: 0 0 0.5rem; }
.mini { display: block; text-decoration: none; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.mini__meta { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.35rem; }
.mini__cat { color: var(--blue); }
.mini__title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.mini:hover .mini__title { color: var(--blue); }

/* ---------- Topics ---------- */
.topics { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.topics__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.topics__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--body); font-weight: 500; font-size: 0.9rem;
  text-decoration: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  padding: 0.55rem 1rem; border-radius: 999px; transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Newsletter ---------- */
.subscribe { padding-block: clamp(2.75rem, 7vw, 4rem); }
.subscribe__inner { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.subscribe__inner .bars { height: 1.75rem; margin-bottom: 0.75rem; }
.subscribe__inner .bars i { background: #6f8bff; }
.subscribe__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin: 0.3rem 0 0.5rem; }
.subscribe__note { color: #b9c0cf; max-width: 42ch; margin: 0 auto 1.6rem; }
.subscribe__form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; max-width: 30rem; margin-inline: auto; }
.subscribe__input {
  flex: 1 1 14rem; font-family: var(--body); font-size: 0.92rem;
  padding: 0.85rem 1.1rem; border: 1.5px solid #3a3f4c; background: #1c1f28; color: #fff; border-radius: 10px;
}
.subscribe__input::placeholder { color: #7a8090; }
.subscribe__input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.subscribe__btn {
  font-family: var(--body); font-weight: 600; font-size: 0.86rem;
  padding: 0.85rem 1.5rem; border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  cursor: pointer; border-radius: 10px; transition: background .15s ease, border-color .15s ease;
}
.subscribe__btn:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.75rem; padding-bottom: 1.75rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer__brand .bars { height: 1.4rem; }
.footer__brand strong { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-family: var(--body); font-weight: 500; font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--blue); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--blue); text-decoration: underline; }
.footer__note { color: var(--faint); font-size: 0.82rem; }

/* ---------- Doc / legal ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc__head { max-width: 46rem; margin-bottom: 2rem; }
.doc__title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0.6rem 0 0.5rem; }
.doc__updated { color: var(--faint); }
.doc__note { max-width: 46rem; margin-bottom: 2.5rem; padding: 1rem 1.25rem; background: var(--bg-2); border-left: 3px solid var(--blue); font-size: 0.95rem; color: var(--muted); }
.doc__body { max-width: 46rem; }
.doc__body h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; margin: 2.4rem 0 0.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc__body h2:first-of-type { border-top: none; padding-top: 0; }
.doc__body p, .doc__body li { color: #333947; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li { margin-bottom: 0.4rem; }
.doc__body a { color: var(--blue); }
.back-link { display: inline-block; margin-top: 2.5rem; font-family: var(--body); font-weight: 600; font-size: 0.86rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--blue); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .7s cubic-bezier(.2,.65,.3,1) both; }
  .hero h1 { animation-delay: .06s; }
  .hero p { animation-delay: .14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stream { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
