/* tsubomi-daikakumei.com — The Mobile-First Voice
   Pastel pink · Violet · Mint · Rounded soft UI */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=IBM+Plex+Sans+Thai:wght@400;500;600&display=swap');

:root {
  --pink: #f4b6ce;
  --pink-soft: #fce7ef;
  --pink-deep: #e0709a;
  --violet: #cdb8ee;
  --violet-soft: #efe7fb;
  --violet-deep: #8e6fc0;
  --mint: #a8dcc4;
  --mint-soft: #dcf1e6;
  --mint-deep: #4e9d7a;
  --paper: #fefaf9;
  --paper-warm: #fef4f4;
  --ink: #2d1b3c;
  --ink-soft: #4a3b5c;
  --muted: #8578a0;
  --line: #ede4f1;
  --card: #ffffff;
  --shadow: 0 4px 20px rgba(142, 111, 192, 0.08);
  --shadow-lg: 0 12px 40px rgba(142, 111, 192, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'IBM Plex Sans Thai', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Sarabun', sans-serif;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 1rem; font-weight: 700; }
h2 {
  font-size: 1.75rem;
  margin: 2.75rem 0 1.25rem;
  position: relative;
  padding-left: 1rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 6px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  border-radius: 3px;
}
h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--violet-deep);
  font-weight: 600;
}
h4 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; font-weight: 600; }
p { margin-bottom: 1rem; }

strong { color: var(--pink-deep); font-weight: 700; }

a {
  color: var(--violet-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--violet-soft);
  transition: all 0.2s;
}
a:hover { color: var(--pink-deep); border-bottom-color: var(--pink); }

/* Masthead */
.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.masthead-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-family: 'Sarabun', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}
.logo-tagline {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink-soft);
  border-bottom: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  transition: all 0.15s;
}
nav a:hover {
  color: var(--violet-deep);
  background: var(--violet-soft);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--violet-soft) 60%, var(--mint-soft) 100%);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  color: var(--violet-deep);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.hero-badge::before {
  content: '✿';
  color: var(--pink-deep);
}
.hero h1 { font-size: 2.85rem; line-height: 1.2; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--pink-deep), var(--violet-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 1.25rem;
}
.hero img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* Layout */
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}
article { min-width: 0; }

/* Breadcrumbs */
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.crumbs a { color: var(--muted); border: none; font-weight: 500; }
.crumbs a:hover { color: var(--pink-deep); }
.crumbs span[aria-current] { color: var(--violet-deep); font-weight: 600; }

/* TOC */
.toc {
  background: linear-gradient(135deg, var(--pink-soft), var(--violet-soft));
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-title::before {
  content: '♡';
  color: var(--pink-deep);
  font-size: 1.2rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 2rem;
}
.toc li {
  counter-increment: toc;
  padding: 0.4rem 0 0.4rem 2.4rem;
  position: relative;
  break-inside: avoid;
  font-size: 0.94rem;
}
.toc li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 26px;
  height: 26px;
  background: var(--card);
  color: var(--violet-deep);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  box-shadow: var(--shadow);
}
.toc a { color: var(--ink); border: none; font-weight: 500; }
.toc a:hover { color: var(--pink-deep); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.tag-pink { background: var(--pink-soft); color: var(--pink-deep); }
.tag-violet { background: var(--violet-soft); color: var(--violet-deep); }
.tag-mint { background: var(--mint-soft); color: var(--mint-deep); }

.card h3, .card h4 {
  margin-top: 0;
  color: var(--ink);
}
.card p:last-child { margin-bottom: 0; }

/* Phone frame mockup */
.phone-frame {
  max-width: 320px;
  margin: 2rem auto;
  background: var(--ink);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--paper);
  border-radius: 28px;
  padding: 1.25rem;
  min-height: 480px;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--ink);
  border-radius: 3px;
}
.phone-screen h4 {
  margin-top: 1rem;
  color: var(--violet-deep);
  font-size: 1rem;
}
.phone-screen .ph-item {
  background: var(--pink-soft);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0.65rem 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-screen .ph-item.violet { background: var(--violet-soft); }
.phone-screen .ph-item.mint { background: var(--mint-soft); }
.phone-screen .ph-num {
  font-weight: 700;
  color: var(--violet-deep);
}

/* Numbered steps list */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border-radius: 16px;
  padding: 1.15rem 1.4rem 1.15rem 4rem;
  margin-bottom: 0.85rem;
  position: relative;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.1rem;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
}
.steps li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1.02rem;
}

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--pink-soft), var(--violet-soft));
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  border-radius: 18px;
  font-size: 0.98rem;
}
.callout-label {
  font-weight: 700;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tip-box {
  background: var(--mint-soft);
  padding: 1.35rem 1.65rem;
  margin: 1.5rem 0;
  border-radius: 16px;
}
.tip-box-label {
  display: inline-block;
  background: var(--mint-deep);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.warning-box {
  background: var(--pink-soft);
  padding: 1.35rem 1.65rem;
  margin: 1.5rem 0;
  border-radius: 16px;
}
.warning-box-label {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Sidebar */
aside.sidebar {
  position: sticky;
  top: 5rem;
}
.sidebar-block {
  background: var(--card);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.sidebar-block ul { list-style: none; }
.sidebar-block li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--line);
}
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block a { color: var(--ink); border: none; font-weight: 500; }
.sidebar-block a:hover { color: var(--pink-deep); }

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.94rem;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 0.9rem 1.15rem; text-align: left; }
th {
  background: linear-gradient(135deg, var(--violet-deep), var(--pink-deep));
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
}
tbody tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--paper-warm); }

/* Lists */
ul.body-list, ol.body-list { margin: 1rem 0 1.5rem 1.5rem; }
ul.body-list li, ol.body-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}
ul.body-list li::marker { color: var(--pink-deep); }

/* Hero image on secondaries */
.article-hero {
  width: 100%;
  height: auto;
  margin: 1.5rem 0 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* FAQ */
.faq { margin: 2rem 0; }
.faq details {
  background: var(--card);
  border-radius: 16px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary {
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--pink-deep);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details > *:not(summary) { padding: 0 1.5rem 1.35rem; }

/* Author bio */
.author-bio {
  background: linear-gradient(135deg, var(--pink-soft), var(--violet-soft));
  border-radius: 24px;
  padding: 2rem;
  margin: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.75rem;
  align-items: center;
}
.author-bio img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--card);
  box-shadow: var(--shadow);
}
.author-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--pink-deep);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.author-name {
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.author-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Related pages */
.related {
  background: linear-gradient(135deg, var(--violet-soft), var(--mint-soft));
  padding: 2rem;
  border-radius: 24px;
  margin: 3rem 0 1rem;
}
.related h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--violet-deep);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related li {
  background: var(--card);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  transition: transform 0.15s;
  box-shadow: var(--shadow);
}
.related li:hover { transform: translateY(-3px); }
.related a {
  color: var(--ink);
  border: none;
  font-weight: 700;
  font-size: 1.02rem;
  display: block;
  margin-bottom: 0.35rem;
}
.related a:hover { color: var(--pink-deep); }
.related-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Disclaimer */
.disclaimer {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem 1.85rem;
  margin: 3rem 0 1.5rem;
  border: 2px dashed var(--pink);
  font-size: 0.9rem;
  line-height: 1.7;
}
.disclaimer-label {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: block;
}
.disclaimer strong { color: var(--ink); }
.disclaimer a { color: var(--violet-deep); }

/* Footer */
footer {
  background: linear-gradient(135deg, var(--ink), #3a2c47);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-radius: 40px 40px 0 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
footer h5 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.4rem; font-size: 0.9rem; }
footer a { color: rgba(255,255,255,0.75); border: none; font-size: 0.9rem; }
footer a:hover { color: var(--pink); }
.footer-legal {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  aside.sidebar { position: static; }
  .toc ol { columns: 1; }
  h1, .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 768px) {
  main { padding: 1.5rem 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .masthead-inner { padding: 0.85rem 1rem; }
  .author-bio { grid-template-columns: 1fr; text-align: center; }
  .author-bio img { margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  nav ul { gap: 0.5rem; }
  nav a { padding: 0.4rem 0.65rem; font-size: 0.88rem; }
}
