/*
Theme Name: OC Kitsune Comics
Theme URI: http://43.167.215.247/
Author: Codex
Description: A compact WordPress theme for publishing OC Kitsune comic desktop wallpapers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: oc-kitsune
*/

:root {
  --ink: #371405;
  --orange: #ff7a1a;
  --orange-deep: #b94a0e;
  --cream: #fff3df;
  --paper: #fffaf1;
  --blue: #2d7590;
  --blue-deep: #174a5c;
  --rose: #ffb09d;
  --line: 4px solid var(--ink);
  --shadow: 8px 8px 0 #371405;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(45, 117, 144, .10) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #fffaf1 0%, #fff0db 100%);
  font-family: "Trebuchet MS", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
}

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

.site-header {
  border-bottom: var(--line);
  background: rgba(255, 250, 241, .92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.section-inner,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  border-color: var(--orange);
}

.hero {
  border-bottom: var(--line);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 176, 157, .45), transparent 22%),
    linear-gradient(135deg, rgba(255, 122, 26, .16), rgba(45, 117, 144, .14));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 36px;
  padding: 54px 0 42px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.hero-art {
  justify-self: center;
  width: min(470px, 100%);
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.hero-art img {
  width: 108%;
  max-width: none;
  transform: translateY(7%);
}

.content-area {
  padding: 42px 0 64px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2,
.archive-title,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card,
.single-panel,
.comment-respond,
.comments-area {
  border: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.post-card .thumb {
  aspect-ratio: 16 / 10;
  display: block;
  background:
    repeating-linear-gradient(0deg, #fff 0 18px, rgba(45, 117, 144, .18) 18px 28px),
    var(--cream);
  border-bottom: var(--line);
  overflow: hidden;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 18px;
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.meta {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: .9rem;
  font-weight: 800;
}

.single-panel {
  padding: clamp(20px, 4vw, 42px);
}

.single-panel .entry-title {
  margin-top: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.entry-content img {
  border: var(--line);
  border-radius: 8px;
}

.wallpaper-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.wallpaper-specs li {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--cream);
  font-weight: 900;
}

.site-footer {
  padding: 30px 0 46px;
  font-weight: 800;
}

.footer-band {
  border-top: var(--line);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 820px) {
  .header-inner,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 36px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
