/*
Theme Name: Лунка
Description: Журнал о зимней рыбалке. На сайте только выпущенные заметки, карта мест и погода у воды.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lunka
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #ffffff;
  --ink: #1f2937;
  --heading: #1e3a8a;
  --muted: #4b5563;
  --paper: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --ice: #dbeafe;
  --ice-deep: #1e3a8a;
  --ember: #ea580c;
  --serif: Inter, "Segoe UI", system-ui, sans-serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a { color: var(--heading); }

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow { width: min(720px, 100%); }

.narrow table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.95rem;
}

.narrow th,
.narrow td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.narrow th { color: #1e3a8a; }

.related-links { margin-top: 1.6rem; }

.mast {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mark { width: 36px; height: 36px; color: var(--heading); flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  font: inherit;
}

.nav { display: flex; gap: 6px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a { background: #eff6ff; color: var(--heading); }

.hero {
  background: #fff;
  color: var(--ink);
  padding: 36px 0 0;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--ember);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .kicker { color: var(--ember); }

.kicker a { color: inherit; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.05rem, 5vw, 3.6rem);
}

.hero h1 { color: var(--heading); max-width: 16ch; }

.lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero .lede { color: var(--muted); }

.lede.tight { margin-bottom: 18px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.facts li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts li:first-child { border-top: 0; }

.facts strong { font-family: var(--serif); font-size: 1.2rem; }

.facts span { color: var(--muted); font-size: 0.95rem; }

.band { padding: 36px 0 10px; }

.section-head { margin-bottom: 18px; }

.section-head h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }

.section-head p { margin: 0; color: var(--muted); }

.empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
  background: var(--card);
  border: 1px dashed #b7c9d2;
  border-radius: 20px;
}

.empty.slim { grid-template-columns: 1fr; }

.empty h2, .empty h3 { margin: 0 0 8px; }

.empty p { margin: 0; color: var(--muted); }

.hole {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, #143246 0 26%, transparent 27%),
    radial-gradient(circle at 50% 50%, #e7f2f6 0 68%, #8eb4c4 69% 100%);
  box-shadow: inset 0 0 0 8px var(--card), 0 8px 20px rgba(16, 40, 51, 0.08);
}

.memo-grid, .notes, .queue {
  display: grid;
  gap: 14px;
}

.notes, .queue { list-style: none; margin: 0; padding: 0; }

.memo, .q-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 20px;
}

.note {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.memo { border-top: 4px solid var(--ice-deep); }

.num {
  margin: 0 0 8px;
  color: var(--ice-deep);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.memo h3, .note h3, .q-body h2 { margin: 0 0 8px; }

.note h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }

.note > div { padding: 18px 20px 22px; }

.note a, .q-body h2 a { color: inherit; text-decoration: none; }

.note a:hover, .q-body h2 a:hover { color: var(--ember); }

.meta, .fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.flag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f6dcc4;
  color: #6d3410;
  font-size: 0.82rem;
  font-weight: 700;
}

.meta { margin: 0 0 8px; }

.meta a { color: var(--ice-deep); }

.memos { padding-bottom: 48px; }

.sheet { padding: 32px 0 56px; }

.prose p,
.summary,
.sheet p {
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.65;
}

.prose p { margin: 0 0 0.8em; }

.prose p:last-child { margin-bottom: 0; }

.source-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.empty-link { margin: 14px 0 0; }

.weather-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
}

.weather-strip a {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 190px;
  min-height: 108px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.weather-strip a:hover { border-color: #c9ad92; color: inherit; }

.weather-strip strong { font-size: 0.95rem; line-height: 1.3; }

.weather-strip b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.weather-strip span { color: var(--muted); font-size: 0.88rem; }

.note-photo,
.article-cover,
.q-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: #e5e7eb;
}

.note-photo { min-height: 240px; }

.article-cover {
  margin: 8px 0 28px;
  border-radius: 8px;
  min-height: 280px;
}

.cover-frame { margin: 0; }

.q-photo { margin: 0 0 12px; }

.photo-link { display: block; color: inherit; }

iframe.spot-map { display: block; width: 100%; }

.spot-map {
  height: 320px;
  margin: 8px 0 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(142, 192, 210, 0.35), rgba(16, 40, 51, 0.08)),
    #e7f1f5;
}

.map-note { margin: 0 0 18px; }

.find-form {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
}

.find-results { margin: 0 0 18px; }

.find-results h2 { margin: 0 0 10px; font-size: 1.4rem; }

.find-hit { align-items: center; }

.spot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.spot {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.spot.is-on { border-color: var(--ember); box-shadow: inset 4px 0 0 var(--ember); }

.spot h2 { margin: 0 0 8px; font-size: 1.45rem; }

.spot h2 a { color: inherit; text-decoration: none; }

.spot h2 a:hover { color: var(--ember); }

.spot p { margin: 0 0 8px; }

.spot-weather {
  background: #f6f1e8;
  border-radius: 14px;
  padding: 12px 14px;
}

.spot-weather p { margin: 0 0 4px; }

.temp {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.caution {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6dcc4;
  color: #6d3410;
}

.login-card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 28px;
}

.stack { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 650;
}

input, textarea {
  width: 100%;
  border: 1px solid #d9cbb8;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  padding: 12px 14px;
}

textarea { min-height: 170px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #fffaf3;
}

.btn.primary:hover { background: #c2410c; color: white; }

.btn.ghost { background: transparent; }

.btn.danger {
  background: transparent;
  border-color: transparent;
  color: #8d3414;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}

.tabs a.is-on {
  background: var(--night);
  border-color: var(--night);
  color: #f6f1e8;
}

.tabs b { font-weight: 650; }

.q-card { display: grid; gap: 14px; }

.q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.q-actions form, .edit-actions { margin: 0; }

.edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.q-body p:last-child { margin-bottom: 0; }

.alert, .flashes {
  background: #fde7d8;
  color: #6d2e0e;
  border-radius: 12px;
  padding: 12px 14px;
}

.flashes { list-style: none; margin: 0 0 16px; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-foot p { margin: 0; }

@media (min-width: 800px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid {
    grid-template-columns: 1.45fr 0.8fr;
    gap: 48px;
    align-items: end;
  }
  .memo-grid { grid-template-columns: repeat(3, 1fr); }
  .notes { gap: 28px; }
  .spot { grid-template-columns: 1.4fr 0.7fr; align-items: start; }
  .find-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .spot-map { height: 460px; }
  .foot-grid { grid-template-columns: 1.2fr 0.8fr 1fr; align-items: start; }
  .q-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .q-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 148px;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a { color: inherit; }

.crumbs span::before,
.crumbs a + a::before,
.crumbs a + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line);
}

.foot-grid {
  display: grid;
  gap: 28px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-links a { color: inherit; }

.foot-form, .foot-form label, .find-form label { display: grid; gap: 4px; }

.foot-form input, .foot-form textarea, .find-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
}

.hp { position: absolute; left: -9999px; }

.form-note { color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; flex-basis: 100%; padding: 0 0 14px; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
}

.hero-bleed {
  margin: 28px 0 0;
}

.hero-bleed img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 620px;
  object-fit: cover;
}

.wx-widget {
  display: grid;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.wx-widget h2 { margin: 0; }

.wx-temp {
  margin: 8px 0 0;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--heading);
}

.wx-wind { margin: 8px 0 0; font-size: 1.12rem; }

.nav-toggle {
  border-radius: 4px;
  font-weight: 600;
}

@media (min-width: 800px) {
  .wx-widget { grid-template-columns: minmax(240px, 320px) 1fr; align-items: center; }
}

@media (max-width: 640px) {
  .empty { grid-template-columns: 1fr; }
  .sheet-top { flex-direction: column; }
  .mast-row { min-height: 64px; }
  .brand small { letter-spacing: 0.08em; }
  .notes { gap: 20px; }
  .note-photo, .article-cover { min-height: 210px; }
}
