/* ========================================
   ASMR Organizer Master - Stylesheet
   yushangad.com
   ======================================== */

:root {
  --c-bg: #FAF7F2;
  --c-bg-alt: #EDE8E0;
  --c-bg-warm: #F3EEE6;
  --c-surface: #FFFFFF;
  --c-text: #2D3129;
  --c-text-muted: #6E7566;
  --c-text-light: #949B8C;
  --c-primary: #6E9E82;
  --c-primary-hover: #5A8A6E;
  --c-primary-light: #D9EADD;
  --c-accent: #C4927A;
  --c-accent-light: #F0DDD4;
  --c-border: #DAD4CA;
  --c-border-light: #ECE7DF;
  --c-warning: #C0392B;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1140px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--c-primary-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  padding-left: 1.5em;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

h1 { font-size: 1.85rem; margin-bottom: 0.6em; }
h2 { font-size: 1.45rem; margin-top: 2em; margin-bottom: 0.5em; }
h3 { font-size: 1.18rem; margin-top: 1.6em; margin-bottom: 0.4em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; margin-bottom: 0.3em; }

p {
  margin-bottom: 1.1em;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 780px;
}

.container--mid {
  max-width: 880px;
}

.container--wide {
  max-width: 1020px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0.5rem;
  color: #fff;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border-light);
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--c-text);
  text-decoration: none;
}

.site-logo img, .site-logo svg {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
  color: var(--c-text-muted);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--c-text);
  background: var(--c-bg-alt);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--c-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero / First Screen */
.hero {
  padding: 3rem 0 2rem;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero__identity {
  flex: 1;
  max-width: 560px;
}

.hero__visual {
  flex: 1;
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  color: var(--c-text);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero__cta {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  transition: background var(--transition);
  text-decoration: none;
}

.hero__cta:hover {
  background: var(--c-primary-hover);
  color: #fff;
  text-decoration: none;
}

.hero__operator {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--c-text-light);
}

.hero__operator a {
  color: var(--c-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--c-border);
}

/* Content sections */
.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--warm {
  background: var(--c-bg-warm);
}

.section--accent {
  background: var(--c-primary-light);
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-light);
  margin-bottom: 1rem;
}

/* Observation block & Split Section */
.split-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.split-section.reverse {
  flex-direction: row-reverse;
}
.section-image {
  flex: 1;
}
.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.observation {
  flex: 1;
  padding: 2.5rem 0;
}

.observation p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--c-text);
}

/* Method / perspective section */
.method {
  flex: 1;
}

.method p {
  line-height: 1.78;
}

/* Feature list (non-grid) */
.feature-flow {
  list-style: none;
  padding: 0;
  max-width: 780px;
}

.feature-flow li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--c-border-light);
  line-height: 1.7;
}

.feature-flow li:last-child {
  border-bottom: none;
}

.feature-flow__title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3em;
  color: var(--c-text);
}

/* What we don't do */
.boundary-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.boundary-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.boundary-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c-accent);
}

/* Blockquote */
.pull-quote {
  max-width: 580px;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--c-accent-light);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
}

.pull-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--c-text-muted);
}

/* Article cards (asymmetric) */
.article-cards {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.article-cards--featured {
  grid-template-columns: 1fr 1fr;
}

.article-cards--featured .article-card:first-child {
  grid-row: span 2;
}

.article-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.article-card:hover .article-card__img img {
  transform: scale(1.05);
}

.article-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.article-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  line-height: 1.35;
}

.article-card__excerpt {
  font-size: 0.93rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-card__meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--c-text-light);
}

/* FAQ */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--c-border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--c-primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--c-text-light);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.2rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* Article page */
.article-header {
  padding: 2.5rem 0 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--c-text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-light);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.article-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--c-text);
  padding: 1.2rem 1.5rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.article-body h2 {
  margin-top: 2.5rem;
}

.article-body h3 {
  margin-top: 2rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.2em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th, .article-body td {
  padding: 0.7rem 1rem;
  text-align: left;
  border: 1px solid var(--c-border);
}

.article-body th {
  background: var(--c-bg-alt);
  font-weight: 600;
  font-size: 0.9rem;
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Article footer */
.article-author {
  max-width: 680px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.article-author__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-border);
  flex-shrink: 0;
  object-fit: cover;
}

.article-author__name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2em;
}

.article-author__bio {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* References & further reading */
.article-references {
  max-width: 680px;
  margin: 2rem auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border-light);
}

.article-references h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5em;
}

.article-references ul {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.article-references li {
  margin-bottom: 0.4em;
}

/* About page */
.about-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Services page */
.service-block {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 0;
}

.service-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--c-border-light);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.service-detail dt {
  font-weight: 600;
  color: var(--c-text-muted);
}

.service-detail dd {
  margin: 0;
}

/* Contact page */
.contact-form {
  max-width: 560px;
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--c-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .form-hint {
  font-size: 0.82rem;
  color: var(--c-text-light);
  margin-top: 0.25rem;
}

.form-submit {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--c-primary-hover);
}

.contact-info {
  max-width: 680px;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 0.6em;
}

/* Legal pages */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-update {
  font-size: 0.88rem;
  color: var(--c-text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-light);
}

/* Footer */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-col {
  min-width: 160px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin: 0 0 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.footer-col a:hover {
  color: var(--c-text);
}

.footer-bottom {
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--c-border-light);
  font-size: 0.82rem;
  color: var(--c-text-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* 404 page */
.page-404 {
  text-align: center;
  padding: 5rem 1rem;
}

.page-404 h1 {
  font-size: 3rem;
  color: var(--c-text-light);
  margin-bottom: 0.3em;
}

.page-404 p {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }

  .split-section {
    flex-direction: column !important;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__identity {
    max-width: 100%;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border-light);
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    gap: 0.1rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .article-cards--featured {
    grid-template-columns: 1fr;
  }

  .article-cards--featured .article-card:first-child {
    grid-row: auto;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .section {
    padding: 2rem 0;
  }

  .article-card__content {
    padding: 1.2rem;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero__cta {
    display: none;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a { color: #000; text-decoration: underline; }
}
