/*
Theme Name: Linden
Theme URI: https://2005izbori.org/
Author: Linden
Description: Studio theme for Linden, a web studio in Brooklyn.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: linden
*/

:root {
  --ink: #241c16;
  --muted: #6d5f53;
  --paper: #f3ece3;
  --card: #fffaf4;
  --line: #e2d5c6;
  --teal: #0e6b66;
  --teal-dark: #084743;
  --clay: #d86a32;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--clay); }
::selection { background: #cfe7e4; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { --wrap: 1100px; }
.screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.site-header { background: var(--card); position: sticky; top: 0; z-index: 5; border-bottom: 2px solid var(--teal); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 560; font-size: 32px; letter-spacing: -0.03em; }
.brand .custom-logo { width: 36px; height: 36px; }
.mark { width: 12px; height: 12px; background: var(--teal); flex: none; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 560; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--teal); }
.header-search { display: flex; }
.header-search input, .contact-form input, .contact-form textarea { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 10px; font: inherit; font-size: 14px; }
.header-search input { width: 128px; border-right: 0; }
.contact-form input, .contact-form textarea { width: 100%; }
.header-search input::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: #8d7f72; }
.header-search button, .contact-form button { border: 0; background: var(--teal); color: #fff; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; }
.header-search button:hover, .contact-form button:hover { background: var(--clay); }

.intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; padding: 52px 0 12px; }
.kicker { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.intro h1, .page-head h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 560; font-size: clamp(42px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.03em; }
.intro-copy { border-top: 3px solid var(--teal); padding-top: 16px; color: var(--muted); }
.intro-copy p, .page-head .intro p { margin: 0 0 10px; }
.page-head { padding: 42px 0 8px; }
.byline { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

.sections { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 8px; padding: 0; border-top: 1px solid var(--ink); }
.sections a { display: flex; gap: 12px; align-items: baseline; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 560; }
.sections .num { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.sections a:hover { color: var(--clay); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 14px; }
.section-head h2, .entry h2 { font-family: var(--serif); font-weight: 560; font-size: 34px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border-left: 3px solid var(--teal); display: flex; flex-direction: column; min-width: 0; }
.card a.thumb, .story-thumb { display: block; aspect-ratio: 16/10; background: #e7ddd0; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: flex-end; height: 100%; padding: 12px; color: #f3ece3; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; background: linear-gradient(145deg, #241c16, var(--teal)); }
.card-body { padding: 14px 14px 16px; }
.meta { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; font-weight: 560; margin: 0 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pager { display: flex; gap: 16px; justify-content: space-between; margin: 22px 0; }
.pager .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pager a, .pager span { text-decoration: none; }

.entry { font-size: 18px; }
.entry h2 { margin: 1.2em 0 0.35em; }
.entry h3 { font-family: var(--serif); font-size: 26px; font-weight: 560; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry blockquote { margin: 1.2em 0; padding: 0 0 0 14px; border-left: 3px solid var(--teal); color: var(--muted); }
.hero-img { margin: 0 0 20px; max-height: 460px; width: 100%; object-fit: cover; }
.entry table { width: min(1100px, calc(100vw - 48px)); max-width: none; border-collapse: collapse; margin: 1.4em 0; background: #fff; font-size: 15.5px; line-height: 1.45; }
.entry th, .entry td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid #d5e6e4; }
.entry th { background: var(--teal); color: #fff; font-size: 14px; }
.entry th + th, .entry td + td { border-left: 1px solid #e4f0ef; }
.entry tbody tr:nth-child(even) td { background: #f7fbfa; }
@media (max-width: 899px) {
  .entry { overflow-x: auto; }
  .entry table { width: 720px; }
}

.contact-form { display: grid; gap: 10px; max-width: 520px; margin-top: 16px; }
.contact-form button { justify-self: start; padding: 10px 16px; }
.note { background: #fff; border-left: 3px solid var(--teal); padding: 10px 12px; }
.empty { color: var(--muted); }

.site-footer { margin-top: 56px; background: #2c241c; color: #f3ece3; padding: 36px 0 28px; }
.foot { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.site-footer strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 560; }
.foot-note { margin: 8px 0; color: #cbbbaa; font-size: 15px; max-width: 36rem; }
.foot-mail { color: #f3ece3; font-weight: 560; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.site-footer a { color: #f3ece3; text-decoration: none; }
.site-footer a:hover { color: #f0b089; }

@media (max-width: 980px) {
  .cards, .sections { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .intro, .cards, .sections, .foot { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 2px solid var(--teal); padding: 12px 16px 16px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .header-search input { width: 100%; }
  .site-footer nav ul { align-items: flex-start; }
}
@media (max-width: 560px) { body { font-size: 17px; } }
