/* Sophia Sea Steps — Sophia's travel/lifestyle blog (Till Death Do Us Part).
   Ported from the Astra + "sophia-child" WordPress theme: same palette (ink navy + seafoam),
   Playfair Display headings, Jost body. Presentation only; every post, comment and image is content. */

:root {
  --sea-ink: #1e2a32;
  --sea-deep: #27414f;
  --sea-slate: #56646d;
  --sea-foam: #a9cdd6;
  --sea-foam-soft: #dcebee;
  --sea-mist: #f2f7f8;
  --sea-paper: #fdfdfc;
  --card-shadow: 0 1px 2px rgba(30, 42, 50, 0.06), 0 10px 28px rgba(30, 42, 50, 0.08);
  --card-shadow-hover: 0 2px 4px rgba(30, 42, 50, 0.08), 0 18px 44px rgba(30, 42, 50, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Jost', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3a42;
  background: var(--sea-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--sea-ink);
  letter-spacing: 0.005em;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

a { color: #2e5d70; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--sea-ink); }
img { max-width: 100%; height: auto; }
::selection { background: var(--sea-foam); color: var(--sea-ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
  position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto;
  background: #fff; color: var(--sea-ink); padding: 8px 12px; z-index: 1000;
}

/* ---- Header ---- */
.site-header { text-align: center; }
.site-branding { padding: 1.4rem 16px 0.6rem; }
.custom-logo { width: 260px; height: auto; display: inline-block; }

.below-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(253, 253, 252, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(30, 42, 50, 0.07);
  border-bottom: 1px solid rgba(30, 42, 50, 0.07);
}

.main-header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-header-menu a {
  display: block;
  padding: 0.9em 1.1em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-deep);
  position: relative;
}

.main-header-menu > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: 0.45em;
  height: 2px;
  background: var(--sea-foam);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-header-menu > .menu-item > a:hover::after { transform: scaleX(1); }
.main-header-menu > .menu-item > a:hover { color: var(--sea-ink); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 12px 16px;
  cursor: pointer;
}
.menu-toggle-icon { display: inline-block; width: 22px; }
.menu-toggle-icon i { display: block; height: 2px; margin: 4px 0; background: var(--sea-ink); border-radius: 2px; }

/* ---- Layout ---- */
.ast-container { max-width: 1200px; margin: 0 auto; padding: 2rem 16px 3rem; }

/* ---- Home slider ---- */
.post-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: clamp(340px, 46vw, 480px);
  margin-bottom: 3.5rem;
  background: var(--sea-mist);
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 42, 50, 0) 35%, rgba(30, 42, 50, 0.82) 100%);
  pointer-events: none;
}
.slide-link { position: absolute; inset: 0; }
.slide-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  line-height: 1.4;
}
.slide-title, .slide-title a {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  text-shadow: 0 2px 18px rgba(30, 42, 50, 0.45);
  margin: 0.4em 0 0.3em;
}
.slide-title a:hover { color: var(--sea-foam); }
.slide-meta .post-meta, .slide-meta .post-meta span { color: rgba(255, 255, 255, 0.85); }
.slide-meta .post-cat-link { background: rgba(255, 255, 255, 0.92); color: var(--sea-deep); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(253, 253, 252, 0.85);
  color: var(--sea-ink);
  font-size: 28px;
  line-height: 44px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 42, 50, 0.18);
  z-index: 2;
}
.slider-arrow:hover { background: var(--sea-foam-soft); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.slider-dot.is-active { background: #fff; }

/* ---- Post cards (home grid) ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-bottom: 1.6rem;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.post-card-img img { display: block; width: 100%; }
.post-card-img { margin-bottom: 1.2rem; }
.post-card .post-cats, .post-card-title, .post-card .post-meta, .post-desc, .post-card .read-more { margin-left: 1.6rem; margin-right: 1.6rem; }
.post-card .post-cats { margin-bottom: 0.5rem; }
.post-card-title { font-size: 1.35rem; margin-bottom: 0.4rem; font-weight: 600; }
.post-card-title a { color: var(--sea-ink); }
.post-card-title a:hover { color: #3c6e83; }
.post-desc { color: var(--sea-slate); font-size: 0.96rem; line-height: 1.68; margin-top: 0.8rem; }

.post-meta, .post-meta span {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a98a0;
}

.post-cat-link {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32em 1em;
  border-radius: 999px;
  background: var(--sea-foam-soft);
  color: var(--sea-deep);
  transition: filter 0.2s ease;
}
.post-cat-link:hover { filter: brightness(0.94); }
.post-cat-life { background: #ece7da; color: #5c5340; }
.post-cat-food { background: #f3e3dc; color: #7a4636; }

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  padding-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea-deep);
  border-bottom: 2px solid var(--sea-foam);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.read-more:hover { color: var(--sea-ink); border-bottom-color: var(--sea-deep); }

/* ---- Category archives ---- */
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.archive-post {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.archive-post:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.archive-post .post-thumb img { display: block; width: 100%; border-radius: 10px; margin-bottom: 1rem; }
.cat-links a {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sea-deep);
}
.archive-post .entry-title { font-size: 1.35rem; margin: 0.5rem 0 0.4rem; }
.archive-post .entry-title a { color: var(--sea-ink); }
.archive-post .entry-title a:hover { color: #3c6e83; }
.entry-meta, .entry-meta a { font-size: 0.8rem; color: var(--sea-deep); }
.entry-meta a:hover { color: var(--sea-ink); }
.excerpt { color: var(--sea-slate); font-size: 0.96rem; }

/* ---- Pages & single posts ---- */
.page-main, .single-main { max-width: 860px; margin: 0 auto; }
.featured-wide img { display: block; width: 100%; border-radius: 14px; margin-bottom: 2rem; }
.entry-header .entry-title { font-size: 2.1rem; }
.entry-content { font-size: 1.06rem; line-height: 1.8; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content img { border-radius: 14px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: 0.3em; }
blockquote {
  border-left: 3px solid var(--sea-foam);
  background: var(--sea-mist);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.6rem;
  margin: 0 0 1.4em;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--sea-deep);
}

.post-navigation { margin: 2.5rem 0; border-top: 1px solid rgba(30, 42, 50, 0.1); border-bottom: 1px solid rgba(30, 42, 50, 0.1); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; }
.post-navigation a { color: var(--sea-deep); }
.post-navigation a:hover { color: var(--sea-ink); }
.post-navigation .post-nav { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.post-navigation p { margin: 0.3em 0 0; font-family: 'Playfair Display', Georgia, serif; }
.nav-previous { flex: 1; }
.nav-next { flex: 1; text-align: right; margin-left: auto; }

.related-posts-title { font-size: 1.5rem; margin: 2rem 0 1rem; }
.related-posts-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.related-post .post-thumb img { display: block; width: 100%; border-radius: 12px; margin-bottom: 0.8rem; }
.related-post-title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.related-post-title a { color: var(--sea-ink); }
.related-post .entry-meta { font-size: 0.78rem; }

/* ---- Comments ---- */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment { padding: 1.4rem 0; border-bottom: 1px solid rgba(30, 42, 50, 0.1); }
.comment-info { display: flex; align-items: center; gap: 12px; }
.comment-avatar img { display: block; width: 50px; height: 50px; border-radius: 50%; }
.comment-cite cite { font-style: normal; }
.comment-cite .fn { font-weight: 600; color: var(--sea-ink); text-transform: capitalize; }
.comment-time, .comment-time a { font-size: 0.8rem; color: #8a98a0; }
.comment-content { margin-left: 62px; }
.comment-content p { margin: 0.6em 0 0.8em; }
.comment-reply-link { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea-deep); }
.comment-reply-link:hover { color: var(--sea-ink); }

.comment-reply-title { font-size: 1.4rem; }
.comment-notes { font-size: 0.85rem; color: var(--sea-slate); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
  width: 100%;
  padding: 0.8em 1em;
  font: inherit;
  border: 1px solid #d8e2e6;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-form textarea:focus, .comment-form input:focus {
  border-color: var(--sea-foam);
  box-shadow: 0 0 0 3px rgba(169, 205, 214, 0.35);
  outline: none;
}
.comment-formwrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.comment-formwrap p { margin: 0; }
.comment-form-cookies-consent { font-size: 0.85rem; }
.comment-form input[type="submit"] {
  background: var(--sea-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.9em 2em;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.comment-form input[type="submit"]:hover { background: var(--sea-ink); }
.comment-awaiting { font-style: italic; color: var(--sea-deep); }

/* ---- Footer ---- */
.site-footer {
  background: var(--sea-ink);
  border-top: 4px solid var(--sea-foam);
  padding: 2rem 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.site-footer p { margin: 0; }

.scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: var(--sea-deep);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---- Small screens ---- */
@media (max-width: 921px) {
  .custom-logo { width: 210px; }
  .post-slider { height: 320px; }
  .slide-title, .slide-title a { font-size: 1.3rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-block; }
  .site-navigation { display: none; }
  .site-navigation.is-open { display: block; }
  .main-header-menu { flex-direction: column; }
  .main-header-menu a { padding: 0.8em 16px; border-top: 1px solid rgba(30, 42, 50, 0.07); }
  .main-header-menu > .menu-item > a::after { display: none; }
}

@media (max-width: 767px) {
  .ast-container { padding: 1.2rem 16px 2.5rem; }
  .post-grid, .archive-grid, .related-posts-wrapper, .comment-formwrap { grid-template-columns: 1fr; }
  .post-slider { margin-bottom: 2.2rem; }
  .entry-header .entry-title { font-size: 1.7rem; }
  .post-navigation .nav-links { flex-direction: column; }
  .nav-next { text-align: left; }
  .comment-content { margin-left: 0; }
}
