:root {
  font-size: 14px;
  --container-max: 900px;
  --nav-offset: 6rem;
  --color-text: #151515;
  --color-bg: #fff;
  --color-link: #151515;
  --color-link-hover: #000000;
  --color-close: #a22d1d;
  --page-padding: 1.5rem;
  --c-gap: 0.5rem;
  --column: 80px;
  --column-count: 4;
  --aspect: 4/5;
  --font-size-l: 18px;
  --font-size-xl: clamp(2rem, 10vw, 6rem);
  --panel-gap: 1rem;
  --panel-img-size: calc((100vh - var(--page-padding) * 2) * 4 / 5 - var(--panel-gap));
}

html {
  box-sizing: border-box;
}

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

body {
  font-family: 'Helvetica Neue', Helvetica, arial, sans-serif;
  line-height: 1.5;
  font-size:1em;
}

.wrapper {
  padding: 0 8% 50px;
  width: 100%;
}

article {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

ul {
  width:100%;
}

h1 {
  font-size:2.6em;
  margin:0;
  text-align:center;
  font-family: 'Maven Pro', sans-serif;
}
h3 {
  margin:0 0 2em;
  text-align:center;
  font-weight:normal;
  font-family: georgia, times;
  font-style:italic;
  color:#777;
  font-size:1em;
}

p {
  text-align:left;
  font-size:1em;
}

h1 span {
  color: #e46c5a;
}

h1 span:last-child {
  color: #fa543b;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

hr.dotted {
  background-color: #fff;
  border-top: 2px dotted #8c8b8b;
}

a {
  color: #256ea8;
  text-decoration: none;
}

.heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 30px auto;
  color: var(--color-text);
  font-family: 'halyard-display', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.2;
  text-transform: lowercase;
}

.heading__title {
  font-family: 'owners-xnarrow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xl);
  margin: 0;
  line-height: 0.77;
}

.heading__meta::after {
  content: '↜';
  font-family: serif;
  font-size: 1.5rem;
  line-height: 0.2;
  vertical-align: middle;
  margin-left: 0.5rem;
  display: inline-flex;
}

.bio-module {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.bio-module__header {
  margin-bottom: 1rem;
}
.bio-module__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4f46e5;      /* indigo-600 */
  text-transform: uppercase;
}
.bio-module__title {
  font-size: 1.875rem; /* 3xl */
  font-weight: 600;
  color: #0f172a;      /* slate-900 */
  margin-top: 0.25rem;
}

/* Tabs (desktop) */
.bio-module__tabs {
  display: none;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  margin-bottom: 1rem;
}
.bio-module__tab {
  background: none;
  border: none;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: #5f636d;      /* slate-500 */
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.bio-module__tab--active {
  color: #0f172a;      /* slate-900 */
  border-color: #0f172a;
}
.bio-module__tab:not(.bio-module__tab--active):hover {
  color: #334155;      /* slate-700 */
  border-color: #cbd5e1; /* slate-300 */
}

/* Select (mobile) */
.bio-module__select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Bio text */
.bio-module__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #5e5f6e;      /* text-secondary */
}

/* Image gallery */
.bio-module__gallery {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}
.bio-module__image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  padding: 0.5rem;
  border: 1px solid #d6dadf; /* border-primary */
  border-radius: 20px;
  box-shadow: inset 0 2px 1.5px rgba(165,174,184,0.32);
  background: #edeef0;
}
.bio-module__image {
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  width: 186px;
  height: 186px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1);
}

/* Rotations */
.bio-module__image--rotate-clockwise {
  transform: rotate(9deg);
}
.bio-module__image--rotate-counter {
  transform: rotate(-8deg);
}

/* Responsive switch: show tabs on ≥640px, hide select */
@media (min-width: 640px) {
  .bio-module {
    grid-template-columns: 7fr 5fr;
  }
  .bio-module__select {
    display: none;
  }
  .bio-module__tabs {
    display: flex;
  }
}

.bio-gallery {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 3rem; /* same as space-x-12 */
  margin: 4rem 0 2rem;
}

@media (min-width: 1024px) {
  .bio-gallery {
    display: flex;
  }
}
