/* Quiet Lark Studio — editorial blog */
:root {
  --bg: #F3EEE4;
  --bg-deep: #E8E0D1;
  --paper: #FFFCF6;
  --ink: #1B1713;
  --muted: #5E574E;
  --line: #DDD3C3;
  --accent: #C2552B;
  --accent-dark: #9A3C1A;
  --sage: #3D5A45;
  --sage-soft: #E6EEE8;
  --callout: #F8EBDD;
  --callout-line: #E8C8A8;
  --shadow: 0 12px 32px rgba(27, 23, 19, 0.08);
  --shadow-hover: 0 16px 40px rgba(27, 23, 19, 0.14);
  --radius: 18px;
  --max: 1120px;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 40;
  border-radius: 6px;
}

.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.wordmark:hover { color: var(--ink); }

.logo-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
}

.wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 2px;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 4.2rem 0 2.6rem;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 1rem;
}

.hero-lead {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
}

/* Home grid */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 2.2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

a.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 1.15rem 1.25rem 1.35rem; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
}

a.tag:hover { color: var(--sage); }

.card h2,
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.featured h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.featured { margin-bottom: 0.4rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; }

.sidebar-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.product-card .card-media { aspect-ratio: 16 / 10; }

.price {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 0;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-block { width: 100%; margin-top: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

.about-blurb {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
}

.about-blurb p { margin: 0 0 0.8rem; color: var(--muted); }
.about-blurb a { font-weight: 600; text-decoration: none; }

/* Article */
.article-header {
  padding: 2.6rem 0 0;
}

.article-header-inner {
  max-width: 70ch;
  margin: 0 auto;
}

.article-header h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.8rem;
}

.dek {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.article-cover {
  margin: 0 auto 2.2rem;
  max-width: 860px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover figcaption {
  margin: 0;
  padding: 0.55rem 0.2rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.article-body {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  font-optical-sizing: auto;
}

.article-body p { margin: 0 0 1.15rem; }

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.4rem 0 0.8rem;
}

.article-body h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.8rem 0 0.6rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.article-body li + li { margin-top: 0.35rem; }

.article-body a {
  color: var(--accent-dark);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.callout {
  background: var(--callout);
  border: 1px solid var(--callout-line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 1.6rem 0 1.8rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

.callout p { margin: 0 0 0.55rem; }
.callout p:last-of-type { margin-bottom: 0.9rem; }

.callout-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem !important;
}

.callout-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem !important;
  line-height: 1.3;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2.2rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}

.author-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.author-box .logo-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
}

.author-box strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.author-box p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.disclosure {
  margin: 1.6rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.disclosure h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

/* Related */
.related {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 3.4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.related-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.related-cta h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.related-cta p { margin: 0 0 1rem; color: var(--muted); }

.related .card h3 { font-size: 1.15rem; }

/* About */
.page-header { padding: 3.2rem 0 1.4rem; max-width: 70ch; }

.page-header h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.4rem 0 0.8rem;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  font-family: var(--serif);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 4rem;
}

.about-copy {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 70ch;
}

.about-copy p { margin: 0 0 1.1rem; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Listing */
.listing { padding-bottom: 4rem; }

.list-card {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 0;
}

.list-card .card-media { aspect-ratio: auto; min-height: 100%; }

.list-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem 1.4rem;
}

.list-card h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }

/* Footer */
.site-footer {
  background: #1B1713;
  color: #E8E0D1;
  padding: 2.4rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFF8F0;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand:hover { color: #FFF8F0; }

.footer-brand .logo-mark { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 6px; }

.footer-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.footer-nav a,
.site-footer a { color: #E8E0D1; text-decoration: none; }

.footer-nav a:hover,
.site-footer a:hover { color: #fff; }

.footer-note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #B3A898;
  max-width: 48rem;
}

.footer-copy {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #8F8678;
}

/* Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .home-layout,
  .about-layout,
  .related-grid,
  .list-card {
    grid-template-columns: 1fr;
  }

  .list-card .card-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hero { padding: 2.6rem 0 1.8rem; }

  .article-header { padding-top: 1.8rem; }

  .about-photo { position: static; }

  .wordmark-text { font-size: 1.02rem; }
}

@media (max-width: 520px) {
  .header-inner,
  .wrap,
  .footer-inner { padding-left: 1.05rem; padding-right: 1.05rem; }

  body { font-size: 16px; }

  .article-body { font-size: 1.08rem; }

  .hero h1 { max-width: none; }
}


/* Tables, sources, US Energy section */
.section-lead {
  margin: -0.4rem 0 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 720px) {
  .posts-grid-2 { grid-template-columns: 1fr 1fr; }
  .posts-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0 0 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-body thead th {
  background: var(--bg-deep);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-body tbody tr:last-child td { border-bottom: 0; }

.article-body caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  caption-side: top;
}

.shop-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.shop-list li {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
}

.shop-list a { font-weight: 600; text-decoration: none; }
.shop-list span { color: var(--muted); display: block; font-size: 0.9rem; }

.sources {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 2.4rem;
  padding-top: 0.2rem;
}

.sources h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

.sources ol { padding-left: 1.2rem; margin: 0; }
.sources li + li { margin-top: 0.35rem; }

.fine-print {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.us-hero { padding-bottom: 1.6rem; }
.us-hero h1 { max-width: 20ch; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .lang-switch a,
.footer-nav .lang-switch a {
  font-weight: 700;
  font-size: 0.82rem;
}

.site-nav .lang-switch a[aria-current="true"] {
  color: var(--ink);
  box-shadow: none;
  padding-bottom: 0;
}

.footer-nav .lang-switch {
  border-left-color: rgba(232, 224, 209, 0.28);
}

.footer-nav .lang-switch a[aria-current="true"] {
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.4rem;
  max-width: 100%;
}
.table-scroll table {
  margin-bottom: 0;
}
