/* =========================================================
   Field Notes — feed page specific styles
   Loads on top of common.css.
   ========================================================= */

/* ---- Compact header (issue + TL;DR + filters) ---- */
.fn-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.fn-header .dateline { margin-bottom: 14px; }
.fn-header-tldr-row {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-top: 14px;
}
.fn-header-tldr-row .fn-header-tldr {
  flex: 1 1 50%;
  margin-top: 0;
  min-width: 0;
}
.fn-header-cover {
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
}
.fn-header-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
@media (max-width: 720px) {
  .fn-header-tldr-row {
    flex-direction: column;
    gap: 20px;
  }
  .fn-header-cover { width: 100%; max-width: 460px; }
}
.fn-header-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: var(--fs-display-m);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.fn-header-tldr {
  margin-top: 14px;
  max-width: 680px;
  color: var(--ink-2);
}
.fn-header .filters { margin-top: 22px; }

/* ---- Feed ---- */
.feed-section { padding: 24px 0 80px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-3);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.feed-day {
  padding: 32px 0 0;
}
.feed-day-heading {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feed-day-heading .today-badge {
  font-style: normal;
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.feed-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.feed-card:last-child { border-bottom: 0; }

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feed-card-meta .tag {
  color: var(--accent);
  font-weight: 600;
}
.feed-card-meta .tag + .tag::before {
  content: '·';
  color: var(--ink-4);
  margin-right: 6px;
  margin-left: -4px;
}
.feed-card-meta .dot {
  color: var(--ink-4);
}

.feed-card h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 720px;
}

.feed-card-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
}
.feed-card-main { min-width: 0; }
.feed-card-what {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.feed-card-what-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}

.feed-card-sowhat {
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.feed-card-sowhat-label {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 10px;
}
.feed-card-sowhat-qualifier {
  opacity: 0.7;
}
.feed-card-sowhat-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.feed-card-source {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feed-card-source a {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t);
}
.feed-card-source a:hover { color: var(--accent); }
.feed-card-source .host {
  color: var(--ink-4);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.feed-card-source .arrow { transition: transform var(--t); }
.feed-card-source a:hover .arrow { transform: translateX(3px); }

.feed-card-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.feed-card-foot .feed-card-source { margin-top: 0; }

.feed-card-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feed-card-share-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-right: 2px;
}
.feed-card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(21, 20, 18, 0.12);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}
.feed-card-share-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}
.feed-card-share-btn:hover,
.feed-card-share-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
}
.feed-card-share-btn.is-copied {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: var(--accent-wash);
}

.feed-card-takeaway .feed-card-share { margin-top: 16px; }
.feed-card-takeaway .feed-card-share-btn { border-color: rgba(141, 55, 36, 0.25); }

.feed-card-flash {
  animation: feed-card-flash 1.8s ease;
}
@keyframes feed-card-flash {
  0%   { box-shadow: 0 0 0 0 rgba(176, 69, 48, 0); }
  20%  { box-shadow: 0 0 0 6px rgba(176, 69, 48, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(176, 69, 48, 0); }
}

.feed-card-takeaway {
  background: var(--accent-wash);
  padding: 28px 28px;
  border-left: 2px solid var(--accent);
  margin: 24px 0;
  border-bottom: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.feed-card-takeaway .feed-card-meta .tag { color: var(--accent-2); }
.feed-card-takeaway h3 {
  color: var(--accent-2);
  margin-bottom: 10px;
}
.feed-card-takeaway p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 680px;
}

.feed-empty {
  padding: 56px 0;
  font-size: 15px;
  color: var(--ink-3);
  text-align: center;
  font-style: italic;
}

/* ---- Delivery channels — free + premium grid ---- */
.channels {
  padding: 80px 0 72px;
  border-top: 1px solid var(--rule);
}
.channels-inner { max-width: var(--measure-wide); }
.channels .meta { margin-bottom: 20px; }
.channels h2 { margin: 0; }
.channels p.sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 580px;
}

.channel-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.channel-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel-card-premium {
  background: var(--bg);
  border-color: var(--rule-2);
}

.channel-badge {
  align-self: flex-start;
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.channel-badge-free {
  background: var(--ink);
  color: var(--bg);
}
.channel-badge-premium {
  background: var(--accent-wash);
  color: var(--accent-2);
  border: 1px solid rgba(176, 69, 48, 0.25);
}

.channel-card h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2px;
}

.channel-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.channel-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.channel-cta:hover { color: var(--accent); border-color: var(--accent); }
.channel-cta-current {
  color: var(--ink-3);
  border-bottom-color: transparent;
  cursor: default;
}

.channels-foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  max-width: 560px;
}

/* ---- Field Notes subscribe panel ---- */
.fn-subscribe {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 80px 0 96px;
}
.fn-subscribe-inner { max-width: 680px; }
.fn-subscribe .meta { margin-bottom: 20px; }
.fn-subscribe h2 { margin: 0; }
.fn-subscribe p.sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 560px;
}
.fn-subscribe .form-subscribe { margin-top: 28px; }

/* ---- Issue nav (prev / next) ---- */
.issue-nav {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.issue-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.issue-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.issue-nav-link.is-disabled {
  visibility: hidden;
  pointer-events: none;
}
.issue-nav-prev { align-items: flex-start; text-align: left; }
.issue-nav-next { align-items: flex-end; text-align: right; }
.issue-nav-link:hover {
  border-color: var(--ink-3);
  background: var(--bg-2);
}
.issue-nav-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.issue-nav-date {
  font-size: var(--fs-body);
  color: var(--ink-1);
}

/* ---- Archive subscribe CTA (replaces the old "More issues" rail) ---- */
.archive-cta { padding: 24px 0 48px; }
.archive-cta-inner {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.archive-cta-eyebrow {
  font-family: var(--ff-sans);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.archive-cta-body {
  margin: 0;
  color: var(--ink-1);
  max-width: 60ch;
  text-wrap: pretty;
}
.archive-cta .btn { margin-top: 6px; }
@media (max-width: 640px) {
  .archive-cta-inner { padding: 22px 20px; }
}

/* ---- Archive index (/digest) ---- */
.archive-section { padding: 32px 0 64px; }
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-item + .archive-item { border-top: 1px solid var(--rule); }
.archive-item-link {
  display: block;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: color var(--t);
}
.archive-item-link:hover { color: var(--ink-1); }
.archive-item-head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.archive-item-issue {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.archive-item-date {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink-1);
}
.archive-item-teaser {
  margin: 8px 0 0 0;
  color: var(--ink-2);
  max-width: 72ch;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .fn-header { padding: 32px 0 20px; }
  .fn-header .filters { margin-top: 16px; }
  .feed-section { padding: 20px 0 56px; }
  .feed-card { padding: 28px 0; }
  .feed-card-body { grid-template-columns: 1fr; gap: 20px; }
  .channels { padding: 56px 0 48px; }
  .channel-grid { margin-top: 32px; }
  .fn-subscribe { padding: 56px 0 72px; }
  .issue-nav-inner { grid-template-columns: 1fr; }
  .issue-nav-next { align-items: flex-start; text-align: left; }
}
