/* Ocean Ink — Easa Shareef (TPM-inspired editorial) */
:root {
  --ink:        #111111;
  --ink-light:  #333333;
  --gold:       #C4A35A;
  --gold-light: #E8D5A3;
  --parchment:  #FFFFFF;
  --surface:    #FFFFFF;
  --lagoon:     #111111;
  --lagoon-light: #444444;
  --muted:      #888888;
  --border:     #EBEBEB;
  --maroon:     #5c1212;
  --nav-dropdown-hover: #1e5af3;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  --font-en:    'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Haettenschweiler', 'Arial Narrow', 'Arial', sans-serif;
  --font-nav:   'Gill Sans MT Condensed', 'Arial Narrow', 'Arial', sans-serif;
  --font-mono:  'Roboto Mono', 'Courier New', Courier, monospace;
  --font-dhivehi: 'MV Waheed', sans-serif;
  --font-dhivehi-body: 'Faruma', sans-serif;

  --shadow-sm: none;
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.04);
  --radius:    4px;
  --radius-lg: 8px;

  --content-width: 730px;
  --page-width: 960px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.45s;
  --duration-slow: 0.75s;
}

@font-face {
  font-family: 'Haettenschweiler';
  src: url('fonts/Haettenschweiler.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gill Sans MT Condensed';
  src: url('fonts/GillSansMTCondensed.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MV Waheed';
  src: url('https://easashareef.com/wp-content/uploads/2023/05/MVWaheed.woff2') format('woff2'),
       url('https://easashareef.com/wp-content/uploads/2023/05/MVWaheed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Faruma';
  src: url('https://easashareef.com/wp-content/uploads/2023/05/faruma.woff') format('woff'),
       url('https://easashareef.com/wp-content/uploads/2023/05/faruma.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-dhivehi-body), var(--font-en);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-light);
  background: var(--parchment);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: pageEnter 0.4s var(--ease-out) both;
  -webkit-font-smoothing: antialiased;
}

.site-main {
  flex: 1;
  width: 100%;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: right;
}

.poetry-page {
  padding: var(--space-lg) 0 var(--space-xl);
  background: transparent;
}

.poetry-page .page-panel h1,
.poetry-page-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-md);
  line-height: 1.35;
}

.poetry-page .page-panel p,
.poetry-page-lead {
  font-family: var(--font-dhivehi-body);
  font-size: 1.125rem;
  color: #444;
  line-height: 1.9;
}

/* ── Blog home (Noter-style) ── */
.blog-home {
  padding: 0 var(--space-lg) var(--space-2xl);
}

.blog-home-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

.blog-hero {
  padding: var(--space-sm) 0 var(--space-xs);
  text-align: left;
  border-bottom: none;
}

.blog-hero-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.blog-hero-line {
  display: block;
}

/* Featured post */
.blog-featured {
  padding: var(--space-lg) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.blog-featured-image {
  display: block;
  margin-bottom: var(--space-md);
  border-radius: 0;
  overflow: hidden;
  background: #f4f4f4;
}

.blog-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.blog-featured-image:hover img {
  opacity: 0.92;
}

.blog-featured-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.blog-featured-title a {
  color: inherit;
  transition: opacity var(--duration-fast);
}

.blog-featured-title a:hover {
  opacity: 0.65;
}

.blog-featured-excerpt {
  font-family: var(--font-dhivehi-body);
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 640px;
}

/* Post list */
.blog-list {
  padding-top: var(--space-md);
}

.blog-list-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item--thumb {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.blog-list-thumb {
  display: block;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.blog-list-item--thumb:hover .blog-list-thumb img {
  opacity: 0.9;
}

.blog-list-body {
  min-width: 0;
}

.article-banner {
  margin: 0 0 var(--space-lg);
  border-radius: 0;
  overflow: hidden;
  background: #f4f4f4;
}

.article-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-figure {
  margin: var(--space-lg) 0;
}

.article-figure img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.article-figure figcaption {
  font-family: var(--font-en), sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.article-gallery .article-figure {
  margin: 0;
}

.brand-logo-img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.blog-list-title a {
  color: inherit;
  transition: opacity var(--duration-fast);
}

.blog-list-title a:hover {
  opacity: 0.65;
}

.blog-list-excerpt {
  font-family: var(--font-en), sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
  max-width: 640px;
}

.blog-gallery {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.blog-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  line-height: 1.05;
}

.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.blog-gallery-item {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f4f4f4;
}

.blog-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.blog-meta {
  font-family: var(--font-en), var(--font-dhivehi-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.01em;
}

.blog-meta-sep {
  opacity: 0.5;
}

.blog-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-light);
  font-size: 0.75rem;
  font-family: var(--font-dhivehi);
}

/* Legacy card/grid (unused on homepage) */
.blog-grid {
  max-width: 1100px;
  margin: var(--space-lg) auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: var(--space-md);
  text-align: right;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-family: var(--font-dhivehi);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  justify-content: flex-start;
}

.blog-card-title {
  font-family: var(--font-dhivehi);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.blog-card-title a {
  color: var(--ink);
  transition: color var(--duration-fast);
}

.blog-card-title a:hover {
  color: var(--lagoon);
}

.blog-card-excerpt {
  font-family: var(--font-dhivehi-body);
  font-size: 1rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card-link {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  color: var(--lagoon);
  transition: color var(--duration-fast);
}

.blog-card-link:hover {
  color: var(--ink);
}

.blog-hero-byline {
  font-family: var(--font-dhivehi-body);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: var(--space-md);
}

/* Blog feed (homepage list) */
.blog-feed {
  max-width: 760px;
  margin: var(--space-lg) auto 0;
}

.blog-feed-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.blog-feed-item:first-child {
  padding-top: 0;
}

.blog-feed-thumb {
  display: block;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eee;
}

.blog-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.blog-feed-item:hover .blog-feed-thumb img {
  transform: scale(1.04);
}

.blog-feed-body {
  text-align: right;
  min-width: 0;
}

.blog-feed-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.blog-feed-title a {
  color: var(--ink);
  transition: color var(--duration-fast);
}

.blog-feed-title a:hover {
  color: var(--lagoon);
}

.blog-feed-excerpt {
  font-family: var(--font-dhivehi-body);
  font-size: 1rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: var(--space-sm);
}

.blog-read-more {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  color: var(--lagoon);
  transition: color var(--duration-fast);
}

.blog-read-more:hover {
  color: var(--ink);
}

/* Blog article shell */
.blog-article-main {
  padding: 0 var(--space-lg) var(--space-2xl);
}

.blog-article-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0;
}

.blog-post {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.blog-post .intro-page,
.blog-post .content-page,
.blog-post .team,
.blog-post .poetry-page {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.blog-post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.blog-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: opacity var(--duration-fast);
}

.blog-post-nav-link:hover {
  opacity: 0.55;
  border-color: transparent;
  box-shadow: none;
}

.blog-post-nav-link--next:only-child {
  margin-inline-start: auto;
}

.blog-post-nav-link--prev:only-child {
  margin-inline-end: auto;
}

.blog-post-nav-dir {
  font-family: var(--font-dhivehi);
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-post-nav-title {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}

.site-footer--blog .footer-inner,
.site-footer--blog .footer-bottom {
  padding-top: var(--space-lg);
}

/* Blog article pages */
.blog-article-page .intro-page,
.blog-article-page .content-page,
.blog-article-page .team,
.blog-article-page .poetry-page {
  background: transparent;
  border-bottom: none;
}

.blog-article-page .content-page {
  border-top: none;
}

.blog-back {
  padding: var(--space-md) 0 0;
  text-align: right;
}

.blog-back a {
  font-family: var(--font-dhivehi);
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--duration-fast);
}

.blog-back a:hover {
  color: var(--ink);
}

.blog-article-meta {
  padding: var(--space-md) 0 0;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: 0 var(--space-lg);
  transition: background-color var(--duration-normal) var(--ease-out);
  animation: headerEnter 0.7s var(--ease-out) both;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: none;
}

.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

.top-nav a {
  font-family: var(--font-nav);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  padding: var(--space-xs) 0;
  border-bottom: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--muted);
  border-bottom-color: transparent;
}

.top-nav .nav-dropdown-menu a {
  color: var(--ink);
}

.top-nav .nav-dropdown-menu a:hover {
  color: var(--nav-dropdown-hover);
}

.top-nav .nav-dropdown-menu a.active {
  color: var(--nav-dropdown-hover);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
  width: max-content;
}

.nav-dropdown-toggle::after {
  content: '▾';
  margin-left: 6px;
  font-size: 0.85em;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    visibility var(--duration-fast) var(--ease-out);
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 0;
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  text-align: left;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-dropdown-menu a:hover {
  color: var(--nav-dropdown-hover);
}

.footer-nav .nav-dropdown-menu a {
  color: var(--ink);
}

.footer-nav .nav-dropdown-menu a:hover {
  color: var(--nav-dropdown-hover);
}

.footer-nav .nav-dropdown-menu a.active {
  color: var(--nav-dropdown-hover);
}

.footer-nav-dropdown {
  position: relative;
}

.mobile-nav-group > a {
  font-weight: 500;
}

.mobile-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-md);
}

.mobile-nav-sub a {
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-xs);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.menu-toggle:active {
  transform: scale(0.92);
}

/* ── Intro page ── */
.intro-page {
  padding: var(--space-lg) 0 var(--space-xl);
  background: transparent;
  border-bottom: none;
}

.intro-page-inner {
  max-width: 100%;
  margin: 0;
  text-align: right;
}

.intro-header {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.intro-portrait {
  flex-shrink: 0;
  margin: 0;
  width: 140px;
  overflow: hidden;
  border-radius: 0;
}

.intro-portrait img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.intro-page-inner.reveal.visible .intro-portrait,
.intro-page-inner.reveal.visible .intro-title {
  opacity: 1;
  transform: translateY(0);
}

.intro-page-inner.reveal .intro-portrait,
.intro-page-inner.reveal .intro-title {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.intro-page-inner.reveal.visible .intro-portrait {
  transition-delay: 0.12s;
}

.intro-page-inner.reveal.visible .intro-title {
  transition-delay: 0.28s;
}

.intro-title {
  flex: 1;
  font-family: var(--font-dhivehi);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  text-align: right;
}

.intro-prose {
  font-family: var(--font-dhivehi-body);
  color: #444;
  line-height: 1.95;
}

.intro-prose p {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.intro-prose-block {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-md);
}

.intro-prose-block p {
  font-size: 1.125rem;
  margin: 0;
}

.intro-prose-media {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.intro-prose-media img {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

/* Justified body copy — both edges align cleanly in RTL */
.intro-prose p,
.intro-prose-block p,
.content-block-body p,
.content-lead,
.content-quote p,
.content-quote-body p,
.team-page-intro,
.team-page-lead,
.team-member-body p {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: start;
}

.intro-subtitle {
  font-family: var(--font-dhivehi);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-md);
}

/* ── Content page (mission) ── */
.content-page {
  padding: var(--space-lg) 0 var(--space-xl);
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.content-page-inner {
  max-width: 100%;
  margin: 0;
  text-align: right;
}

.content-page-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.content-subtitle {
  font-family: var(--font-dhivehi);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: var(--space-xl) 0 var(--space-sm);
}

.content-lead {
  font-family: var(--font-dhivehi-body);
  font-size: 1.1rem;
  color: var(--lagoon);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-md);
  align-items: start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.content-block--plain {
  grid-template-columns: 1fr 180px;
}

.content-block-body p {
  font-family: var(--font-dhivehi-body);
  font-size: 1.125rem;
  color: #444;
  line-height: 1.95;
  margin-bottom: var(--space-md);
}

.content-block-media {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.content-block-media img {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 1;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.content-block-media:hover img,
.intro-prose-media:hover img,
.content-banner:hover img {
  transform: scale(1.03);
}

.content-block-media--wide img {
  aspect-ratio: 4 / 3;
}

.content-quote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-right: 2px solid var(--border);
  background: transparent;
  border-radius: 0;
}

.content-quote:hover {
  box-shadow: none;
  border-right-color: var(--lagoon);
}

.content-quote p {
  font-family: var(--font-dhivehi-body);
  font-size: 1.1rem;
  color: #444;
  line-height: 1.9;
  font-style: normal;
}

.content-quote footer {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  color: var(--lagoon);
  margin-top: var(--space-sm);
}

.content-quote--with-photo {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-right: 3px solid var(--gold);
}

.content-quote-photo {
  width: 80px;
  height: 80px;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-out);
}

.content-quote--with-photo:hover .content-quote-photo {
  transform: scale(1.04);
}

.content-quote-body {
  flex: 1;
}

.content-banner {
  margin: var(--space-lg) 0 0;
  overflow: hidden;
  border-radius: 0;
}

.content-banner img {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

/* ── Hero (legacy) ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  direction: rtl;
}

.year-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--ink);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.hero-eyebrow {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  color: var(--lagoon);
  margin-bottom: var(--space-sm);
}

.hero-welcome {
  font-family: var(--font-dhivehi);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.hero-name {
  font-family: var(--font-dhivehi);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--lagoon);
  margin-bottom: var(--space-md);
}

.hero-intro {
  font-family: var(--font-dhivehi-body);
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.9;
}

.hero-image-frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-light);
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

/* ── Section shared ── */
.section-header {
  max-width: 1200px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-lg);
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--font-dhivehi);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.section-header h3 {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-family: var(--font-dhivehi-body);
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Services ── */
.services {
  background: #fafafa;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: #ccc;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.service-card h4 {
  font-family: var(--font-dhivehi);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-family: var(--font-dhivehi-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Showcase ── */
.showcase {
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 60%, var(--lagoon) 100%);
}

.showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.showcase-text .section-label {
  text-align: left;
}

.showcase-text h3 {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--surface);
  margin-bottom: var(--space-sm);
}

.showcase-text p {
  font-family: var(--font-dhivehi-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  max-width: 480px;
}

.showcase-image {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.showcase-image img {
  width: 100%;
}

/* ── Team (Poetry Nation style) ── */
.team {
  padding: var(--space-lg) 0 var(--space-xl);
  background: transparent;
  border-top: none;
}

.team-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: right;
}

.team-page-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-md);
  line-height: 1.35;
}

.team-page-intro,
.team-page-lead {
  font-family: var(--font-dhivehi-body);
  font-size: 1.125rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.team-page-lead {
  margin-bottom: var(--space-lg);
}

.team-roster {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.team-member {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.team-member:last-child {
  border-bottom: none;
}

.team-member:hover {
  background-color: transparent;
}

.team-member-photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.team-member:hover .team-member-photo {
  transform: scale(1.04);
}

.team-member-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0eeea;
  color: var(--muted);
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
}

.team-member-body h3 {
  font-family: var(--font-dhivehi);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.team-member-body h3 .nickname {
  font-weight: 400;
  color: var(--muted);
  font-size: 1.05rem;
}

.team-member-role {
  font-family: var(--font-dhivehi-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.team-member-body p:last-child {
  font-family: var(--font-dhivehi-body);
  font-size: 1.125rem;
  color: #555;
  line-height: 1.9;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer--blog {
  margin-top: auto;
}

.footer-inner,
.footer-bottom {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-poetry-img {
  width: min(560px, 75%);
  border-radius: 0;
}

.footer-brand-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
}

.footer-bottom {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  font-family: var(--font-nav);
  font-size: 1.375rem;
  color: var(--ink);
  transition: color var(--duration-fast);
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--muted);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-copy a {
  color: var(--ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Motion & scroll reveal ── */
@keyframes headerEnter {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--slide-start {
  transform: translateX(32px);
}

.reveal--slide-start.visible {
  transform: translateX(0);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 31, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(2px);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 5rem var(--space-md) var(--space-md);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav[hidden] {
  display: block;
  visibility: hidden;
}

.mobile-nav.open[hidden] {
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-nav);
  font-size: 1.5rem;
  color: var(--ink);
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--muted);
}

.mobile-nav .mobile-nav-sub a:hover {
  color: var(--nav-dropdown-hover);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-inner {
    grid-template-columns: 1fr;
  }

  .showcase-text {
    order: 1;
  }

  .showcase-image {
    order: 2;
  }
}

@media (max-width: 767px) {
  .top-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    padding: 0 var(--space-md);
  }

  .header-inner {
    padding: var(--space-sm) 0;
  }

  .brand-name {
    font-size: 1rem;
  }

  .intro-page {
    padding: var(--space-lg) 0;
  }

  .blog-article-main {
    padding: 0 var(--space-md) var(--space-xl);
  }

  .blog-home {
    padding: 0 var(--space-md) var(--space-xl);
  }

  .blog-home-page .blog-hero {
    padding: var(--space-lg) 0 var(--space-xs);
    margin-bottom: var(--space-xs);
  }

  .blog-home-page .blog-home-article {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
  }

  .blog-hero {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .blog-featured {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .blog-list-item--thumb {
    grid-template-columns: 1fr;
  }

  .blog-list-thumb {
    max-width: 280px;
  }

  .blog-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-md);
  }

  .blog-feed-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
  }

  .blog-feed-thumb {
    max-width: 280px;
  }

  .blog-article-shell {
    padding: 0;
  }

  .blog-post-nav {
    flex-direction: column;
  }

  .blog-post-nav-link {
    max-width: 100%;
  }

  .blog-post-nav-link--next:only-child,
  .blog-post-nav-link--prev:only-child {
    margin-inline: 0;
  }

  .blog-back,
  .blog-article-meta {
    padding-right: 0;
    padding-left: 0;
  }

  .content-page {
    padding: var(--space-lg) 0;
  }

  .content-block,
  .content-block--plain {
    grid-template-columns: 1fr;
  }

  .content-block-media {
    max-width: 200px;
    margin: 0 auto var(--space-sm);
  }

  .content-quote--with-photo {
    flex-direction: column;
    align-items: center;
    text-align: right;
  }

  .intro-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-portrait {
    width: 140px;
  }

  .intro-title {
    text-align: center;
  }

  .intro-prose-block {
    grid-template-columns: 1fr;
  }

  .intro-prose-media {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-frame img {
    aspect-ratio: 3 / 4;
    max-height: 360px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .services-grid,
  .team-page,
  .showcase-inner {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .team {
    padding: var(--space-lg) var(--space-md);
  }

  .team-member {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin: 0;
  }

  .team-member-photo {
    width: 72px;
    height: 72px;
  }

  .showcase {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }

  .footer-poetry-img {
    width: 100%;
  }

  .footer-bottom {
    padding: var(--space-md);
  }
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    animation: none;
  }

  body {
    animation: none;
  }

  .reveal,
  .intro-page-inner.reveal .intro-portrait,
  .intro-page-inner.reveal .intro-title {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-link:hover .brand-logo-img,
  .intro-portrait:hover img,
  .content-block-media:hover img,
  .intro-prose-media:hover img,
  .content-banner:hover img,
  .content-quote:hover,
  .content-quote--with-photo:hover .content-quote-photo,
  .top-nav a:hover,
  .team-member:hover .team-member-photo {
    transform: none;
  }

  .team-member:hover {
    background-color: transparent;
  }

  .nav-overlay {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}

/* ── English / LTR blog (TPM typography) ── */
html[lang="en"] {
  direction: ltr;
}

html[lang="en"] body {
  text-align: left;
  font-family: var(--font-en), sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-light);
}

html[lang="en"] .blog-hero,
html[lang="en"] .blog-featured-body,
html[lang="en"] .blog-list-item,
html[lang="en"] .intro-page-inner,
html[lang="en"] .content-page-inner,
html[lang="en"] .team-page,
html[lang="en"] .page-panel,
html[lang="en"] .blog-back,
html[lang="en"] .blog-article-meta {
  text-align: left;
}

html[lang="en"] .blog-meta {
  justify-content: flex-start;
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

html[lang="en"] .blog-category {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[lang="en"] .intro-header {
  flex-direction: row;
}

html[lang="en"] .team-member {
  flex-direction: row;
}

html[lang="en"] .content-quote {
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border-right: none;
  border-left: 2px solid var(--border);
}

html[lang="en"] .content-block {
  grid-template-columns: 200px 1fr;
}

html[lang="en"] .content-block-body {
  order: 2;
}

html[lang="en"] .content-block-media {
  order: 1;
}

/* Headlines — Haettenschweiler display */
html[lang="en"] .brand-name,
html[lang="en"] .blog-hero-title,
html[lang="en"] .blog-featured-title,
html[lang="en"] .blog-list-title,
html[lang="en"] .intro-title,
html[lang="en"] .content-page-title,
html[lang="en"] .team-page-title,
html[lang="en"] .content-subtitle,
html[lang="en"] .content-subtitle--small,
html[lang="en"] .discography-section h2,
html[lang="en"] .blog-post-nav-title,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--ink);
  text-transform: none;
}

html[lang="en"] .site-header .brand-link {
  text-align: left;
}

html[lang="en"] .site-header .brand-name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
  text-align: left;
  direction: ltr;
  display: inline-block;
}

/* Header site name — nudge 5px right only */
.shift-right-5 {
  position: relative;
  left: 5px;
}

html[lang="en"] .blog-hero-title {
  font-size: clamp(3.5rem, 14vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

html[lang="en"] .blog-home-page .blog-hero-title {
  font-size: clamp(4.75rem, 18vw, 11rem);
  line-height: 0.9;
}

html[lang="en"] .content-page-title {
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

html[lang="en"] .blog-featured-title {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

html[lang="en"] .blog-list-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}

html[lang="en"] .content-subtitle {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
}

html[lang="en"] .content-subtitle--small {
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 1.02;
  color: var(--maroon);
}

/* Article body — Roboto */
html[lang="en"] .intro-prose,
html[lang="en"] .intro-prose p,
html[lang="en"] .content-block-body p,
html[lang="en"] .blog-featured-excerpt,
html[lang="en"] .team-page-intro,
html[lang="en"] .bio-lead,
html[lang="en"] .content-lead {
  font-family: var(--font-en), sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-light);
}

html[lang="en"] .personal-story-close {
  font-family: var(--font-en), sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

html[lang="en"] .article-figure figcaption,
html[lang="en"] .source-note {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

html[lang="en"] .top-nav a,
html[lang="en"] .footer-nav a,
html[lang="en"] .mobile-nav a {
  font-family: var(--font-nav);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

html[lang="en"] .footer-nav a {
  font-size: 1.375rem;
}

html[lang="en"] .blog-back a,
html[lang="en"] .blog-post-nav-dir,
html[lang="en"] .blog-post-nav-title {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
}

html[lang="en"] .data-table {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
}

html[lang="en"] .blog-list-excerpt {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

html[lang="en"] .blog-gallery-title {
  font-family: var(--font-display);
}

html[lang="en"] img,
html[lang="en"] .article-figure,
html[lang="en"] .article-banner,
html[lang="en"] .blog-featured-image,
html[lang="en"] .blog-list-thumb,
html[lang="en"] .blog-gallery-item,
html[lang="en"] .bio-portrait,
html[lang="en"] .content-banner,
html[lang="en"] .content-block-media,
html[lang="en"] .intro-portrait,
html[lang="en"] .intro-prose-media {
  border-radius: 0;
}

html[lang="en"] .data-table th {
  font-family: var(--font-en), sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Bio infobox */
.bio-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.bio-portrait {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.bio-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.bio-facts {
  font-family: var(--font-en), sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.bio-facts dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-sm);
}

.bio-facts dt:first-child {
  margin-top: 0;
}

.bio-facts dd {
  color: var(--ink-light);
  margin: 2px 0 0;
}

.bio-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: var(--space-lg);
}

.content-subtitle {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: normal;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-md);
  line-height: 1.05;
}

.blog-home-article {
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.blog-home-page .blog-home {
  padding-top: 0;
}

.blog-home-page .blog-hero {
  padding: var(--space-xl) 0 var(--space-sm);
  border-bottom: none;
  margin-bottom: 0;
}

.home-entry-notice {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  background: #f7f7f7;
  text-align: left;
}

.home-entry-notice p {
  font-family: var(--font-en), sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
  text-align: left;
}

.home-entry-notice a {
  color: var(--nav-dropdown-hover);
  transition: color var(--duration-fast) var(--ease-out);
}

.home-entry-notice a:hover {
  color: var(--ink);
}

.blog-home-page .blog-home-article {
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-top: 0;
  padding-bottom: var(--space-md);
  overflow: visible;
}

.blog-home-page .blog-home-article .personal-story {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-home-page .blog-home-article .blog-meta {
  margin-bottom: var(--space-xs);
}

.blog-home-page .blog-home-article .personal-story-note {
  margin: 0;
}

.blog-home-page .blog-home-article .personal-story-intro {
  margin-bottom: var(--space-sm);
}

.blog-home-page .blog-home-article .personal-story-intro .content-subtitle {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.blog-home-page .blog-section-title {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.blog-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  line-height: 1.05;
}

.personal-story {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.personal-story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px 200px;
  grid-template-rows: auto auto;
  row-gap: var(--space-sm);
  column-gap: 0;
  align-items: start;
  margin-bottom: var(--space-md);
}

.personal-story-intro-line {
  grid-column: 1;
  grid-row: 1;
  height: 10px;
  background: var(--maroon);
  align-self: start;
  margin: 0;
}

.blog-home-page .personal-story-intro {
  --hero-offset: max(0px, (min(var(--page-width), 100vw - 2 * var(--space-lg)) - 100%) / 2);
}

.blog-home-page .personal-story-intro-line {
  margin-left: calc((var(--hero-offset) * -1) + 115px);
  width: calc(100% + var(--hero-offset) - 155px);
}

.personal-story-intro-text {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

html[lang="en"] .personal-story-intro .content-subtitle,
.personal-story-intro .content-subtitle {
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 1.02;
  color: var(--maroon);
}

.personal-story-lead-photo,
.personal-story-lead-photo.article-figure {
  grid-column: 3;
  grid-row: 1 / 3;
  margin: 0;
  padding: 0;
  justify-self: end;
  align-self: start;
  max-width: 200px;
}

.personal-story-lead-photo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
}

.personal-story-note {
  font-family: var(--font-en), sans-serif;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin: calc(-1 * var(--space-sm)) 0 var(--space-lg);
}

.content-subtitle--small {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: normal;
  color: var(--maroon);
  line-height: 1.02;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.personal-story-close {
  font-family: var(--font-en), sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-light);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.personal-story .intro-prose p {
  text-align: left;
}

/* Data tables */
.data-table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0 var(--space-xl);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-en), sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.data-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: normal;
  color: var(--ink);
  padding: var(--space-md) 0 var(--space-sm);
  caption-side: top;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafafa;
}

.data-table tbody tr:hover td {
  background: #fafafa;
}

.data-table .col-year {
  width: 64px;
  white-space: nowrap;
}

.discography-section {
  margin-bottom: var(--space-xl);
}

.discography-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.discography-section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.source-note {
  font-family: var(--font-en), sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.source-note a {
  color: var(--ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .bio-header {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .blog-home-page .personal-story-intro-line {
    --hero-offset: 0px;
    margin-left: 0;
    width: 100%;
  }

  .personal-story-intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .personal-story-intro-line {
    order: 1;
    margin-left: 0;
    width: 100%;
    margin-right: 0;
  }

  .personal-story-intro-text {
    order: 2;
  }

  .personal-story-lead-photo,
  .personal-story-lead-photo.article-figure {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    max-width: 160px;
  }

  .personal-story-lead-photo img {
    max-width: 160px;
  }

  html[lang="en"] .content-block {
    grid-template-columns: 1fr;
  }
}

/* Projects page */
.projects-list {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}

.project-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.project-item:first-child {
  padding-top: 0;
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: normal;
  margin: 0;
  line-height: 1.1;
}

.project-title a {
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease-out);
}

.project-title a:hover {
  color: var(--nav-dropdown-hover);
}

.project-status {
  font-family: var(--font-en), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}

.project-desc {
  font-family: var(--font-en), sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-light);
  margin: 0;
  max-width: 62ch;
}

.project-body .project-desc + .project-desc {
  margin-top: var(--space-sm);
}

.project-body + .project-link {
  margin-top: var(--space-sm);
}

.intro-prose a {
  color: var(--nav-dropdown-hover);
  transition: color var(--duration-fast) var(--ease-out);
}

.intro-prose a:hover {
  color: var(--ink);
}

.project-link {
  display: inline-block;
  margin-top: var(--space-xs);
  font-family: var(--font-en), sans-serif;
  font-size: 0.9rem;
  color: var(--nav-dropdown-hover);
  transition: color var(--duration-fast) var(--ease-out);
}

.project-link:hover {
  color: var(--ink);
}

html[lang="en"] .project-title {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--ink);
}
