:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --font-display:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --bg:#f5f5f7;
  --surface:#fff;
  --surface-secondary:#f2f2f4;
  --text:#1d1d1f;
  --muted:#6e6e73;
  --line:rgba(0,0,0,.09);
  --accent:#0071e3;
  --accent-soft:rgba(0,113,227,.10);
  --shell:min(1180px,calc(100% - 40px));
  --shadow:0 8px 28px rgba(0,0,0,.055);
  --radius-xl:30px;
  --radius-lg:24px;
  --radius-md:18px;
}
html[data-theme="dark"]{
  --bg:#1b1c20;
  --surface:#232429;
  --surface-secondary:#2d2f35;
  --text:#e8e9ed;
  --muted:#b2b4bc;
  --line:rgba(255,255,255,.12);
  --accent:#4aa3ff;
  --accent-soft:rgba(74,163,255,.16);
  --shadow:0 12px 34px rgba(0,0,0,.18);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{
  width:100%;
  max-width:100%;
  overflow-x:clip;
  scroll-behavior:smooth;
}
body{
  width:100%;
  max-width:100%;
  min-height:100vh;
  margin:0;
  overflow-x:clip;
  color:var(--text);
  background:var(--bg);
  font-family:var(--font-ui);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{color:inherit}
img{max-width:100%}
.shell{
  width:var(--shell);
  max-width:100%;
  margin-inline:auto;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ambient{display:none!important}

/* Global navigation: full width, quiet, content-first like apple.com */
.site-header{
  width:100%;
  max-width:none;
  min-height:64px;
  margin:0;
  padding:
    10px max(20px,calc((100% - 1180px)/2 + 20px));
  display:flex;
  align-items:center;
  gap:12px;
  position:sticky;
  top:0;
  z-index:70;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  margin-right:auto;
}
.site-logo{
  width:38px;
  height:38px;
  flex:none;
  display:block;
  object-fit:cover;
  border-radius:11px;
}
.brand-copy{min-width:0}
.brand-copy strong{
  display:block;
  font-size:1.02rem;
  line-height:1;
  font-weight:690;
  letter-spacing:-.025em;
}
.brand-copy small{display:none}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:26px;
  color:var(--muted);
  font-size:.82rem;
  font-weight:540;
}
.desktop-nav a:hover{color:var(--text)}
.header-actions{display:flex;align-items:center;gap:2px;flex:none}
.round-button{
  width:42px;
  height:42px;
  flex:none;
  padding:0;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:transparent;
  cursor:pointer;
  transition:background .18s ease,transform .15s ease;
}
.round-button:hover{background:var(--surface-secondary)}
.round-button:active{transform:scale(.96)}
.round-button i{font-size:19px;line-height:1}
.menu-button{display:none}
.theme-light-icon,.theme-dark-icon,.theme-auto-icon{display:none}
html[data-theme-mode="light"] .theme-light-icon{display:inline}
html[data-theme-mode="dark"] .theme-dark-icon{display:inline}
html[data-theme-mode="auto"] .theme-auto-icon{display:inline}

/* Secondary category rail */
.category-strip{
  display:flex;
  gap:4px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
  padding:16px 0 12px;
  scroll-snap-type:x proximity;
}
.category-strip::-webkit-scrollbar{display:none}
.category-strip a{
  flex:none;
  scroll-snap-align:start;
  padding:7px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:.76rem;
  line-height:1;
  font-weight:600;
}
.category-strip a:hover{color:var(--text);background:var(--surface)}

/* Advertising kept visible, but behaves like a compact promo strip */
.ad-carousel{
  max-width:100%;
  margin:4px auto 0;
  padding:11px;
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:8px 14px;
  overflow:hidden;
  border-radius:20px;
  background:var(--surface);
  box-shadow:var(--shadow);
  transition:opacity .18s ease;
}
.ad-carousel.is-switching{opacity:.42}
.ad-carousel-top{
  grid-column:1/-1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.eyebrow{
  color:var(--accent);
  font-size:.71rem;
  line-height:1.15;
  font-weight:650;
}
.ad-more{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:none;
  color:var(--muted);
  font-size:.7rem;
  font-weight:600;
}
.ad-carousel-media{
  grid-column:1;
  grid-row:2;
  width:150px;
  height:76px;
  overflow:hidden;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--surface-secondary);
}
.ad-carousel-media img{width:100%;height:100%;display:block;object-fit:cover}
.ad-carousel-fallback{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:.68rem;
  font-weight:700;
}
.ad-carousel-bottom{
  grid-column:2;
  grid-row:2;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ad-carousel-copy{min-width:0}
.ad-carousel-copy strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.95rem;
  letter-spacing:-.015em;
}
.ad-carousel-copy p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.38;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.ad-carousel-copy strong[hidden],.ad-carousel-copy p[hidden]{display:none}
.ad-carousel-dots{display:flex;align-items:center;gap:5px;flex:none}
.ad-carousel-dots span{width:5px;height:5px;border-radius:99px;background:var(--line)}
.ad-carousel-dots span.active{width:14px;background:var(--accent)}

/* Main editorial area */
.content-shell{padding:44px 0 56px}
.section-heading{
  min-width:0;
  margin-bottom:22px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
}
.section-heading h1,.section-heading h2{
  margin:7px 0 0;
  font-size:clamp(2.45rem,4.7vw,4.45rem);
  line-height:.95;
  letter-spacing:-.062em;
  font-weight:710;
}
.section-all{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:none;
  color:var(--accent);
  font-size:.83rem;
  font-weight:620;
}
.section-all:hover{text-decoration:underline;text-underline-offset:4px}

.page-grid,.latest-feed,.sidebar,.post-card,.post-card>a,.post-copy{
  min-width:0;
  max-width:100%;
}
.page-grid{display:block}
.latest-feed{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}

/* Lead: one large Apple-like module with text + image, not a huge vertical hero */
.feature-post{
  overflow:hidden;
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.feature-post:first-child{
  grid-column:1/-1;
  border-radius:var(--radius-xl);
}
.feature-post:first-child>a{
  min-height:410px;
  display:grid;
  grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);
  grid-template-areas:"copy visual";
  align-items:stretch;
}
.feature-post:first-child .post-copy{
  grid-area:copy;
  padding:42px 36px;
  align-self:center;
}
.feature-post:first-child .post-visual{
  grid-area:visual;
  width:100%;
  min-height:410px;
  overflow:hidden;
  background:var(--surface-secondary);
}
.feature-post:first-child .post-copy h3{
  margin:0;
  font-size:clamp(2rem,3.3vw,3.25rem);
  line-height:1.02;
  letter-spacing:-.052em;
  font-weight:710;
}
.feature-post:first-child .post-copy p{
  max-width:44ch;
  margin:14px 0 0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.5;
}

/* Two secondary feature modules */
.feature-post:nth-child(2),
.feature-post:nth-child(3){
  grid-column:span 6;
}
.feature-post:nth-child(2)>a,
.feature-post:nth-child(3)>a{
  height:100%;
  display:flex;
  flex-direction:column;
}
.feature-post:nth-child(2) .post-visual,
.feature-post:nth-child(3) .post-visual{
  width:100%;
  aspect-ratio:1.95/1;
  overflow:hidden;
  background:var(--surface-secondary);
}
.feature-post:nth-child(2) .post-copy,
.feature-post:nth-child(3) .post-copy{
  padding:20px 21px 23px;
}
.feature-post:nth-child(2) .post-copy h3,
.feature-post:nth-child(3) .post-copy h3{
  margin:0;
  font-size:1.28rem;
  line-height:1.16;
  letter-spacing:-.034em;
  font-weight:680;
}
.feature-post:nth-child(2) .post-copy p,
.feature-post:nth-child(3) .post-copy p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.45;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.post-visual{
  position:relative;
  display:grid;
  place-items:center;
  background:var(--surface-secondary);
}
.post-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.post-visual:not(.has-image)::after{
  content:"";
  width:36px;
  height:4px;
  border-radius:99px;
  background:color-mix(in srgb,var(--muted) 20%,transparent);
}
.post-meta{
  display:block;
  margin-bottom:8px;
  color:var(--accent);
  font-size:.69rem;
  line-height:1.2;
  font-weight:650;
}
.post-copy h3{font-weight:680}
.post-arrow{display:none}
.feature-post:hover h3,.compact-post:hover h3{color:var(--accent)}

/* Dense chronological rows */
.compact-post{
  grid-column:1/-1;
  overflow:hidden;
  border-radius:20px;
  background:var(--surface);
}
.compact-post>a{
  min-height:126px;
  padding:12px;
  display:grid;
  grid-template-columns:174px minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
}
.compact-post .post-visual{
  width:174px;
  height:102px;
  overflow:hidden;
  border-radius:14px;
}
.compact-post .post-copy h3{
  margin:0;
  font-size:1.08rem;
  line-height:1.27;
  letter-spacing:-.024em;
}
.compact-post .post-copy p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.86rem;
  line-height:1.43;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.compact-post .post-arrow{
  display:block;
  margin-right:4px;
  color:var(--muted);
  font-size:17px;
}
.archive-only{display:none}
.more-posts-link{
  grid-column:1/-1;
  min-height:50px;
  padding:0 16px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--surface);
  color:var(--accent);
  font-size:.84rem;
  font-weight:630;
}

/* Discovery cards are secondary, not another full page */
.sidebar{
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:16px;
}
.side-card{
  padding:22px;
  border-radius:22px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.side-title{margin-bottom:11px}
.side-title h3{
  margin:6px 0 0;
  font-size:1.35rem;
  line-height:1.1;
  letter-spacing:-.04em;
}
.popular-list{display:grid}
.popular-list>a{
  min-height:56px;
  padding:10px 0;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:27px minmax(0,1fr);
  gap:9px;
  align-items:start;
}
.popular-list>a:first-child{border-top:0}
.popular-list span{color:var(--muted);font-size:.68rem;font-weight:680}
.popular-list strong{font-size:.86rem;line-height:1.36;font-weight:620}
.popular-list a:hover strong{color:var(--accent)}
.tag-cloud{display:flex;gap:7px;flex-wrap:wrap}
.tag-cloud a{
  padding:8px 10px;
  border-radius:999px;
  background:var(--surface-secondary);
  color:var(--muted);
  font-size:.72rem;
  font-weight:580;
}
.tag-cloud a:hover{color:var(--text)}

/* Newsletter */
.community-grid{padding-bottom:56px}
.subscribe-card{
  width:min(860px,100%);
  max-width:100%;
  margin:auto;
  padding:38px;
  overflow:hidden;
  border-radius:var(--radius-xl);
  background:var(--surface);
  box-shadow:var(--shadow);
  text-align:center;
}
.subscribe-card h2{
  max-width:620px;
  margin:9px auto 9px;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1;
  letter-spacing:-.05em;
  font-weight:700;
}
.subscribe-card>p{
  max-width:560px;
  margin:0 auto 20px;
  color:var(--muted);
  line-height:1.5;
}
.subscribe-card form{
  width:min(600px,100%);
  max-width:100%;
  margin:auto;
  padding:5px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  overflow:hidden;
  border-radius:999px;
  background:var(--surface-secondary);
}
.subscribe-card input,.subscribe-card button{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.subscribe-card input{
  width:100%;
  min-height:44px;
  padding:0 14px;
  border:0;
  outline:0;
  border-radius:999px;
  background:transparent;
  color:var(--text);
}
.subscribe-card button{
  min-height:44px;
  padding:0 17px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
  color:#fff;
  background:var(--accent);
  font-weight:630;
  cursor:pointer;
}
.subscribe-card small{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.4;
}

/* Footer */
.site-footer{padding:34px 0 40px;border-top:1px solid var(--line)}
.footer-showcase{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.footer-logo{
  width:48px;height:48px;display:block;object-fit:cover;border-radius:14px
}
.footer-showcase h2{margin:12px 0 3px;font-size:1.5rem;letter-spacing:-.035em}
.footer-showcase p{margin:0;color:var(--muted);font-size:.88rem}
.footer-socials{display:flex;gap:7px;margin-top:16px}
.footer-socials a{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--surface);
  font-size:17px;
}
.footer-socials a:hover{color:var(--accent)}
.footer-contact{
  margin-top:14px;
  min-height:40px;
  padding:0 13px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--accent);
  background:var(--surface);
  font-size:.82rem;
  font-weight:620;
}
.footer-bottom{
  width:min(900px,100%);
  margin:24px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.75rem;
}
.footer-bottom>div{display:flex;gap:14px;flex-wrap:wrap}

/* Drawer and search */
.drawer-shell,.search-shell{position:fixed;inset:0;z-index:90}
.drawer-backdrop,.search-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.36);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.drawer{
  position:absolute;
  left:10px;top:10px;bottom:10px;
  width:min(380px,calc(100% - 20px));
  max-width:100%;
  overflow:auto;
  padding:20px;
  border-radius:26px;
  background:var(--surface);
  box-shadow:0 28px 90px rgba(0,0,0,.24);
}
.drawer-header,.search-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.drawer-header small,.search-dialog-head small{
  display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.06em
}
.drawer-header strong,.search-dialog-head strong{display:block;margin-top:3px;font-size:1.2rem}
.drawer-section{margin-top:22px}
.drawer-label{
  display:block;margin-bottom:9px;color:var(--muted);
  font-size:.69rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em
}
.drawer-links{display:grid}
.drawer-links a,.drawer-links button{
  width:100%;
  min-width:0;
  min-height:46px;
  padding:0 10px;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  text-align:left;
  display:flex;
  align-items:center;
  cursor:pointer;
  font-size:.92rem;
}
.drawer-links a:first-child{border-top:0}
.drawer-links a:hover,.drawer-links button:hover{color:var(--accent)}
.drawer-links i{display:none!important}
.appearance-control{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;padding:4px;border-radius:12px;background:var(--surface-secondary)
}
.appearance-control button{
  min-width:0;min-height:38px;border:0;border-radius:9px;background:transparent;
  cursor:pointer;color:var(--muted);font-size:.78rem;font-weight:620;
}
.appearance-control button.active{background:var(--surface);color:var(--text)}

.search-dialog{
  position:absolute;
  left:50%;top:16%;
  transform:translateX(-50%);
  width:min(620px,calc(100% - 28px));
  max-width:100%;
  padding:20px;
  border-radius:24px;
  background:var(--surface);
  box-shadow:0 28px 90px rgba(0,0,0,.24);
}
.search-dialog form{
  margin-top:16px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:6px;
  border-radius:14px;
  background:var(--surface-secondary);
}
.search-dialog form>i{margin-left:8px;color:var(--muted)}
.search-dialog input{min-width:0;min-height:42px;border:0;background:transparent;color:var(--text);outline:none}
.search-dialog form button{
  min-height:42px;padding:0 14px;border:0;border-radius:10px;
  color:#fff;background:var(--accent);font-weight:620;cursor:pointer
}

.toast{
  position:fixed;z-index:110;left:50%;bottom:20px;
  transform:translate(-50%,20px);
  max-width:min(420px,calc(100% - 28px));
  padding:10px 14px;border-radius:12px;
  background:var(--text);color:var(--bg);
  font-size:.82rem;opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease
}
.toast.visible{opacity:1;transform:translate(-50%,0)}
body.modal-open{overflow:hidden}
.reveal{opacity:0;transform:translateY(7px);transition:opacity .42s ease,transform .42s ease}
.reveal.visible{opacity:1;transform:none}

/* Tablet */
@media(max-width:980px){
  .desktop-nav{display:none}
  .menu-button{display:grid}

  .feature-post:first-child>a{
    min-height:360px;
    grid-template-columns:minmax(260px,.86fr) minmax(0,1.14fr);
  }
  .feature-post:first-child .post-copy{padding:34px 28px}
  .feature-post:first-child .post-visual{min-height:360px}

  .sidebar{grid-template-columns:1fr 1fr}
}

/* Phone / Android */
@media(max-width:680px){
  :root{--shell:min(100% - 24px,560px)}

  .site-header{
    min-height:62px;
    padding:
      8px max(14px,env(safe-area-inset-right))
      8px max(14px,env(safe-area-inset-left));
    gap:2px;
  }
  .brand{order:1;margin-right:auto;gap:9px}
  .header-actions{order:2;gap:0}
  .menu-button{order:3}
  #themeButton{display:none}
  .site-logo{width:38px;height:38px;border-radius:11px}
  .brand-copy strong{font-size:1rem}
  .round-button{
    width:44px;
    height:44px;
  }
  .round-button i{font-size:19px}

  .category-strip{
    padding:13px 0 9px;
    gap:4px;
  }
  .category-strip a{
    padding:7px 10px;
    background:var(--surface);
    font-size:.72rem;
  }

  .ad-carousel{
    width:var(--shell);
    max-width:100%;
    margin-top:3px;
    padding:9px;
    grid-template-columns:92px minmax(0,1fr);
    gap:7px 10px;
    border-radius:17px;
    box-shadow:none;
  }
  .ad-carousel-media{
    width:92px;
    height:62px;
    border-radius:11px;
  }
  .ad-carousel-bottom{gap:6px}
  .ad-carousel-copy strong{font-size:.84rem}
  .ad-carousel-copy p{
    margin-top:3px;
    font-size:.72rem;
    line-height:1.3;
  }
  .ad-more{font-size:.66rem}
  .ad-carousel-dots{display:none}

  .content-shell{padding:32px 0 38px}
  .section-heading{
    align-items:center;
    gap:10px;
    margin-bottom:14px;
  }
  .section-heading h1,.section-heading h2{
    margin-top:4px;
    font-size:2rem;
    line-height:.98;
    letter-spacing:-.052em;
  }
  .section-all span{display:none}

  .latest-feed{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  /* Lead is compact and content-led; text first like Apple product modules */
  .feature-post:first-child{
    grid-column:1;
    border-radius:24px;
  }
  .feature-post:first-child>a{
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "visual";
  }
  .feature-post:first-child .post-copy{
    grid-area:copy;
    padding:21px 18px 18px;
  }
  .feature-post:first-child .post-copy h3{
    max-width:14ch;
    font-size:1.55rem;
    line-height:1.04;
    letter-spacing:-.045em;
  }
  .feature-post:first-child .post-copy p{
    margin-top:9px;
    font-size:.85rem;
    line-height:1.42;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .feature-post:first-child .post-visual{
    grid-area:visual;
    width:100%;
    min-height:0;
    aspect-ratio:1.95/1;
  }

  /* Secondary features and chronological stories use compact rows */
  .feature-post:nth-child(2),
  .feature-post:nth-child(3),
  .compact-post{
    grid-column:1;
    border-radius:18px;
    box-shadow:none;
  }
  .feature-post:nth-child(2)>a,
  .feature-post:nth-child(3)>a,
  .compact-post>a{
    min-height:102px;
    padding:10px;
    display:grid;
    grid-template-columns:108px minmax(0,1fr);
    gap:12px;
    align-items:center;
  }
  .feature-post:nth-child(2) .post-visual,
  .feature-post:nth-child(3) .post-visual,
  .compact-post .post-visual{
    width:108px;
    height:78px;
    min-height:0;
    aspect-ratio:auto;
    border-radius:12px;
    overflow:hidden;
  }
  .feature-post:nth-child(2) .post-copy,
  .feature-post:nth-child(3) .post-copy,
  .compact-post .post-copy{
    min-width:0;
    padding:0;
  }
  .feature-post:nth-child(2) .post-copy h3,
  .feature-post:nth-child(3) .post-copy h3,
  .compact-post .post-copy h3{
    margin:0;
    font-size:.95rem;
    line-height:1.24;
    letter-spacing:-.02em;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
  }
  .feature-post:nth-child(2) .post-copy p,
  .feature-post:nth-child(3) .post-copy p,
  .compact-post .post-copy p,
  .compact-post .post-arrow{display:none}
  .post-meta{margin-bottom:4px;font-size:.62rem}

  .more-posts-link{
    min-height:48px;
    border-radius:14px;
  }

  /* Reduce vertical tail: categories already provide discovery at the top */
  .sidebar{
    margin-top:4px;
    display:block;
  }
  .side-card{
    padding:18px;
    border-radius:20px;
    box-shadow:none;
  }
  .sidebar #etiquetas{display:none}
  .popular-list>a:nth-child(n+4){display:none}
  .side-title h3{font-size:1.2rem}

  .community-grid{padding-bottom:40px}
  .subscribe-card{
    width:100%;
    padding:26px 16px 18px;
    border-radius:24px;
    box-shadow:none;
  }
  .subscribe-card h2{
    font-size:2rem;
    line-height:1.02;
  }
  .subscribe-card>p{
    font-size:.91rem;
    line-height:1.44;
  }
  .subscribe-card form{
    width:100%;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:8px;
    overflow:visible;
    border-radius:0;
    background:transparent;
  }
  .subscribe-card input,
  .subscribe-card button{
    width:100%;
    max-width:100%;
    min-height:48px;
    border-radius:14px;
  }
  .subscribe-card input{
    padding:0 14px;
    background:var(--surface-secondary);
  }
  .subscribe-card button{
    padding:0 14px;
    white-space:normal;
  }

  .site-footer{padding-top:28px}
  .footer-bottom{
    align-items:center;
    text-align:center;
    flex-direction:column;
    gap:10px;
  }
  .footer-bottom>div{justify-content:center}
}

/* Very narrow phones */
@media(max-width:390px){
  :root{--shell:calc(100% - 20px)}

  .site-header{
    min-height:60px;
    padding-inline:max(10px,env(safe-area-inset-left));
  }
  .site-logo{width:36px;height:36px}
  .round-button{width:42px;height:42px}

  .feature-post:first-child .post-copy h3{font-size:1.45rem}
  .feature-post:nth-child(2)>a,
  .feature-post:nth-child(3)>a,
  .compact-post>a{
    grid-template-columns:96px minmax(0,1fr);
    gap:10px;
  }
  .feature-post:nth-child(2) .post-visual,
  .feature-post:nth-child(3) .post-visual,
  .compact-post .post-visual{
    width:96px;
    height:72px;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
  .reveal{opacity:1;transform:none}
}

/* 2026-10-01: fixed Apple palette + exact advertising banner ratio */
:root{
  --bg:#f5f5f7;
  --surface:#ffffff;
  --surface-secondary:#f2f2f4;
  --text:#1d1d1f;
  --muted:#6e6e73;
  --accent:#0071e3;
  --accent-soft:rgba(0,113,227,.10);
}
html[data-theme="dark"]{
  --bg:#000000;
  --surface:#1c1c1e;
  --surface-secondary:#2c2c2e;
  --text:#f5f5f7;
  --muted:#a1a1a6;
  --accent:#2997ff;
  --accent-soft:rgba(41,151,255,.16);
}

/* Advertising artwork is authored at 3270 × 1210. Preserve that exact ratio everywhere. */
.ad-carousel{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto auto;
  gap:10px;
  padding:12px;
}
.ad-carousel-top,
.ad-carousel-media,
.ad-carousel-bottom{
  grid-column:1;
}
.ad-carousel-top{grid-row:1}
.ad-carousel-media{
  grid-row:2;
  width:100%;
  height:auto;
  aspect-ratio:3270 / 1210;
  max-height:none;
  border-radius:16px;
}
.ad-carousel-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.ad-carousel-bottom{
  grid-row:3;
  width:100%;
  min-width:0;
  align-items:center;
}
.ad-carousel-copy{
  min-width:0;
}
.appearance-control{
  margin-top:2px;
}

@media(max-width:680px){
  .ad-carousel{
    width:var(--shell);
    max-width:100%;
    padding:9px;
    gap:8px;
    border-radius:18px;
  }
  .ad-carousel-media{
    width:100%;
    height:auto;
    aspect-ratio:3270 / 1210;
    border-radius:13px;
  }
  .ad-carousel-bottom{
    grid-column:1;
    grid-row:3;
  }
  .ad-carousel-copy strong{
    font-size:.86rem;
  }
  .ad-carousel-copy p{
    font-size:.74rem;
    line-height:1.34;
  }
}


/* 2026-10-01 — Apple refinement v7
   Fewer cards, quieter hierarchy, compact footer, Newsroom-like lists. */
*{
  -webkit-tap-highlight-color:transparent;
}
.link-chevron{
  display:inline-block;
  margin-left:.08em;
  font-size:1.2em;
  line-height:.8;
  font-weight:500;
  transform:translateY(-.01em);
}

/* Apple navigation relies on plain text, not a row of pills. */
.category-strip{
  gap:22px;
  padding:15px 0 13px;
  border-bottom:1px solid var(--line);
}
.category-strip a{
  padding:5px 0;
  border-radius:0;
  background:transparent!important;
  color:var(--muted);
  font-size:.78rem;
  font-weight:540;
}
.category-strip a:hover{
  color:var(--text);
  background:transparent;
}

/* Heading + blue chevron mirrors Apple link treatment. */
.content-shell{
  padding-top:40px;
}
.section-heading{
  margin-bottom:20px;
}
.section-heading h1{
  margin:0;
  font-size:clamp(2.35rem,4.5vw,4.15rem);
  line-height:.98;
  letter-spacing:-.057em;
  font-weight:630;
}
.section-all{
  gap:2px;
  font-size:.9rem;
  font-weight:540;
  white-space:nowrap;
}

/* Keep only the hero modules as cards. */
.feature-post{
  box-shadow:none;
}
.compact-post{
  overflow:visible;
  border-radius:0;
  border-top:1px solid var(--line);
  background:transparent;
}
.compact-post>a{
  min-height:122px;
  padding:14px 0;
}
.more-posts-link{
  min-height:54px;
  padding:0;
  border-radius:0;
  border-top:1px solid var(--line);
  background:transparent;
  font-size:.9rem;
  font-weight:540;
}

/* Discovery behaves like editorial sections, not another stack of cards. */
.sidebar{
  margin-top:28px;
  padding-top:4px;
  border-top:1px solid var(--line);
}
.side-card{
  padding:24px 0 0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.side-title h3{
  margin:0;
  font-size:1.45rem;
  font-weight:620;
}
.popular-list>a{
  padding:12px 0;
}
.tag-cloud a{
  background:var(--surface);
}

/* Newsletter is one intentional module; CTA is a compact Apple-style pill. */
.community-grid{
  padding:10px 0 48px;
}
.subscribe-card{
  width:min(900px,100%);
  padding:44px 34px 32px;
  border-radius:32px;
  box-shadow:none;
}
.subscribe-card h2{
  font-size:clamp(2rem,3.7vw,3rem);
  font-weight:620;
}
.subscribe-card form{
  width:min(620px,100%);
}
.subscribe-card button{
  font-weight:560;
}

/* Apple-like utility footer: compact, text-first, no large brand showcase. */
.site-footer{
  width:100%;
  max-width:none;
  padding:0;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 92%,var(--surface));
}
.footer-inner{
  padding:18px 0 24px;
}
.footer-top{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.footer-brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.footer-logo{
  width:30px;
  height:30px;
  border-radius:8px;
  flex:none;
}
.footer-brand strong{
  font-size:.9rem;
  line-height:1;
  font-weight:620;
}
.footer-socials{
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
}
.footer-socials a{
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:transparent;
  color:var(--muted);
  font-size:16px;
}
.footer-socials a:hover{
  color:var(--text);
}
.footer-links{
  padding:12px 0 14px;
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.74rem;
}
.footer-links a:hover{
  color:var(--text);
}
.footer-bottom{
  width:100%;
  margin:0;
  padding:14px 0 0;
  border-top:1px solid var(--line);
  display:block;
  color:var(--muted);
  font-size:.72rem;
}

/* Mobile: keep one hero card, then switch to a clean editorial list. */
@media(max-width:680px){
  .category-strip{
    gap:18px;
    padding:13px 0 11px;
  }
  .category-strip a{
    padding:5px 0;
    background:transparent!important;
    font-size:.74rem;
  }

  .content-shell{
    padding:34px 0 28px;
  }
  .section-heading{
    margin-bottom:14px;
    align-items:center;
  }
  .section-heading h1{
    font-size:1.95rem;
    line-height:1;
    letter-spacing:-.05em;
  }
  .section-all{
    display:inline-flex;
    font-size:.8rem;
  }
  .section-all span{
    display:inline;
  }

  .latest-feed{
    gap:0;
  }

  .feature-post:first-child{
    margin-bottom:14px;
    border-radius:26px;
  }
  .feature-post:first-child .post-copy{
    padding:20px 18px 16px;
  }
  .feature-post:first-child .post-copy h3{
    max-width:none;
    font-size:1.46rem;
    line-height:1.06;
    letter-spacing:-.041em;
  }
  .feature-post:first-child .post-copy p{
    display:none;
  }
  .feature-post:first-child .post-visual{
    aspect-ratio:2.02/1;
  }

  .feature-post:nth-child(2),
  .feature-post:nth-child(3),
  .compact-post{
    margin:0;
    border-radius:0;
    border-top:1px solid var(--line);
    background:transparent;
    box-shadow:none;
  }
  .feature-post:nth-child(2)>a,
  .feature-post:nth-child(3)>a,
  .compact-post>a{
    min-height:98px;
    padding:12px 0;
    grid-template-columns:104px minmax(0,1fr);
    gap:12px;
  }
  .feature-post:nth-child(2) .post-visual,
  .feature-post:nth-child(3) .post-visual,
  .compact-post .post-visual{
    width:104px;
    height:74px;
    border-radius:12px;
  }
  .feature-post:nth-child(2) .post-copy h3,
  .feature-post:nth-child(3) .post-copy h3,
  .compact-post .post-copy h3{
    font-size:.94rem;
    line-height:1.23;
    -webkit-line-clamp:3;
  }
  .post-meta{
    margin-bottom:4px;
    font-size:.62rem;
  }

  .more-posts-link{
    min-height:52px;
    padding:0;
    border-radius:0;
    background:transparent;
  }

  .sidebar{
    margin-top:18px;
    padding-top:0;
    border-top:1px solid var(--line);
  }
  .side-card{
    padding:24px 0 0;
    background:transparent;
  }
  .side-title h3{
    font-size:1.45rem;
  }
  .popular-list>a{
    min-height:54px;
    padding:11px 0;
  }

  .community-grid{
    padding:20px 0 36px;
  }
  .subscribe-card{
    padding:32px 18px 24px;
    border-radius:28px;
  }
  .subscribe-card h2{
    max-width:12ch;
    margin-inline:auto;
    font-size:1.95rem;
    line-height:1.03;
  }
  .subscribe-card>p{
    max-width:30ch;
    margin-bottom:18px;
    font-size:.88rem;
  }
  .subscribe-card form{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .subscribe-card input{
    width:100%;
    min-height:48px;
    border-radius:14px;
  }
  .subscribe-card button{
    width:auto;
    min-width:0;
    min-height:44px;
    align-self:center;
    padding:0 22px;
    border-radius:999px;
    white-space:nowrap;
  }
  .subscribe-card small{
    max-width:42ch;
    margin:12px auto 0;
  }

  .footer-inner{
    padding:16px 0 20px;
  }
  .footer-top{
    min-height:38px;
  }
  .footer-logo{
    width:28px;
    height:28px;
  }
  .footer-socials a{
    width:30px;
    height:30px;
  }
  .footer-links{
    gap:10px 16px;
    padding:11px 0 12px;
    font-size:.72rem;
  }
  .footer-bottom{
    padding-top:12px;
    text-align:left;
  }
}

@media(max-width:390px){
  .section-heading h1{
    font-size:1.82rem;
  }
  .feature-post:nth-child(2)>a,
  .feature-post:nth-child(3)>a,
  .compact-post>a{
    grid-template-columns:94px minmax(0,1fr);
    gap:10px;
  }
  .feature-post:nth-child(2) .post-visual,
  .feature-post:nth-child(3) .post-visual,
  .compact-post .post-visual{
    width:94px;
    height:70px;
  }
}


/* 2026-10-01 — Apple typography system */
body,
button,
input,
textarea,
select{
  font-family:var(--font-ui);
  font-optical-sizing:auto;
  font-kerning:normal;
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-copy strong,
.footer-brand strong,
.article-title,
.side-title h3,
.subscribe-card h2{
  font-family:var(--font-display);
  font-optical-sizing:auto;
  font-kerning:normal;
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
}

body{
  font-synthesis:none;
}

button,
input,
textarea,
select{
  font-synthesis:none;
}

.article-body{
  font-family:var(--font-ui);
}

.article-body pre,
.article-body code{
  font-family:ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace;
}


/* 2026-10-01 — Modern Apple header + footer */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  width:100%;
  max-width:none;
  min-height:72px;
  margin:0;
  padding:10px max(20px,calc((100% - 1180px)/2 + 20px));
  border:0;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 80%,transparent);
  box-shadow:0 10px 34px rgba(0,0,0,.035);
  backdrop-filter:saturate(180%) blur(28px);
  -webkit-backdrop-filter:saturate(180%) blur(28px);
}
html[data-theme="dark"] .site-header{
  background:rgba(0,0,0,.76);
  box-shadow:0 1px 0 rgba(255,255,255,.06),0 12px 36px rgba(0,0,0,.22);
}

.site-header .brand{
  gap:11px;
}
.site-header .site-logo{
  width:42px;
  height:42px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.14);
}
.site-header .brand-copy strong{
  font-size:1.04rem;
  font-weight:650;
  letter-spacing:-.025em;
}
.site-header .brand-copy small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.66rem;
  line-height:1;
  font-weight:500;
}

.site-header .desktop-nav{
  gap:30px;
  font-size:.8rem;
  font-weight:500;
}
.site-header .header-actions{
  gap:6px;
}
.site-header .round-button{
  width:42px;
  height:42px;
  border:1px solid transparent;
  background:color-mix(in srgb,var(--surface) 58%,transparent);
  transition:background .18s ease,border-color .18s ease,transform .15s ease;
}
.site-header .round-button:hover{
  background:var(--surface);
  border-color:var(--line);
}
html[data-theme="dark"] .site-header .round-button{
  background:rgba(255,255,255,.055);
}
html[data-theme="dark"] .site-header .round-button:hover{
  background:rgba(255,255,255,.10);
}
.site-header .round-button:active{
  transform:scale(.96);
}

/* Footer */
.site-footer{
  position:relative;
  width:100%;
  max-width:none;
  padding:0;
  overflow:hidden;
  border-top:1px solid var(--line);
  background:
    linear-gradient(180deg,
      color-mix(in srgb,var(--bg) 96%,var(--surface)),
      color-mix(in srgb,var(--bg) 82%,var(--surface)));
}
.site-footer::before{
  content:"";
  position:absolute;
  left:50%;
  top:-120px;
  width:520px;
  height:210px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,var(--accent-soft),transparent 70%);
  opacity:.34;
  pointer-events:none;
}
.footer-inner{
  position:relative;
  padding:26px 0 22px;
}
.footer-top{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:11px;
}
.footer-logo{
  width:36px;
  height:36px;
  border-radius:11px;
  box-shadow:0 5px 18px rgba(0,0,0,.10);
}
.footer-brand strong{
  font-size:.96rem;
  font-weight:630;
  letter-spacing:-.02em;
}
.footer-socials{
  gap:6px;
}
.footer-socials a{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 66%,transparent);
  color:var(--muted);
  transition:background .18s ease,color .18s ease,transform .15s ease;
}
.footer-socials a:hover{
  color:var(--text);
  background:var(--surface);
}
.footer-socials a:active{
  transform:scale(.96);
}
.footer-links{
  margin-top:16px;
  padding:16px 0 0;
  border-top:1px solid var(--line);
  gap:18px;
  color:var(--muted);
  font-size:.72rem;
}
.footer-bottom{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.7rem;
}

@media(max-width:680px){
  .site-header{
    min-height:72px;
    padding:
      10px max(14px,env(safe-area-inset-right))
      10px max(14px,env(safe-area-inset-left));
  }
  .site-header .site-logo{
    width:42px;
    height:42px;
  }
  .site-header .brand-copy strong{
    font-size:1.03rem;
  }
  .site-header .brand-copy small{
    display:none;
  }
  .site-header .header-actions{
    gap:4px;
  }
  .site-header .round-button{
    width:44px;
    height:44px;
    background:transparent;
    border-color:transparent;
  }
  html[data-theme="dark"] .site-header .round-button{
    background:transparent;
  }
  .site-header .round-button:active{
    background:color-mix(in srgb,var(--surface) 64%,transparent);
  }

  .footer-inner{
    padding:22px 0 18px;
  }
  .footer-top{
    min-height:48px;
  }
  .footer-logo{
    width:34px;
    height:34px;
  }
  .footer-socials a{
    width:38px;
    height:38px;
  }
  .footer-links{
    margin-top:14px;
    padding-top:14px;
    gap:10px 16px;
    flex-wrap:wrap;
    font-size:.7rem;
  }
  .footer-bottom{
    margin-top:12px;
    padding-top:12px;
    text-align:left;
  }
}

@media(max-width:390px){
  .site-header{
    min-height:68px;
    padding-inline:max(10px,env(safe-area-inset-left));
  }
  .site-header .site-logo{
    width:40px;
    height:40px;
  }
  .site-header .round-button{
    width:42px;
    height:42px;
  }
  .footer-top{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }
}


/* 2026-10-02 — Compact Apple-style grouped navigation */
.drawer{
  left:12px;
  top:12px;
  bottom:12px;
  width:min(390px,calc(100% - 24px));
  padding:22px;
  border:1px solid color-mix(in srgb,var(--text) 8%,transparent);
  border-radius:30px;
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 30px 90px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(28px) saturate(145%);
  -webkit-backdrop-filter:blur(28px) saturate(145%);
}
.drawer-section{margin-top:20px}
.drawer-label{
  margin:0 8px 8px;
  font-size:.68rem;
  font-weight:720;
  letter-spacing:.075em;
}
.drawer-links{
  display:grid;
  gap:2px;
  padding:5px;
  border-radius:18px;
  background:var(--surface-secondary);
  border:1px solid color-mix(in srgb,var(--text) 6%,transparent);
}
.drawer-links a,.drawer-links button{
  min-height:48px;
  padding:0 13px;
  border:0!important;
  border-radius:13px;
  color:var(--text);
  font-size:.92rem;
  font-weight:540;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.drawer-links a:hover,.drawer-links button:hover{
  color:var(--text);
  background:var(--surface);
}
.drawer-links a:active,.drawer-links button:active{
  transform:scale(.985);
  background:color-mix(in srgb,var(--surface) 90%,var(--accent) 10%);
}
.appearance-control{
  padding:5px;
  border:1px solid color-mix(in srgb,var(--text) 6%,transparent);
  border-radius:16px;
}
.appearance-control button{
  min-height:42px;
  border-radius:12px;
}
html[data-theme="dark"] .drawer{
  background:rgba(28,28,30,.94);
  border-color:rgba(255,255,255,.08);
}
html[data-theme="dark"] .drawer-links{
  background:#242426;
  border-color:rgba(255,255,255,.055);
}
@media(max-width:680px){
  .drawer{
    left:10px;right:10px;top:10px;bottom:10px;
    width:auto;
    padding:20px;
    border-radius:30px;
  }
  .drawer-header strong{font-size:1.25rem}
  .drawer-section{margin-top:18px}
}


/* 2026-10-02 — Unified editorial type + softer dark reading palette */
body,
button,
input,
textarea,
select{
  font-family:var(--font-ui);
  font-optical-sizing:auto;
  font-kerning:normal;
  font-feature-settings:"kern" 1,"liga" 1,"clig" 1;
}

html[data-theme="dark"] body{
  background:#1b1c20;
  color:#e8e9ed;
}

html[data-theme="dark"] .site-header{
  background:rgba(27,28,32,.86);
}

html[data-theme="dark"] .drawer{
  background:rgba(35,36,41,.96);
}

html[data-theme="dark"] .drawer-links{
  background:#2a2b31;
}


/* 2026-10-02 — Professional unified sans typography */
:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --font-display:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}
body,
button,
input,
textarea,
select{
  font-family:var(--font-ui)!important;
}
h1,h2,h3,h4,h5,h6,
.brand-copy strong,
.section-heading h1,
.section-heading h2,
.post-copy h3,
.side-title h3,
.subscribe-card h2{
  font-family:var(--font-display)!important;
}
