/* News, layered over home.css: label-level page in the label's own
   language. home.css supplies the ground, header, tokens; this file
   only designs the news content itself. */

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

/* ── title zone: the homepage's wobble-grid signature ── */
.news-hero { position: relative; padding: 3.2rem 0 2.4rem; margin-bottom: 1.6rem; }
.news-hero::before {
  content: ""; position: absolute; inset: -10px -30px; z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, #7bc6cf 0 1.7px, transparent 1.7px 30px),
    repeating-linear-gradient(0deg, #7bc6cf 0 1.7px, transparent 1.7px 30px);
  opacity: 0.5;
  filter: url(#marker);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 30% 40%, #000 30%, transparent 78%);
}
.news-hero > * { position: relative; z-index: 1; }
.news-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.98; margin: 0 0 0.7rem;
}
.strap { font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 700; color: #5a5462; }

/* ── the list: paper cards, floating tags, hand-placed tilt ── */
.post-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.post-list li {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  margin: 0 0 1.7rem;
  box-shadow: 4px 5px 0 rgba(23, 18, 31, 0.25);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.post-list li:nth-child(odd) { transform: rotate(-0.5deg); }
.post-list li:nth-child(even) { transform: rotate(0.4deg); }
.post-list li:hover {
  transform: rotate(0deg) translate(-2px, -3px);
  box-shadow: 7px 8px 0 rgba(23, 18, 31, 0.3);
}
.post-list a {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: var(--ink);
}
.post-list a:has(.thumb) { grid-template-columns: minmax(250px, 40%) 1fr; }
.post-list .thumb {
  display: block;
  border-right: 2.5px solid var(--ink);
  border-radius: 13px 0 0 13px;
  overflow: hidden;
  background: var(--bg);
}
.post-list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px; }
.post-list .body { display: block; padding: 1.6rem 1.7rem 1.4rem; }
.post-list a:not(:has(.thumb)) .body { padding: 1.5rem 1.5rem 1.25rem; }
.post-list .tag,
.post-head .tag {
  position: absolute; top: -14px; left: 18px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700;
  background: var(--butter); color: var(--ink);
  border: 2.5px solid var(--ink); padding: 0.25rem 0.55rem; border-radius: 20px;
  transform: rotate(-2deg);
}
.type-announcement .tag { background: var(--coral); }
.type-release .tag { background: var(--butter); }
.post-list .t {
  display: block; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.16; margin: 0.2rem 0 0.5rem; max-width: 24ch;
}
.post-list .d {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
  font-weight: 700; color: #5a5462;
}
.post-list .s { display: block; margin-top: 0.45rem; font-size: 0.97rem; color: #3a333f; line-height: 1.45; }
.rss { font-size: 0.68rem; letter-spacing: 0.12em; font-weight: 700; color: #5a5462; margin-top: 2.4rem; }
.rss a { color: var(--blue); text-decoration: none; }
.rss a:hover { color: var(--coral); }

/* ── article pages ── */
.post-head { position: relative; padding: 3rem 0 1.6rem; }
.post-head::before {
  content: ""; position: absolute; inset: -10px -30px; z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, #7bc6cf 0 1.7px, transparent 1.7px 30px),
    repeating-linear-gradient(0deg, #7bc6cf 0 1.7px, transparent 1.7px 30px);
  opacity: 0.42;
  filter: url(#marker);
  -webkit-mask-image: radial-gradient(120% 100% at 25% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(120% 100% at 25% 35%, #000 25%, transparent 75%);
}
.post-head > * { position: relative; z-index: 1; }
.post-head .tag { position: static; display: inline-block; margin-bottom: 0.9rem; }
.post-head h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.55rem; max-width: 20ch;
}
.post-head .crumbs { margin: 0 0 1.4rem; font-size: 0.66rem; letter-spacing: 0.14em; font-weight: 700; }
.post-head .crumbs a { color: #5a5462; text-decoration: none; }
.post-head .crumbs a:hover { color: var(--blue); }
.cover {
  margin: 1.8rem 0 0;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 5px 6px 0 rgba(23, 18, 31, 0.25);
  max-width: 860px;
}
.cover img { display: block; width: 100%; height: auto; }
article {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 2.1rem 2.3rem 1.6rem;
  margin-top: 1.8rem;
  box-shadow: 5px 6px 0 rgba(23, 18, 31, 0.25);
  transform: rotate(-0.3deg);
  max-width: 860px;
}
article > * { transform: rotate(0.3deg); }
article p { margin: 0 0 1.05rem; max-width: 62ch; font-size: 1.02rem; line-height: 1.62; color: #241d2b; }
article strong { color: var(--ink); }
article a { color: var(--blue); }
article a:hover { color: var(--coral); }
article ul { padding-left: 1.25rem; margin: 0 0 1.05rem; }
article li { margin-bottom: 0.45rem; color: #241d2b; }

@media (max-width: 520px) {
  .news-hero { padding-top: 2.2rem; }
  article { padding: 1.5rem 1.2rem 1rem; }
  .post-list a { padding: 1.35rem 1.15rem 1.1rem; }
}


@media (max-width: 700px) {
  .post-list a:has(.thumb) { grid-template-columns: 1fr; }
  .post-list .thumb { border-right: 0; border-bottom: 2.5px solid var(--ink); border-radius: 13px 13px 0 0; }
  .post-list .thumb img { min-height: 0; max-height: 190px; }
}


/* ── index rail: the page earns its width ── */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.2rem; align-items: start; }
.news-rail { display: grid; gap: 1.9rem; position: sticky; top: 90px; }
.rail-card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: 4px 5px 0 rgba(23, 18, 31, 0.25);
}
.rail-card .tag {
  position: absolute; top: -14px; left: 18px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700;
  background: var(--lime); border: 2.5px solid var(--ink);
  padding: 0.22rem 0.5rem; border-radius: 20px; transform: rotate(-2deg);
}
.signup-card .tag { background: var(--pink); }
.rail-card h2 { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; margin: 0.3rem 0 0.4rem; }
.rail-card p { font-size: 0.92rem; line-height: 1.5; color: #3a333f; margin: 0 0 0.9rem; }
.rail-card img {
  width: calc(100% + 2.8rem); margin: 0.2rem -1.4rem 0.8rem;
  display: block; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
}
.product-card { padding-top: 1.1rem; }
.rail-ctas { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.rail-ctas .btn { font-size: 0.72rem; padding: 0.6rem 0.95rem; }
.bd-sink { display: none; }
.rail-form { display: grid; gap: 0.6rem; }
.rail-form input[type="email"] {
  font: inherit; font-size: 16px; padding: 0.65rem 0.85rem;
  border: 2.5px solid var(--ink); border-radius: 10px; background: #fff;
}
.rail-form .btn { font-size: 0.74rem; padding: 0.65rem 1rem; border: 2.5px solid var(--ink); cursor: pointer; }
.follow-card .mono-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; margin: 0 0 0.4rem; }
.follow-links a { color: var(--blue); text-decoration: none; }
.follow-links a:hover { color: var(--coral); }

/* ── post CTA row ── */
.post-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.post-cta .btn { font-size: 0.78rem; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-rail { position: static; grid-template-columns: 1fr; }
}


/* ── article pages: body + rail, then circulation ── */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.4rem; align-items: start; }
.article-main { min-width: 0; }
.article-rail { position: sticky; top: 90px; display: grid; gap: 1.9rem; }
.article-main .cover, .article-main article { max-width: none; }

.more-news { margin-top: 2.6rem; }
.more-news .mono-h {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  font-weight: 700; color: #5a5462; margin: 0 0 1.1rem;
}
.post-list.mini li { margin-bottom: 1rem; transform: none; }
.post-list.mini a { display: block; padding: 1.05rem 1.2rem 0.95rem; }
.post-list.mini .t { font-size: 1.05rem; max-width: none; margin: 0.15rem 0 0.3rem; }
.post-list.mini li:hover { transform: translate(-2px, -2px); }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-rail { position: static; }
}
