/* =========================================
   Take a step Theme / Foundation
========================================= */
:root {
  --tas-ink: #2a2118;
  --tas-brown: #4a3b2b;
  --tas-muted: #7d7164;
  --tas-cream: #fffaf0;
  --tas-cream-2: #fbf5ea;
  --tas-beige: #f3ead8;
  --tas-beige-2: #f7f0e4;
  --tas-gold: #d2b46f;
  --tas-gold-deep: #b29452;
  --tas-line: rgba(178, 148, 82, 0.28);
  --tas-shadow: 0 18px 50px rgba(64, 46, 26, 0.09);
  --tas-serif: "Times New Roman", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  --tas-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tas-ink);
  background: var(--tas-cream);
  font-family: var(--tas-sans);
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.tas-sp-only { display: none; }

/* =========================================
   Header / Footer
========================================= */
.tas-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(178, 148, 82, 0.16);
}
.tas-site-header__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tas-site-logo { text-decoration: none; display: grid; gap: 2px; }
.tas-site-logo__main {
  font-family: var(--tas-serif);
  font-size: 23px;
  letter-spacing: 0.12em;
  color: var(--tas-ink);
}
.tas-site-logo__sub { font-size: 11px; color: var(--tas-muted); letter-spacing: 0.12em; }
.tas-menu, .tas-footer-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.tas-menu a, .tas-footer-menu a {
  text-decoration: none;
  font-size: 13px;
  color: var(--tas-brown);
  transition: color .22s ease;
}
.tas-menu a:hover, .tas-footer-menu a:hover { color: var(--tas-gold-deep); }
.tas-site-footer {
  padding: 58px 0 28px;
  background: #241d16;
  color: rgba(255,250,240,.82);
}
.tas-site-footer__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 36px;
}
.tas-footer-logo {
  margin: 0 0 12px;
  font-family: var(--tas-serif);
  font-size: 25px;
  letter-spacing: .14em;
  color: var(--tas-gold);
}
.tas-footer-copy { max-width: 520px; margin: 0; font-size: 13px; color: rgba(255,250,240,.68); }
.tas-footer-menu { flex-wrap: wrap; justify-content: flex-end; }
.tas-footer-menu a { color: rgba(255,250,240,.78); }
.tas-copyright { margin: 34px auto 0; width: min(1120px, 92vw); font-size: 12px; color: rgba(255,250,240,.45); }

/* =========================================
   Common Components
========================================= */
.tas-section { padding: 96px 24px 104px; }
.tas-section-head {
  width: min(960px, 92vw);
  margin: 0 auto 52px;
  text-align: center;
}
/* Left-aligned section heads are used inside grids.
   Keep them fluid so the second column does not collapse. */
.tas-section-head--left {
  width: auto;
  max-width: none;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.tas-section-head--compact { margin-bottom: 34px; }
.tas-section-kicker {
  position: relative;
  display: inline-block;
  margin: 0 0 10px;
  padding: 0 72px;
  font-family: var(--tas-serif);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .24em;
  color: var(--tas-gold-deep);
}
.tas-section-kicker::before,
.tas-section-kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  height: 1px;
  background: rgba(178,148,82,.45);
}
.tas-section-kicker::before { left: 0; }
.tas-section-kicker::after { right: 0; }
.tas-section-head--left .tas-section-kicker { padding-left: 0; }
.tas-section-head--left .tas-section-kicker::before { display: none; }
.tas-section-head h1,
.tas-section-head h2,
.tas-archive-hero h1 {
  margin: 0;
  font-family: var(--tas-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .08em;
  color: var(--tas-ink);
}
.tas-section-head p,
.tas-archive-hero p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 2;
  color: #6f6254;
}
.tas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-decoration: none;
  transition: .25s ease;
}
.tas-btn--main {
  background: var(--tas-gold);
  color: var(--tas-ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.tas-btn--main:hover { background: #e1c684; transform: translateY(-2px); }
.tas-btn--ghost {
  border: 1px solid rgba(255,255,255,.55);
  color: var(--tas-cream);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.tas-btn--ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.tas-btn--dark { background: #2a2118; color: var(--tas-cream); box-shadow: none; }
.tas-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--tas-gold-deep);
  text-decoration: none;
  font-weight: 600;
}
.tas-text-link::after { content: "→"; }

/* =========================================
   Front Page
========================================= */
.tas-fv {
  position: relative;
  min-height: 720px;
  background-image: var(--tas-fv-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: var(--tas-cream);
}
.tas-fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,24,18,.82) 0%, rgba(31,24,18,.62) 38%, rgba(31,24,18,.22) 70%, rgba(31,24,18,.08) 100%);
  z-index: 1;
}
.tas-fv__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 88vw);
  min-height: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tas-fv__label {
  margin: 0 0 22px;
  font-family: var(--tas-serif);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .18em;
  color: #d8bd79;
}
.tas-fv__title {
  margin: 0;
  font-family: var(--tas-serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .04em;
  color: #fff7e6;
  text-shadow: 0 4px 24px rgba(0,0,0,.28);
}
.tas-fv__text {
  margin: 30px 0 0;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 2;
  color: rgba(255,250,240,.92);
  text-shadow: 0 3px 18px rgba(0,0,0,.3);
}
.tas-fv__buttons { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.tas-categories {
  background: radial-gradient(circle at top left, rgba(210,180,111,.14), transparent 34%), linear-gradient(180deg, var(--tas-cream) 0%, var(--tas-beige-2) 100%);
}
.tas-category-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tas-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 28px 18px 24px;
  border: 1px solid rgba(178,148,82,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--tas-shadow);
  text-align: center;
  text-decoration: none;
  color: var(--tas-ink);
  transition: .25s ease;
}
.tas-category-card:hover { transform: translateY(-4px); border-color: rgba(178,148,82,.46); background: #fffdf7; box-shadow: 0 22px 52px rgba(64,46,26,.12); }
.tas-category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--tas-beige);
  color: var(--tas-gold-deep);
  font-family: var(--tas-serif);
  font-size: 25px;
  line-height: 1;
}
.tas-category-title { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.tas-category-text { display: block; font-size: 13px; line-height: 1.7; color: var(--tas-muted); }
.tas-intro { background: #2a2118; color: var(--tas-cream); }
.tas-intro__inner, .tas-books__inner, .tas-profile__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.tas-intro .tas-section-head h2, .tas-intro .tas-section-head p { color: var(--tas-cream); }
.tas-intro .tas-section-head p { color: rgba(255,250,240,.74); }
.tas-intro__panel {
  min-width: 0;
  width: 100%;
  padding: 42px;
  border: 1px solid rgba(210,180,111,.32);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
}
.tas-intro__panel p { margin: 0 0 1.4em; }
.tas-latest { background: linear-gradient(180deg, var(--tas-cream) 0%, #fff 100%); }
.tas-words {
  background: radial-gradient(circle at top right, rgba(210,180,111,.12), transparent 36%), #f5ecdc;
  text-align: center;
}
.tas-words__inner { width: min(860px, 92vw); margin: 0 auto; }
.tas-words h2 {
  margin: 0;
  font-family: var(--tas-serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.5;
}
.tas-words p { margin: 24px 0 30px; color: var(--tas-muted); }
.tas-books { background: var(--tas-cream); }
.tas-book-placeholder {
  min-width: 0;
  width: 100%;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdf7, var(--tas-beige));
  border: 1px solid var(--tas-line);
  box-shadow: var(--tas-shadow);
}
.tas-book-placeholder__label { margin: 0 0 10px; color: var(--tas-gold-deep); font-family: var(--tas-serif); letter-spacing: .16em; }
.tas-profile { background: #f7f0e4; }
.tas-profile__inner { grid-template-columns: 220px minmax(0, 1fr); }
.tas-profile__mark {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #2a2118;
  color: var(--tas-gold);
  font-family: var(--tas-serif);
  font-size: 72px;
}
.tas-profile h2 { margin: 0 0 18px; font-family: var(--tas-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 500; }
.tas-profile p { max-width: 720px; color: var(--tas-brown); }

/* =========================================
   Cards / Archives
========================================= */
.tas-post-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tas-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tas-card {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(178,148,82,.18);
  box-shadow: var(--tas-shadow);
  transition: .25s ease;
}
.tas-card:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(64,46,26,.13); }
.tas-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--tas-ink); }
.tas-card__image { aspect-ratio: 16 / 10; background: var(--tas-beige); overflow: hidden; }
.tas-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tas-card__placeholder { width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, rgba(210,180,111,.35), transparent 34%), linear-gradient(135deg, #fbf5ea, #d9c49a); }
.tas-card__body { padding: 22px 22px 24px; }
.tas-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--tas-muted); }
.tas-card__cat { color: var(--tas-gold-deep); font-weight: 700; }
.tas-card__title { margin: 0 0 12px; font-size: 19px; line-height: 1.65; letter-spacing: .05em; }
.tas-card__excerpt { margin: 0; font-size: 13px; color: var(--tas-muted); line-height: 1.8; }
.tas-archive-hero {
  padding: 88px 24px 72px;
  background: radial-gradient(circle at top left, rgba(210,180,111,.16), transparent 34%), var(--tas-beige-2);
}
.tas-archive-hero__inner { width: min(920px, 92vw); margin: 0 auto; text-align: center; }
.tas-archive-hero .tas-section-kicker::before, .tas-archive-hero .tas-section-kicker::after { display: block; }
.tas-archive-description { margin-top: 20px; color: var(--tas-muted); }
.tas-archive-list { background: var(--tas-cream); }
.pagination { width: min(1120px, 92vw); margin: 52px auto 0; display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--tas-brown);
  text-decoration: none;
  border: 1px solid var(--tas-line);
}
.pagination .current { background: var(--tas-ink); color: var(--tas-cream); }

/* =========================================
   Single Article
========================================= */
.tas-single-hero {
  padding: 86px 24px 58px;
  background: radial-gradient(circle at top left, rgba(210,180,111,.18), transparent 35%), linear-gradient(180deg, #fffaf0, #f7f0e4);
}
.tas-single-hero__inner { width: min(860px, 92vw); margin: 0 auto; text-align: center; }
.tas-single-meta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; color: var(--tas-muted); font-size: 13px; }
.tas-single-meta .tas-card__cat { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #f0e3c7; }
.tas-single h1, .tas-page h1 {
  margin: 0;
  font-family: var(--tas-serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .05em;
}
.tas-single-lead { margin: 22px auto 0; max-width: 680px; color: var(--tas-muted); line-height: 2; }
.tas-single-eyecatch {
  width: min(920px, 92vw);
  margin: 54px auto 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--tas-shadow);
}
.tas-single-eyecatch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tas-single-content {
  width: min(760px, 92vw);
  margin: 64px auto 0;
  color: var(--tas-ink);
  font-size: 16.5px;
  line-height: 2.08;
  letter-spacing: .04em;
}
.tas-content > * { margin-left: auto; margin-right: auto; }
.tas-content p { margin-top: 0; margin-bottom: 1.75em; }
.tas-content h2 {
  margin: 3.6em 0 1.3em;
  padding-bottom: .75em;
  border-bottom: 1px solid rgba(178,148,82,.35);
  font-family: var(--tas-serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
}
.tas-content h3 {
  margin: 2.5em 0 1em;
  padding-left: .9em;
  border-left: 4px solid var(--tas-gold);
  font-size: 21px;
  line-height: 1.6;
}
.tas-content ul, .tas-content ol {
  margin: 2em 0;
  padding: 1.5em 1.8em 1.5em 2.4em;
  border-radius: 18px;
  background: var(--tas-cream-2);
}
.tas-content li { margin: .45em 0; }
.tas-content blockquote {
  margin: 2.5em 0;
  padding: 1.6em 1.8em;
  border-left: 4px solid var(--tas-gold);
  border-radius: 16px;
  background: #fff7e6;
  color: var(--tas-brown);
}
.tas-content .wp-block-pullquote {
  border-top: 1px solid var(--tas-line);
  border-bottom: 1px solid var(--tas-line);
  color: var(--tas-brown);
}
.tas-content .wp-block-image img { border-radius: 22px; box-shadow: var(--tas-shadow); }
.tas-content a { color: #8f6f2f; text-decoration: underline; text-underline-offset: 4px; }
.tas-single-footer { width: min(760px, 92vw); margin: 52px auto 0; padding-top: 34px; border-top: 1px solid var(--tas-line); }
.tas-tags a { display: inline-flex; margin: 0 8px 8px 0; padding: 5px 12px; border-radius: 999px; background: var(--tas-beige); color: var(--tas-brown); text-decoration: none; font-size: 12px; }
.tas-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; }
.tas-post-nav a { color: var(--tas-gold-deep); text-decoration: none; }
.tas-related { padding: 80px 24px 96px; margin-top: 72px; background: var(--tas-beige-2); }


/* Reset old VK/Lightning heading styles inside imported posts */
.tas-content h2.wp-block-heading,
.tas-content h2[class*="is-style-"],
.tas-content h3.wp-block-heading,
.tas-content h3[class*="is-style-"] {
  background: transparent !important;
  box-shadow: none !important;
}
.tas-content h2.wp-block-heading,
.tas-content h2[class*="is-style-"] {
  padding: 0 0 .75em !important;
}

/* Existing imported posts often contain the same image at the top of the body.
   When a featured image is already shown by the theme, hide that duplicate first block. */
.tas-has-eyecatch .tas-single-content > .wp-block-image:first-child,
.tas-has-eyecatch .tas-single-content > figure:first-child.wp-block-image {
  display: none !important;
}

/* Table of contents plugins */
.tas-content #toc_container,
.tas-content .toc,
.tas-content .toc_container,
.tas-content .ez-toc-container {
  margin: 0 auto 4em !important;
  padding: 28px 32px !important;
  width: min(680px, 100%) !important;
  border: 1px solid rgba(178,148,82,.22) !important;
  border-radius: 24px !important;
  background: #fffdf7 !important;
  box-shadow: var(--tas-shadow) !important;
}
.tas-content #toc_container .toc_title,
.tas-content .toc_title,
.tas-content .ez-toc-title {
  margin: 0 0 16px !important;
  text-align: center !important;
  font-family: var(--tas-serif) !important;
  color: var(--tas-ink) !important;
  letter-spacing: .12em !important;
}
.tas-content #toc_container a,
.tas-content .toc a,
.tas-content .ez-toc-container a {
  color: var(--tas-brown) !important;
  text-decoration: none !important;
}
.tas-content #toc_container li,
.tas-content .toc li,
.tas-content .ez-toc-container li {
  margin: .35em 0 !important;
}

/* Gutenberg helper blocks used as article accents */
.tas-content .is-style-default.wp-block-quote,
.tas-content .wp-block-quote { box-shadow: none; }
.tas-content .wp-block-group {
  padding: 1.7em 1.9em;
  border-radius: 18px;
  background: #fff7e6;
}
.tas-content .wp-block-group.has-background { padding: 1.7em 1.9em; border-radius: 18px; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
  .tas-category-grid { grid-template-columns: repeat(3, 1fr); }
  .tas-post-grid { grid-template-columns: repeat(2, 1fr); }
  .tas-intro__inner, .tas-books__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tas-sp-only { display: block; }
  .tas-site-header__inner { min-height: 66px; }
  .tas-site-nav { display: none; }
  .tas-fv { min-height: 700px; background-position: center center; }
  .tas-fv__overlay { background: linear-gradient(180deg, rgba(31,24,18,.72) 0%, rgba(31,24,18,.56) 44%, rgba(31,24,18,.78) 100%); }
  .tas-fv__inner { width: min(88vw, 520px); min-height: 700px; align-items: center; text-align: center; padding: 40px 0; }
  .tas-fv__label { font-size: 17px; }
  .tas-fv__title { font-size: clamp(40px, 12vw, 58px); line-height: 1.22; }
  .tas-fv__text { font-size: 16px; }
  .tas-fv__buttons { width: 100%; flex-direction: column; gap: 12px; }
  .tas-btn { width: 100%; min-width: 0; }
  .tas-section { padding: 72px 18px 80px; }
  .tas-section-head { margin-bottom: 38px; }
  .tas-section-kicker { padding: 0 52px; font-size: 13px; }
  .tas-section-kicker::before, .tas-section-kicker::after { width: 40px; }
  .tas-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tas-category-card { min-height: 148px; padding: 22px 12px 20px; border-radius: 18px; }
  .tas-category-icon { width: 42px; height: 42px; margin-bottom: 12px; font-size: 22px; }
  .tas-category-title { font-size: 15px; }
  .tas-category-text { font-size: 12px; }
  .tas-post-grid, .tas-post-grid--3 { grid-template-columns: 1fr; }
  .tas-intro__panel, .tas-book-placeholder { padding: 28px; border-radius: 22px; }
  .tas-profile__inner { grid-template-columns: 1fr; gap: 28px; }
  .tas-profile__mark { width: 112px; height: 112px; font-size: 44px; }
  .tas-site-footer__inner { flex-direction: column; }
  .tas-footer-menu { justify-content: flex-start; }
  .tas-single-hero { padding: 64px 18px 46px; }
  .tas-single-content { margin-top: 46px; font-size: 15.5px; line-height: 2.02; }
  .tas-content h2 { margin-top: 3em; font-size: 26px; }
  .tas-content h3 { font-size: 19px; }
  .tas-post-nav { flex-direction: column; }
}
@media (max-width: 420px) {
  .tas-category-grid { grid-template-columns: 1fr; }
  .tas-fv { min-height: 660px; }
  .tas-fv__inner { min-height: 660px; }
}

/* =========================================
   Navigation refinements / legacy
========================================= */
.tas-menu-toggle,
.tas-page-top {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(74, 59, 43, 0.2);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 12px 28px rgba(42, 33, 24, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, opacity .25s ease, box-shadow .25s ease;
}

.tas-menu-toggle:hover,
.tas-page-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 16px 36px rgba(42, 33, 24, 0.18);
}

.tas-menu-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  padding: 0;
}

.tas-menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--tas-brown);
  transform: translateX(-50%);
  transition: top .25s ease, transform .25s ease, opacity .2s ease;
}

.tas-menu-toggle span:nth-child(1) { top: 14px; }
.tas-menu-toggle span:nth-child(2) { top: 21px; }
.tas-menu-toggle span:nth-child(3) { top: 28px; }

.tas-menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.tas-menu-toggle.is-open span:nth-child(2) { opacity: 0; }

.tas-menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.tas-back-links {
  margin: 0 0 34px;
  text-align: center;
}

.tas-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #2a2118;
  color: var(--tas-cream);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .08em;
  box-shadow: 0 12px 28px rgba(42,33,24,.16);
  transition: transform .25s ease, opacity .25s ease;
}

.tas-back-button:hover {
  transform: translateY(-2px);
  opacity: .88;
}

.tas-back-text {
  display: block;
  margin-top: 16px;
  color: #786a5f;
  font-size: 13px;
  text-decoration: none;
}

.tas-back-text:hover { text-decoration: underline; }

.tas-page-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tas-page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tas-page-top span,
.tas-page-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 1.7px solid var(--tas-brown);
  border-left: 1.7px solid var(--tas-brown);
  transform: translate(-50%, -35%) rotate(45deg);
}

.tas-page-top span { display: none; }

@media (max-width: 768px) {
  .tas-site-header__inner {
    position: relative;
  }

  .tas-menu-toggle {
    display: block;
  }

  .tas-site-nav {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  .tas-site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .tas-site-nav .tas-menu {
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(178,148,82,.22);
    border-radius: 24px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 20px 48px rgba(42, 33, 24, .16);
  }

  .tas-site-nav .tas-menu a {
    display: block;
    padding: 14px 14px;
    border-radius: 16px;
    color: var(--tas-brown);
    font-size: 14px;
    text-align: center;
  }

  .tas-site-nav .tas-menu a:hover {
    background: var(--tas-beige-2);
  }

  .tas-page-top {
    right: 16px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}


/* =========================================
   Words Page / Random Morning Words
========================================= */
.tas-words-page {
  min-height: calc(100vh - 74px);
  padding: 96px 24px 112px;
  background:
    radial-gradient(circle at top left, rgba(210,180,111,.16), transparent 32%),
    linear-gradient(180deg, var(--tas-cream) 0%, var(--tas-beige-2) 100%);
}
.tas-words-page__inner { width: min(920px, 92vw); margin: 0 auto; }
.tas-random-word {
  position: relative;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) clamp(24px, 7vw, 78px);
  border-radius: 34px;
  background: rgba(255, 250, 240, .84);
  border: 1px solid rgba(178, 148, 82, .22);
  box-shadow: var(--tas-shadow);
  text-align: center;
  overflow: hidden;
}
.tas-random-word::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(178, 148, 82, .16);
  border-radius: 26px;
  pointer-events: none;
}
.tas-random-word__label {
  position: relative;
  margin: 0 0 28px;
  font-family: var(--tas-serif);
  color: var(--tas-gold-deep);
  letter-spacing: .18em;
  font-size: 14px;
}
.tas-random-word__text {
  position: relative;
  min-height: 12.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tas-serif);
  font-size: clamp(25px, 4.2vw, 42px);
  line-height: 1.9;
  letter-spacing: .08em;
  color: var(--tas-ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.tas-random-word__text.is-visible { opacity: 1; transform: translateY(0); }
.tas-random-word__source {
  position: relative;
  margin: 32px 0 0;
  font-size: 12px;
  color: var(--tas-muted);
  letter-spacing: .08em;
}
.tas-random-word__actions {
  margin-top: 34px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.tas-random-word__actions .tas-btn { cursor: pointer; border: 0; }
@media (max-width: 767px) {
  .tas-words-page { padding: 72px 18px 88px; }
  .tas-random-word { border-radius: 26px; }
  .tas-random-word::before { inset: 12px; border-radius: 20px; }
  .tas-random-word__text { min-height: 14em; font-size: clamp(22px, 7vw, 31px); line-height: 1.85; }
}


/* =========================================
   Fixed simple header / v0.2.0
   Unique classes. No hamburger. No dependency on legacy .tas-site-header.
========================================= */
.tas-fixed-header {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  background: rgba(255, 250, 240, 0.92) !important;
  border-bottom: 1px solid rgba(178, 148, 82, 0.18) !important;
  box-shadow: 0 10px 28px rgba(42, 33, 24, 0.08) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.admin-bar .tas-fixed-header {
  top: 32px !important;
}

.tas-fixed-header__inner {
  width: min(1120px, 92vw) !important;
  min-height: 64px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.tas-fixed-header__logo {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  color: var(--tas-ink) !important;
  text-decoration: none !important;
}

.tas-fixed-header__logo-main {
  display: inline-block !important;
  font-family: var(--tas-serif) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em !important;
  color: var(--tas-ink) !important;
  white-space: nowrap !important;
}

.tas-fixed-header__nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

.tas-fixed-header__nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(178, 148, 82, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 247, 0.68) !important;
  color: var(--tas-brown) !important;
  box-shadow: 0 8px 18px rgba(42, 33, 24, 0.05) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: transform .22s ease, opacity .22s ease, background .22s ease !important;
}

.tas-fixed-header__nav a:hover {
  transform: translateY(-1px) !important;
  background: rgba(255, 253, 247, 0.94) !important;
  opacity: .86 !important;
}

/* Anchor jumps should not hide headings behind the fixed header. */
#worries,
.tas-section,
.tas-single,
.tas-archive-header {
  scroll-margin-top: 92px;
}

@media screen and (max-width: 782px) {
  .admin-bar .tas-fixed-header {
    top: 46px !important;
  }
}

@media (max-width: 768px) {
  .tas-fixed-header__inner {
    width: min(100% - 24px, 520px) !important;
    min-height: 58px !important;
    gap: 10px !important;
  }

  .tas-fixed-header__logo-main {
    font-size: 17px !important;
    letter-spacing: 0.08em !important;
  }

  .tas-fixed-header__nav {
    gap: 6px !important;
  }

  .tas-fixed-header__nav a {
    min-height: 30px !important;
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.02em !important;
  }
}

@media (max-width: 420px) {
  .tas-fixed-header__inner {
    width: min(100% - 18px, 420px) !important;
    min-height: 56px !important;
    gap: 8px !important;
  }

  .tas-fixed-header__logo-main {
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
  }

  .tas-fixed-header__nav a {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}
