/*
Theme Name: NomadBridge Nomad
Theme URI: https://nomadbridge.jp
Author: OpenAI Codex
Author URI: https://openai.com
Description: A lightweight editorial WordPress theme for NomadBridge with an overseas nomad atmosphere.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: nomadbridge-nomad
*/

:root {
  --bg: #f6efe6;
  --bg-alt: #efe6d7;
  --surface: rgba(255, 251, 245, 0.82);
  --surface-strong: #fff8ef;
  --text: #17352f;
  --muted: #60736d;
  --accent: #d96b3b;
  --accent-deep: #a44f2b;
  --line: rgba(23, 53, 47, 0.12);
  --shadow: 0 24px 80px rgba(23, 53, 47, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1160px;
  --reading-width: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 107, 59, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(33, 130, 112, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f2e9 0%, #f3eadf 50%, #efe6d7 100%);
  font-family: "Avenir Next", "Hiragino Sans", sans-serif;
  line-height: 1.7;
}

body.admin-bar .site-header {
  top: 32px;
}

body.home.blog {
  overflow-x: hidden;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 239, 230, 0.72);
  border-bottom: 1px solid rgba(23, 53, 47, 0.08);
}

.site-header__inner,
.site-footer__inner,
.section,
.hero,
.story-grid,
.content-wrap,
.archive-layout {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand-mark {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.brand-title {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 56px 0 36px;
}

.hero__main,
.hero__aside,
.feature-card,
.post-card,
.archive-hero,
.article-shell,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__main {
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.hero__main::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 35%;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 107, 59, 0.18), transparent 58%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.9);
  color: var(--accent-deep);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.archive-hero h1,
.article-header h1 {
  margin: 18px 0 16px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  max-width: 13ch;
}

.lead {
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  color: #fffaf5;
  background: var(--text);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 53, 47, 0.1);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero__stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.hero__stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__aside {
  padding: 22px;
}

.hero__panel {
  display: grid;
  gap: 18px;
}

.hero__panel-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(239, 230, 215, 0.78)),
    linear-gradient(180deg, rgba(33, 130, 112, 0.08), transparent);
  border: 1px solid rgba(23, 53, 47, 0.08);
}

.hero__panel-card h2,
.feature-card h2,
.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.hero__panel-card p,
.feature-card p,
.section-heading p,
.archive-hero p,
.article-intro {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 24px 0 48px;
}

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

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

.feature-card,
.post-card {
  overflow: hidden;
}

.feature-card__visual,
.post-card__visual,
.article-hero__visual {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(23, 53, 47, 0.86), rgba(33, 130, 112, 0.54)),
    linear-gradient(220deg, rgba(217, 107, 59, 0.44), transparent 60%);
  background-position: center;
  background-size: cover;
}

.feature-card__body,
.post-card__body {
  padding: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.post-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.post-card p,
.feature-card p {
  margin: 0 0 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.social-card {
  position: relative;
  overflow: hidden;
}

.social-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -54px auto;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 107, 59, 0.22), rgba(33, 130, 112, 0.18));
  pointer-events: none;
}

.social-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 52px 0 72px;
}

.archive-hero {
  padding: 28px;
  margin-bottom: 24px;
}

.archive-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.archive-list {
  display: grid;
  gap: 20px;
}

.archive-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 245, 0.72);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.sidebar-card li + li {
  margin-top: 8px;
}

.article-shell {
  width: min(calc(100% - 32px), 980px);
  margin: 42px auto 72px;
  overflow: hidden;
}

.article-hero__visual {
  min-height: 320px;
}

.article-header,
.article-body,
.article-footer {
  width: min(calc(100% - 40px), var(--reading-width));
  margin: 0 auto;
}

.article-header {
  padding: 36px 0 24px;
}

.article-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-body {
  padding: 4px 0 40px;
  font-size: 1.06rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.4em;
  line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 1.2em 0;
}

.article-body blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 248, 239, 0.8);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body figure {
  margin: 1.8em 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(23, 53, 47, 0.14);
}

.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.tag-list,
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 53, 47, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.empty-state {
  padding: 34px;
}

.empty-state p {
  margin: 0;
}

.site-footer {
  padding: 0 0 40px;
}

.site-footer__inner {
  padding-top: 28px;
  border-top: 1px solid rgba(23, 53, 47, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero,
  .archive-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header__inner,
  .section-heading,
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
  }

  .hero__main,
  .hero__aside,
  .archive-hero,
  .feature-card__body,
  .post-card__body,
  .sidebar-card {
    padding: 20px;
  }

  .article-header,
  .article-body,
  .article-footer {
    width: min(calc(100% - 24px), var(--reading-width));
  }

  .article-header h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
