:root {
  --bg: #f9fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #d7dee8;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --max-width: 860px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a.active {
  color: var(--accent);
}

.hero,
.page-content {
  padding: 2.5rem 0 3rem;
}

.personal-page {
  width: min(1400px, 96vw);
}

.personal-body .container {
  width: min(1400px, 96vw);
}

.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.home-main > .hero,
.home-main > .home-news {
  margin: 0;
}

.professional-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.professional-main-content,
.professional-sidebar {
  min-width: 0;
}

.personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.personal-column {
  min-width: 0;
}

@media (min-width: 900px) and (orientation: landscape) {
  .personal-layout {
    grid-template-columns: minmax(300px, 1.25fr) minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 1.9rem;
    align-items: start;
  }

  .personal-layout .section {
    margin-bottom: 1.6rem;
  }

  .personal-layout .card {
    padding: 1.45rem;
  }

  .personal-layout h2 {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    margin-bottom: 0.6rem;
  }

  .personal-layout h3 {
    font-size: 0.96rem;
  }

  .personal-layout p,
  .personal-layout li {
    line-height: 1.5;
  }

  .personal-layout .section-head-link {
    font-size: 0.8rem;
    padding: 0.24rem 0.62rem;
  }

  .personal-layout .music-entry-date,
  .personal-layout .meta {
    font-size: 0.82rem;
  }

  .personal-layout .post-excerpt {
    font-size: 0.88rem;
  }

  .personal-layout .current-photo-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    padding: 0.35rem;
  }

  .personal-layout .music-history-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 0;
  }

  .personal-column-left .section.card {
    padding-bottom: 1.1rem;
  }

  .personal-column-left .music-subhead {
    margin: 0.45rem 0 0.35rem;
  }

  .personal-column-left .music-more-head {
    margin: 0.45rem 0 1rem;
  }

  .personal-layout .spotify-wrap-featured {
    aspect-ratio: 5 / 2;
  }

  .personal-layout .spotify-wrap-small {
    aspect-ratio: 5 / 1;
  }

  .personal-layout .spotify-wrap-playlist {
    aspect-ratio: 5 / 6;
  }

  .personal-layout #the_iframe {
    height: 180px;
  }
}

@media (orientation: portrait) {
  .personal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .personal-body .container,
  .personal-page {
    width: min(var(--max-width), 92vw);
  }
}

@media (min-width: 980px), (orientation: landscape) and (min-width: 860px) {
  .home-main {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    align-items: start;
  }

  .home-main > .home-news {
    margin-top: 2.5rem;
  }

  .professional-main {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    align-items: start;
  }
}

.eyebrow {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.4rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.4rem);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}

.profile-photo {
  width: min(100%, 62ch);
  max-width: 62ch;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 10px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid #b9c7da;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.14);
  display: block;
  margin: 0 0 1rem;
}

.profile-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.15rem 0 0.9rem;
}

.profile-icon-link {
  width: 34px;
  height: 34px;
  border: 1px solid #c8d2e0;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease,
    border-color 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.profile-icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.profile-icon-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.profile-icon-link:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #b8cbec;
}

.profile-icon-muted {
  width: 34px;
  min-width: 34px;
  padding: 0;
  cursor: default;
  filter: grayscale(1);
  opacity: 0.45;
}

a.profile-icon-link.profile-icon-muted {
  cursor: pointer;
}

.profile-icon-muted:hover {
  transform: none;
  background: #ffffff;
  color: #4b5563;
  border-color: #c8d2e0;
  filter: grayscale(0);
  opacity: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #bed4ff;
}

.section {
  margin-bottom: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border: 1px solid #bed4ff;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease,
    transform 120ms ease, box-shadow 120ms ease;
}

button.section-head-link {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

.section-head-link:hover {
  background: #dbeafe;
  border-color: #9ec0ff;
  transform: translateY(-1px);
}

.section-head-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}

.feature-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.grfp-page {
  width: min(1200px, 96vw);
}

.pdf-embed-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.pdf-embed {
  width: 100%;
  height: min(88vh, 1200px);
  min-height: 760px;
  border: 0;
  display: block;
}

.current-photo-image {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.35rem;
  background: #f3f6fb;
  display: block;
  margin: 0 auto;
}

.spotify-wrap {
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  line-height: 0;
}

.spotify-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.music-subhead {
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
}

.music-toggle {
  font: inherit;
  cursor: pointer;
  font-size: 0.86rem;
}

.music-more-head {
  margin: 0.55rem 0 1rem;
}

.music-more-head .music-subhead {
  margin: 0;
}

.music-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0;
}

.music-history-item {
  margin: 0;
}

.music-history-item-featured {
  margin-bottom: 0.2rem;
}

.music-entry-date {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.spotify-wrap-featured {
  aspect-ratio: 5 / 2;
}

.spotify-wrap-small {
  aspect-ratio: 5 / 1;
}

.spotify-wrap-playlist {
  aspect-ratio: 5 / 6;
}

.spotify-wrap-playlist[hidden] {
  display: none;
}

.spotify-wrap-playlist:not([hidden]) {
  margin-top: 0.5rem;
}

#customize-list {
  float: left;
  margin-left: 20px;
  list-style: none;
}

#gr_updates_widget {
  float: none;
  border-radius: 5px;
  background-color: #fff;
  border: solid #683205 10px;
  -webkit-box-shadow: 0 0 4px 1px #595959, inset 0 0 0 1px #7d730b;
  -moz-box-shadow: 0 0 4px 1px #595959, inset 0 0 0 1px #7d730b;
  box-shadow: 0 0 4px 1px #595959, inset 0 0 0 1px #7d730b;
  padding: 15px 15px 0 15px;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

#gr_updates_widget p {
  padding: 0;
  margin: 0;
  font-size: 14px;
}

#gr_footer {
  margin-bottom: 0;
  height: 30px;
}

#gr_footer img {
  width: 100px;
  float: left;
}

#the_iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-title {
  margin: 0;
  font-size: 1rem;
}

.post-excerpt {
  margin: 0.55rem 0 0;
}

.post-excerpt p {
  margin: 0;
}

.post-excerpt p + p {
  margin-top: 0.75rem;
}

.meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.no-data {
  color: var(--muted);
  font-style: italic;
}

.post-list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.post-list-cards li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.9rem;
  margin: 0;
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.post-list-cards .post-title {
  font-size: 0.97rem;
}

.post-list-cards .meta {
  margin-bottom: 0.25rem;
}

.post-list-cards .post-excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
}

.post-excerpt.is-clamped {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-expand-toggle {
  margin-top: auto;
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
}

.post-expand-toggle:hover {
  text-decoration: underline;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.35rem;
  background: #f3f6fb;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.photo-caption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer .container {
  padding: 1rem 0;
}

@media (max-width: 720px) {
  .nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grfp-page {
    width: min(1200px, 94vw);
  }

  .pdf-embed {
    height: 72vh;
    min-height: 560px;
  }

  .spotify-wrap-featured {
    aspect-ratio: 5 / 2;
  }

  .music-history-grid {
    grid-template-columns: 1fr;
  }

  #gr_updates_widget {
    width: 100%;
    height: auto;
    float: none;
  }

  #the_iframe {
    width: 100%;
  }
}
