/* The Blissful Mind — UK edition (uk.glowpremium.life)
   Bloghash-style magazine layout, static rebuild */

:root {
  --accent: #d6336c;
  --accent-dark: #b02a5b;
  --ink: #1c1c1e;
  --ink-soft: #55555e;
  --muted: #8a8a93;
  --line: #ececf0;
  --bg: #f4f4f6;
  --card: #ffffff;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgba(16, 16, 25, 0.04), 0 8px 24px rgba(16, 16, 25, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- boxed layout like Bloghash "boxed-separated + shadow" ---- */
.page-box {
  background: var(--card);
  margin: 28px auto;
  max-width: 1240px;
  box-shadow: var(--shadow);
  border-radius: 6px;
  overflow: hidden;
}

/* ---- masthead ---- */
.masthead { text-align: center; padding: 44px 20px 30px; }
.masthead .site-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}
.masthead .site-title a { color: var(--ink); }
.masthead .site-title a:hover { color: var(--accent); }
.masthead .tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.4px;
}

/* ---- nav ---- */
.main-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
}
.main-nav a {
  display: inline-block;
  padding: 15px 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 10px;
  height: 2px; background: var(--accent);
  transition: right 0.25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }

/* ---- layout: content + sidebar ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 40px 34px 30px;
  align-items: start;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 28px 20px; }
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- featured grid ---- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

/* thumb anchors must be block: aspect-ratio/overflow don't apply to inline boxes */
.post-card .thumb,
.list-card .thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eee;
}
.post-card .thumb img,
.list-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .thumb img,
.list-card:hover .thumb img { transform: scale(1.04); }

.post-card .cat {
  display: inline-block;
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
}
.post-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.post-card .more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
}
.post-card .more:hover { color: var(--accent); }

/* ---- horizontal list cards ---- */
.list-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.list-card:first-of-type { border-top: 0; }
@media (max-width: 600px) {
  .list-card { grid-template-columns: 1fr; gap: 14px; }
}
.list-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.list-card h3 a { color: var(--ink); }
.list-card h3 a:hover { color: var(--accent); }
.list-card .excerpt { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---- sidebar ---- */
.sidebar .widget {
  margin-bottom: 34px;
}
.widget-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.search-box { display: flex; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fafafa;
}
.search-box input:focus { outline: none; border-color: var(--accent); background: #fff; }
.search-box button {
  padding: 10px 16px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.search-box button:hover { background: var(--accent-dark); }

.top-story {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  align-items: center;
}
.top-story:first-of-type { border-top: 0; padding-top: 0; }
.top-story img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.top-story .t {
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
}
.top-story .t a { color: var(--ink); }
.top-story .t a:hover { color: var(--accent); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 20px 30px; text-align: center; }
.site-footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.site-footer .foot-nav a {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.site-footer .foot-nav a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 13px; margin: 0; }

/* ---- inner pages ---- */
.page-hero { padding: 40px 34px 0; }
@media (max-width: 960px) { .page-hero { padding: 30px 20px 0; } }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 6px;
}
.page-hero .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.prose { max-width: 780px; padding: 0 34px 46px; }
@media (max-width: 960px) { .prose { padding: 0 20px 40px; } }
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 34px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
.prose ul { color: var(--ink-soft); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: #fafafa;
}
.contact-card h3 { margin: 0 0 8px; font-size: 15px; }
.contact-card p { margin: 0; font-size: 14px; }
