/*
Theme Name: Useless Landscape
Theme URI: 
Author: Miyuki Kido
Author URI:
Description: 無意味な風景 — Useless Landscape. A minimal theme for photography, poetry, and essay.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: useless-landscape
Template: lightning
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500&family=EB+Garamond:ital,wght@0,400;1,400&family=Space+Mono&display=swap');

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

:root {
  --bg: #f9f8f6;
  --ink: #111110;
  --ink-light: #888880;
  --ink-rule: #d0cfc8;
  --blue: #3333FF;
  --font-ja: 'Shippori Mincho', serif;
  --font-en: 'EB Garamond', serif;
  --font-mono: 'Space Mono', monospace;
  --side: clamp(24px, 6vw, 80px);
  --max: 680px;
}

/* ── ベース ── */
html,
body,
#page,
#wrapper,
.wrapper {
  background: #f9f8f6 !important;
  color: #111110;
  font-family: 'Shippori Mincho', serif;
  -webkit-font-smoothing: antialiased;
}

/* ── リンク ── */
a {
  color: #111110;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.5; }

/* ── ヘッダー ── */
#site-header,
.site-header,
header#masthead {
  background: #f9f8f6 !important;
  border-bottom: 1px solid #d0cfc8;
  box-shadow: none !important;
  padding: 28px var(--side);
}

h1.site-header-logo,
p.site-header-logo,
.site-header-logo,
h1.site-header-logo a,
p.site-header-logo a,
.site-header-logo a {
  display: flex !important;
  flex-direction: column !important;
  font-family: 'Shippori Mincho', serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  color: #111110 !important;
  background: transparent !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}

h1.site-header-logo a:hover,
p.site-header-logo a:hover {
  opacity: 1 !important;
}

h1.site-header-logo a::after,
p.site-header-logo a::after,
.site-header-logo a::after {
  content: 'Useless Landscape' !important;
  display: block !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 11px !important;
  font-style: italic !important;
  color: #888880 !important;
  letter-spacing: 0.05em !important;
  font-weight: 400 !important;
  margin-top: 4px !important;
}

.site-description { display: none !important; }

/* ── ナビゲーション ── */
#nav-global, .nav-global, .global-nav,
nav#site-navigation, .main-navigation {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#nav-global ul, .global-nav ul, nav ul, .main-navigation ul {
  background: transparent !important;
  display: flex !important;
  gap: 28px !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#nav-global ul li, nav ul li, .main-navigation ul li {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

#nav-global ul li a, nav ul li a, .main-navigation ul li a {
  font-family: 'Space Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  color: #888880 !important;
  text-transform: lowercase !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

#nav-global ul li a:hover, nav ul li a:hover,
.current-menu-item > a {
  color: #111110 !important;
  background: transparent !important;
  opacity: 1 !important;
}

nav ul li ul, .main-navigation ul li ul {
  background: #f9f8f6 !important;
  border: 1px solid #d0cfc8 !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}

nav ul li ul li a, .main-navigation ul li ul li a {
  padding: 6px 16px !important;
}

/* ── スライダー・ヒーロー非表示 ── */
.vk-slider, .hero-section, .vk_slider, #vk_slider,
.vk-hero, .vk_hero {
  display: none !important;
}

/* ── パンくず・ページタイトル非表示 ── */
.vk-breadcrumb, .breadcrumb, #breadcrumb,
.page-header {
  display: none !important;
}

/* ── メインコンテンツ ── */
#contents, .site-content, main#main {
  background: #f9f8f6 !important;
  padding: 60px var(--side) !important;
}

#contents-main, .contents-main {
  width: 100% !important;
  float: none !important;
}

/* ── 最近の投稿非表示 ── */
aside.widget.widget_media,
aside.widget_recent_entries,
.widget_recent_entries {
  display: none !important;
}

/* ── サイドバースタイル ── */
.sub-section-title {
  font-family: 'Space Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  color: #888880 !important;
  text-transform: uppercase !important;
  border: none !important;
  margin-bottom: 16px !important;
}

.sub-section a {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 13px !important;
  color: #888880 !important;
}

.sub-section a:hover {
  color: #111110 !important;
  opacity: 1 !important;
}

/* ── 投稿一覧 ── */
.essay-index {
  padding: 80px var(--side) 120px;
  max-width: calc(var(--max) + var(--side) * 2);
}

.essay-list {
  list-style: none;
}

.essay-item {
  border-top: 1px solid var(--ink-rule);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 32px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  animation: fadein 0.5s forwards;
}

.essay-item:nth-child(1) { animation-delay: 0.05s; }
.essay-item:nth-child(2) { animation-delay: 0.12s; }
.essay-item:nth-child(3) { animation-delay: 0.19s; }
.essay-item:nth-child(4) { animation-delay: 0.26s; }
.essay-item:nth-child(5) { animation-delay: 0.33s; }

@keyframes fadein {
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.essay-date {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888880;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.essay-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.essay-title-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #111110;
}

.essay-title-ja:hover { opacity: 0.5; }

.essay-title-en {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: #888880;
  letter-spacing: 0.04em;
}

.essay-excerpt {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  line-height: 2;
  color: #888880;
  margin-top: 10px;
}

/* ── 投稿本文 ── */
.entry-content {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 16px !important;
  line-height: 2.2 !important;
  letter-spacing: 0.04em !important;
  color: #111110 !important;
}

.entry-content p {
  margin-bottom: 2em !important;
  color: #111110 !important;
}

.entry-content hr {
  border: none !important;
  border-top: 1px solid #d0cfc8 !important;
  margin: 3em 0 !important;
}

.entry-header .entry-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: clamp(22px, 3.5vw, 32px) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.6 !important;
  color: #111110 !important;
}

/* ── 続きを読むボタン ── */
.more-link, .read-more, a.more-link {
  background: transparent !important;
  color: #888880 !important;
  border: 1px solid #d0cfc8 !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.15em !important;
  padding: 6px 16px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.more-link:hover, a.more-link:hover {
  color: #111110 !important;
  border-color: #111110 !important;
  opacity: 1 !important;
}

/* ── 投稿日 ── */
.post-date, .entry-date, .posted-on, time {
  font-family: 'Space Mono', monospace !important;
  font-size: 10px !important;
  color: #888880 !important;
  letter-spacing: 0.05em !important;
}

/* ── カテゴリラベル ── */
.cat-label, .cat-links, .category-label {
  background: transparent !important;
  border: 1px solid #d0cfc8 !important;
  color: #888880 !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  padding: 2px 8px !important;
  border-radius: 0 !important;
}

/* ── フッター ── */
footer.site-footer, footer#colophon, #footer {
  background: #f9f8f6 !important;
  border-top: 1px solid #d0cfc8 !important;
  padding: 24px var(--side) !important;
}

footer.site-footer *, footer#colophon * {
  font-family: 'Space Mono', monospace !important;
  font-size: 9px !important;
  color: #888880 !important;
  letter-spacing: 0.12em !important;
  background: transparent !important;
}

.site-footer-copyright p:nth-child(2),
.site-footer-copyright p:last-child {
  display: none !important;
}

/* ── 標本ページ ── */
.specimen-archive {
  padding: 80px var(--side) 160px;
}

.specimen-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.specimen {
  padding: 80px 0;
  border-top: 1px solid #d0cfc8;
  max-width: 680px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s forwards;
}

.specimen:nth-child(1) { animation-delay: 0.05s; }
.specimen:nth-child(2) { animation-delay: 0.15s; }
.specimen:nth-child(3) { animation-delay: 0.25s; }

.specimen-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.specimen-id {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #888880;
  text-transform: uppercase;
}

.specimen-date {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #888880;
}

.polaroid {
  display: block;
  width: 100%;
  background: #ffffff;
  padding: 14px 14px 60px 14px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.07),
    0 4px 12px rgba(0,0,0,0.09),
    0 12px 40px rgba(0,0,0,0.06);
  position: relative;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.polaroid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #c0bfb8;
  text-transform: uppercase;
}

.specimen-poem { margin-top: 40px; }

.specimen-poem p {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  line-height: 2.6;
  letter-spacing: 0.06em;
  color: #111110;
  white-space: pre-line;
}

.specimen-poem-en { margin-top: 20px; }

.specimen-poem-en p {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-style: italic;
  line-height: 2.2;
  letter-spacing: 0.03em;
  color: #888880;
  white-space: pre-line;
}

.specimen-location {
  margin-top: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #d0cfc8;
  text-transform: uppercase;
}

/* ── タグ ── */
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #d0cfc8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags a {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #888880;
  text-transform: lowercase;
  border: 1px solid #d0cfc8;
  padding: 4px 10px;
}

.post-tags a:hover {
  color: #3333FF;
  border-color: #3333FF;
  opacity: 1;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  nav ul { gap: 16px !important; }
  .essay-item {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .essay-date { padding-top: 0; }
  .specimen { padding: 56px 0; }
  .polaroid { padding: 10px 10px 48px 10px; }
}
