/*
Theme Name: Threadcount
Theme URI: https://example.com/threadcount
Author: Your Name
Author URI: https://example.com
Description: A stark, high-fashion editorial theme with a full-bleed cover story, a curated 'Edit' list and generous whitespace. A high-contrast display serif (Bodoni Moda) with a clean Inter body, per-category colour accents, light and dark modes, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: threadcount
Tags: blog, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f2f0;
  --text: #141210;
  --text-2: #403c38;
  --muted: #8a837c;
  --line: #e6e2dd;
  --accent: #a8324a;
  --accent-ink: #ffffff;
  --accent-hover: #141210;
  --accent-hover-ink: #ffffff;

  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 500;
  --lh-display: 1.06;
  --track-display: 0;

  --radius: 0px;
  --radius-ui: 0px;
  --footer-bg: #141210;
  --footer-text: #f2efe9;
  --footer-muted: #9c948b;
  --footer-line: rgba(255,255,255,.14);
  --overlay: linear-gradient(180deg, rgba(10,8,6,0) 36%, rgba(10,8,6,.9) 100%);
}
:root[data-theme="dark"] {
  --bg: #141210;
  --surface: #1b1815;
  --surface-2: #241f1b;
  --text: #f2efe9;
  --text-2: #c9c3ba;
  --muted: #8f887f;
  --line: #2b2622;
  --accent: #d2576e;
  --accent-ink: #141210;
  --accent-hover: #f2efe9;
  --accent-hover-ink: #141210;
  --footer-bg: #0c0a09;
}

body { font-size: 17px; }
.meta, .cat, .primary-menu a, .mobile-menu a, .section-link, .widget-title, .btn, .header-cta { font-family: var(--font-ui); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: .02em; text-transform: uppercase; }
h1, h2, h3, h4, .card__title, .mini__title, .entry-title, .section-title { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.entry-content { font-family: var(--font-body); }

.site-header { border-bottom: 1px solid var(--text); }
.primary-menu > li > a { font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.header-cta { background: var(--accent); color: #fff; border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 600; }
.cat { color: hsl(var(--cat-hue,350) 52% 44%); font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; }
[data-theme="dark"] .cat { color: hsl(var(--cat-hue,350) 60% 70%); }
.card-overlay .cat { color: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head { border-bottom: 1px solid var(--text); padding-bottom: .5rem; align-items: baseline; }

/* ---------- Cover + Edit ---------- */
.tc-top__grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .tc-top__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.tc-cover { position: relative; isolation: isolate; display: flex; min-height: 560px; overflow: hidden; }
.tc-cover .media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.tc-cover::after { content: ""; position: absolute; inset: 0; background: var(--overlay); z-index: 1; }
.tc-cover__body { position: relative; z-index: 2; margin-top: auto; padding: clamp(24px, 3vw, 44px); color: #fff; }
.tc-cover__title { font-size: clamp(2rem, 4.6vw, 3.8rem); color: #fff; line-height: 1.02; margin: .4rem 0 .5rem; }
.tc-cover__title a { color: #fff; }
.tc-cover__excerpt { color: rgba(255,255,255,.86); max-width: 44ch; }

.tc-edit__head { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; border-bottom: 2px solid var(--text); padding-bottom: .5rem; margin-bottom: .2rem; }
.tc-edit__list { list-style: none; margin: 0; padding: 0; }
.tc-edititem { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tc-edititem:last-child { border-bottom: 0; }
.tc-edititem__num { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--accent); }
.tc-edititem__title { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.16; margin-top: .25rem; }

/* ---------- Sections ---------- */
.tc-band { background: var(--text); color: #fff; padding-block: clamp(36px, 5vw, 64px); }
[data-theme="dark"] .tc-band { background: #0c0a09; }
.tc-band .section-title { color: #fff; }
.tc-band .section-head { border-color: rgba(255,255,255,.35); }
.tc-band .section-link { color: #fff; }
.tc-band .card-overlay .card__title a { color: #fff; }
.tc-latest .card .media { aspect-ratio: 4/5; }

/* ---------- Signup ---------- */
.tc-signup .signup--band { background: var(--text); color: #fff; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.tc-signup .signup--band .signup__title { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.tc-signup .signup--band .signup__desc { color: rgba(255,255,255,.88); }
.tc-signup .signup--band .signup__form { min-width: 320px; }
.tc-signup .signup--band .signup__button { background: var(--accent); color: #fff; }
.tc-signup .signup--band .signup__note { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .tc-signup .signup--band { grid-template-columns: 1fr; } .tc-signup .signup--band .signup__form { min-width: 0; } }

.entry-content { font-size: 1.1rem; line-height: 1.75; }
.entry-content blockquote { border-left: 2px solid var(--accent); font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 1.4rem; line-height: 1.3; }
