/*
Theme Name: OnePress Theme
Theme URI: https://onepress.co.kr
Author: OnePress
Author URI: https://onepress.co.kr
Description: AI 생활 브리핑 플랫폼을 위한 종이 지면 감성의 모바일 우선 WordPress 테마입니다.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onepress
*/

:root {
  --op-bg: #f5f1e8;
  --op-card: #fffaf0;
  --op-text: #1f2933;
  --op-muted: #6b7280;
  --op-line: #d6c7a8;
  --op-point: #1d4ed8;
  --op-point-soft: #dbeafe;
  --op-ink-soft: #374151;
  --op-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
  --op-radius: 8px;
  --op-page-x: clamp(16px, 4vw, 36px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(31, 41, 51, 0.025) 1px, transparent 1px),
    var(--op-bg);
  background-size: 100% 28px;
  color: var(--op-text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.op-theme-active {
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--op-point);
}

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

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.op-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px var(--op-page-x) 32px;
}

.op-site-header {
  border-bottom: 1px solid rgba(214, 199, 168, 0.72);
  background: rgba(245, 241, 232, 0.92);
}

.op-site-header-inner,
.op-site-footer-inner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 10px var(--op-page-x);
}

.op-site-brand,
.op-site-footer-brand {
  color: var(--op-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.op-site-brand {
  font-size: 1.08rem;
}

.op-site-footer-brand {
  font-size: 1.2rem;
}

.op-nav-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.op-nav-list a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--op-muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  padding: 8px 10px;
}

.op-nav-list a:hover,
.op-nav-list a:focus {
  background: var(--op-card);
  border-color: var(--op-line);
  color: var(--op-point);
}

.op-topline {
  align-items: center;
  border-bottom: 2px solid var(--op-text);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0 12px;
}

.op-date {
  color: var(--op-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.op-mode {
  border: 1px solid var(--op-line);
  border-radius: 999px;
  color: var(--op-point);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  white-space: nowrap;
}

.op-masthead {
  border-bottom: 1px solid var(--op-line);
  padding: 18px 0 16px;
  text-align: center;
}

.op-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 16vw, 6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.op-subtitle {
  color: var(--op-muted);
  font-size: clamp(0.92rem, 3.2vw, 1.08rem);
  font-weight: 700;
  margin: 12px auto 0;
  max-width: 720px;
}

.op-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.op-hero-card {
  background: var(--op-card);
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  display: grid;
  gap: 16px;
  padding: clamp(18px, 5vw, 32px);
}

.op-kicker {
  color: var(--op-point);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px;
}

.op-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 10vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.op-hero-copy {
  color: var(--op-ink-soft);
  font-size: clamp(1rem, 3vw, 1.18rem);
  margin: 14px 0 0;
  max-width: 720px;
}

.op-hero-meta {
  border-top: 1px solid var(--op-line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.op-meta-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.op-meta-mark {
  background: var(--op-point);
  border-radius: 50%;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.op-meta-text {
  color: var(--op-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.op-section {
  border-top: 2px solid var(--op-text);
  margin-top: 22px;
  padding-top: 12px;
}

.op-section-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.op-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 2.35rem);
  line-height: 1;
  margin: 0;
}

.op-section-note {
  color: var(--op-muted);
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.op-category-grid,
.op-region-grid,
.op-briefing-grid {
  display: grid;
  gap: 10px;
}

.op-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op-region-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.op-card,
.op-region-card,
.op-briefing-card {
  background: var(--op-card);
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  min-width: 0;
}

.op-card {
  min-height: 148px;
  padding: 16px;
}

.op-card-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.op-card-icon {
  align-items: center;
  background: var(--op-point-soft);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 999px;
  color: var(--op-point);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.op-card-label {
  color: var(--op-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.op-card-title {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0;
}

.op-card-copy {
  color: var(--op-muted);
  font-size: 0.88rem;
  font-weight: 650;
  margin: 8px 0 0;
}

.op-region-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 13px;
}

.op-region-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.op-region-copy {
  color: var(--op-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.op-briefing-grid {
  grid-template-columns: 1fr;
}

.op-briefing-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.op-briefing-title {
  font-size: clamp(1.08rem, 5vw, 1.42rem);
  line-height: 1.25;
  margin: 0;
}

.op-briefing-excerpt {
  color: var(--op-ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

.op-briefing-content {
  color: var(--op-text);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.82;
  max-width: 820px;
}

.op-briefing-content p {
  margin: 0 0 1.15em;
}

.op-briefing-content h2,
.op-briefing-content h3 {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.28;
  margin: 2em 0 0.7em;
}

.op-briefing-content strong {
  color: var(--op-text);
  font-weight: 900;
}

.op-briefing-content a {
  color: var(--op-point);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.op-briefing-content figure,
.op-content-figure {
  margin: 2rem 0;
}

.op-briefing-content img,
.op-content-figure img {
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  display: block;
  width: 100%;
}

.op-briefing-content figcaption,
.op-content-figure figcaption {
  color: var(--op-muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 8px;
}

.op-briefing-meta {
  align-items: center;
  border-top: 1px solid var(--op-line);
  color: var(--op-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  padding-top: 9px;
}

.op-article-links {
  border-top: 1px solid var(--op-line);
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
}

.op-article-links a {
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: var(--op-radius);
  color: var(--op-point);
  font-size: 0.94rem;
  font-weight: 900;
  padding: 13px 14px;
}

.op-article-links a:hover,
.op-article-links a:focus {
  background: var(--op-point);
  border-color: var(--op-point);
  color: #ffffff;
}

.op-empty {
  background: rgba(255, 250, 240, 0.72);
  border: 1px dashed var(--op-line);
  border-radius: var(--op-radius);
  color: var(--op-muted);
  font-weight: 700;
  padding: 18px;
}

.op-notice {
  border-top: 2px solid var(--op-text);
  color: var(--op-muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 26px;
  padding-top: 14px;
}

.op-footer {
  color: var(--op-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 16px 0 0;
  text-align: center;
}

.op-site-footer {
  border-top: 2px solid var(--op-text);
  margin-top: 20px;
  padding-bottom: 22px;
}

.op-site-footer-inner {
  align-items: flex-start;
  flex-direction: column;
  padding-bottom: 0;
  padding-top: 18px;
}

.op-site-footer-copy {
  color: var(--op-muted);
  font-size: 0.82rem;
  font-weight: 750;
  margin: 0;
}

.op-info-page {
  min-height: 100vh;
}

.op-page-head {
  border-bottom: 1px solid var(--op-line);
  padding: clamp(24px, 7vw, 54px) 0 clamp(20px, 5vw, 34px);
}

.op-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 16vw, 7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
}

.op-page-copy {
  color: var(--op-ink-soft);
  font-size: clamp(1rem, 3vw, 1.18rem);
  font-weight: 650;
  margin: 16px 0 0;
  max-width: 780px;
}

.op-feature-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.op-feature-card {
  background: var(--op-card);
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  min-width: 0;
  padding: clamp(16px, 4vw, 24px);
}

.op-feature-card-large {
  display: grid;
  gap: 18px;
}

.op-feature-title {
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1.18;
  margin: 0;
}

.op-feature-copy {
  color: var(--op-ink-soft);
  font-size: 0.98rem;
  font-weight: 650;
  margin: 12px 0 0;
}

.op-button {
  align-items: center;
  background: var(--op-point);
  border: 1px solid var(--op-point);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 10px 18px;
}

.op-button:hover,
.op-button:focus {
  background: #173ea7;
  color: #ffffff;
}

.op-card-link {
  display: block;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.op-card-link:hover,
.op-card-link:focus {
  border-color: var(--op-point);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.12);
  color: var(--op-text);
  transform: translateY(-2px);
}

.op-check-list {
  color: var(--op-ink-soft);
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 750;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.op-check-list li {
  border-top: 1px solid var(--op-line);
  padding-top: 10px;
}

.op-map-preview {
  background:
    linear-gradient(90deg, rgba(214, 199, 168, 0.5) 1px, transparent 1px),
    linear-gradient(rgba(214, 199, 168, 0.5) 1px, transparent 1px),
    #f7f0df;
  background-size: 42px 42px;
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.op-map-paper {
  height: 100%;
  min-height: 260px;
  position: relative;
}

.op-map-road,
.op-map-pin,
.op-map-label {
  position: absolute;
}

.op-map-road {
  background: var(--op-point);
  border-radius: 999px;
  height: 7px;
  opacity: 0.78;
}

.op-map-road-a {
  left: -10%;
  top: 36%;
  transform: rotate(-12deg);
  width: 120%;
}

.op-map-road-b {
  left: 8%;
  top: 64%;
  transform: rotate(18deg);
  width: 96%;
}

.op-map-road-c {
  background: #c2410c;
  height: 5px;
  left: 48%;
  top: -8%;
  transform: rotate(84deg);
  width: 84%;
}

.op-map-pin {
  background: #ffffff;
  border: 5px solid var(--op-point);
  border-radius: 50%;
  height: 24px;
  width: 24px;
}

.op-map-pin-a {
  left: 22%;
  top: 42%;
}

.op-map-pin-b {
  right: 22%;
  top: 58%;
}

.op-map-label {
  background: var(--op-card);
  border: 1px solid var(--op-line);
  border-radius: 999px;
  color: var(--op-text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.op-map-label-a {
  left: 28%;
  top: 27%;
}

.op-map-label-b {
  right: 18%;
  top: 42%;
}

.op-data-strip {
  border-top: 1px solid var(--op-line);
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
}

.op-data-strip span {
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 999px;
  color: var(--op-point);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 7px 11px;
  text-align: center;
}

@media (min-width: 640px) {
  .op-page {
    padding-top: 24px;
  }

  .op-section-note {
    display: block;
  }

  .op-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-region-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .op-briefing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-article-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-data-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .op-site-footer-inner {
    align-items: center;
    flex-direction: row;
  }

  .op-site-footer-copy {
    margin-left: auto;
    text-align: right;
  }

  .op-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  }

  .op-hero-card {
    min-height: 420px;
  }

  .op-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-region-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .op-briefing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-feature-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

  .op-feature-card-large {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  }
}
