/* ============================================================
   TECHLY® — moban12  Editorial Magazine
   Cream paper, serif headlines, deep red accent #C0392B
   ============================================================ */
:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #1f1d1a;
  --red: #c0392b;
  --gold-line: #d8c7a5;
  --muted: #6f6758;
  --line: #ddd5c6;
  --container: 1180px;
  --serif: Georgia, "Times New Roman", "SimSun", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.75; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 3px double var(--ink); padding: 30px 0 0; }
.masthead-inner { display: grid; gap: 16px; }
.masthead-logo { text-align: center; font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: 2px; }
.masthead-logo small { display: block; font-size: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
.masthead-meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; text-transform: uppercase; }
.masthead-nav { display: flex; justify-content: center; gap: 34px; padding: 14px 0 16px; flex-wrap: wrap; }
.masthead-nav a { font-size: 14px; font-weight: 700; letter-spacing: 1px; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.masthead-nav a.active, .masthead-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Hero / lead story ---------- */
.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 40px 0; }
.story-featured { position: relative; min-height: 480px; }
.story-featured img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; filter: grayscale(0.15); }
.story-featured .overlay { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(20, 16, 10, 0.92)); color: #fff; padding: 40px 34px 30px; }
.story-featured h1 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; margin-bottom: 12px; }
.story-featured .kicker { display: inline-block; background: var(--red); color: #fff; font-size: 11px; letter-spacing: 2px; padding: 5px 12px; margin-bottom: 14px; text-transform: uppercase; }
.story-featured p { color: rgba(255,255,255,0.85); font-size: 15px; max-width: 640px; }

.story-stack { display: grid; gap: 16px; }
.story-mini { display: grid; grid-template-columns: 46px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); padding: 18px; }
.story-mini .no { font-family: var(--serif); font-size: 30px; color: var(--red); font-weight: 700; line-height: 1; }
.story-mini h3 { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.story-mini h3 a:hover { color: var(--red); text-decoration: underline; }
.story-mini .meta { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }

/* ---------- Magazine grid ---------- */
.section-title { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 46px); border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin: 60px 0 30px; position: relative; }
.section-title span { color: var(--red); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mag-card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.mag-card img { width: 100%; height: 190px; object-fit: cover; }
.mag-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mag-card .cat { font-size: 11px; letter-spacing: 2px; color: var(--red); text-transform: uppercase; font-weight: 700; }
.mag-card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.mag-card h3 a:hover { color: var(--red); text-decoration: underline; }
.mag-card p { color: var(--muted); font-size: 14px; }
.mag-card .date { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-top: auto; text-transform: uppercase; }
.mag-card.quote-card { background: var(--red); color: #fff; justify-content: center; padding: 26px; }
.mag-card.quote-card .big-q { font-family: var(--serif); font-size: 56px; line-height: 0.8; }
.mag-card.quote-card p { color: #fff; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.mag-card.plain .body { padding-top: 26px; }

/* ---------- Numbered list ---------- */
.numbered { border-top: 1px solid var(--line); }
.numbered li { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.numbered .num { font-family: var(--serif); font-size: 40px; color: transparent; -webkit-text-stroke: 1.5px var(--red); font-weight: 700; }
.numbered h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.numbered p { color: var(--muted); font-size: 15px; max-width: 720px; }

/* ---------- Sidebar widgets ---------- */
.content-split { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.widget { background: var(--card); border: 1px solid var(--line); padding: 24px; margin-bottom: 22px; }
.widget h3 { font-family: var(--serif); font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); padding: 6px 12px; font-size: 12px; color: var(--muted); }
.tag:hover { border-color: var(--red); color: var(--red); }
.newsletter input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); font: inherit; margin-bottom: 10px; background: var(--paper); }
.btn { display: inline-block; padding: 12px 22px; font-weight: 700; font-size: 14px; letter-spacing: 1px; transition: all .25s; cursor: pointer; }
.btn--red { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn--red:hover { background: #a52f22; }
.btn--ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn--ink:hover { background: #000; }
.btn--line { border: 1px solid var(--ink); color: var(--ink); background: none; }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- Pull quote ---------- */
.pull-quote { text-align: center; padding: 70px 0; }
.pull-quote .mark { font-family: var(--serif); font-size: 90px; color: var(--red); line-height: 0.7; }
.pull-quote p { font-family: var(--serif); font-size: clamp(24px, 4vw, 40px); max-width: 860px; margin: 24px auto 18px; line-height: 1.3; }
.pull-quote .by { font-size: 13px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }

/* ---------- Inner page bits ---------- */
.page-head { padding: 60px 0 10px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 64px); line-height: 1.1; margin-bottom: 14px; }
.page-head p { color: var(--muted); max-width: 760px; font-size: 17px; }
.page-body { padding: 30px 0 80px; }

.svc-block { background: var(--card); border: 1px solid var(--line); padding: 28px; }
.svc-block .num { font-family: var(--serif); font-size: 30px; color: var(--red); }
.svc-block h3 { font-family: var(--serif); font-size: 22px; margin: 8px 0; }
.svc-block p { color: var(--muted); font-size: 14px; }

.timeline { border-left: 2px solid var(--red); margin: 40px 0 0 10px; padding-left: 30px; display: grid; gap: 32px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline .year { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.timeline p { color: var(--muted); }

.article-row { border-top: 1px solid var(--line); }
.article-row li { display: grid; grid-template-columns: 140px 1fr auto; gap: 26px; padding: 30px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.article-row .date { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.article-row h3 { font-family: var(--serif); font-size: 24px; }
.article-row h3 a:hover { color: var(--red); text-decoration: underline; }
.article-row p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.article-row .more { color: var(--red); font-weight: 700; font-size: 14px; }

.faq-list { max-width: 880px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; background: none; border: 0; font: inherit; text-align: left; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 22px; cursor: pointer; }
.faq-item button::after { content: "+"; font-family: var(--sans); color: var(--red); font-size: 24px; }
.faq-item.open button::after { content: "−"; }
.faq-answer { display: none; padding-top: 14px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--line); padding: 30px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--paper); font: inherit; }
.contact-form textarea { min-height: 140px; }
.status-text { min-height: 22px; color: var(--red); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--ink); margin-top: 60px; padding: 46px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-title { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.footer-links { display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-note { margin-top: 36px; 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: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .lead-grid, .content-split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .mag-grid { grid-template-columns: 1fr 1fr; }
  .masthead-nav { gap: 18px; }
  .article-row li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .mag-grid { grid-template-columns: 1fr; }
}
