@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  /* Site-wide colors, shadows, and fonts. Change these to adjust the visual theme. */
  --canvas: #f7f7f3;
  --paper: #ffffff;
  --ink: #20201d;
  --muted: #60645f;
  --line: #dcded6;
  --soft-line: #eceee7;
  --wine: #822322;
  --teal: #226a61;
  --brass: #a67838;
  --shadow: 0 18px 46px rgba(39, 42, 34, 0.1);
  --display-font: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body-font: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background: linear-gradient(180deg, #fbfbf8 0%, var(--canvas) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.profile-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--soft-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  text-decoration: none;
}

.brand-mark {
  /* Header logo size. The logo file itself is assets/Final.svg. */
  width: 168px;
  height: 58px;
  display: flex;
  align-items: center;
  flex: 0 1 158px;
  min-width: 86px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-copy span:first-child {
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
  overflow: visible;
  white-space: nowrap;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.language-nav {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbf8;
}

.language-nav a {
  min-width: 38px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.language-nav a:hover {
  color: var(--ink);
}

.language-nav .is-active {
  background: var(--wine);
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  padding: 40px 46px 34px;
  align-items: center;
}

.identity {
  align-self: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wine);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(29px, 2.8vw, 33px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.lead {
  max-width: none;
  margin: 13px 0 0;
  color: #3c413b;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

.quote {
  width: fit-content;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--brass);
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 18px;
  font-style: italic;
}

.visual {
  /* Portrait frame. Change the width here to make the photo larger or smaller. */
  position: relative;
  width: min(100%, 230px);
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef0ea;
}

.visual img {
  /* The photo keeps its original proportions and scales to the frame width. */
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.visual::after {
  /* Subtle shadow overlay at the bottom of the portrait. Remove this block for a plain photo. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(32, 32, 29, 0), rgba(32, 32, 29, 0.38));
  pointer-events: none;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.detail-block {
  padding: 25px 34px 27px;
}

.detail-block + .detail-block {
  border-left: 1px solid var(--soft-line);
}

h2 {
  margin: 0 0 14px;
  color: var(--wine);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  color: #373a35;
  font-size: 15.5px;
  line-height: 1.55;
}

li + li {
  margin-top: 9px;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: #fbfbf8;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.privacy-note {
  flex: 0 0 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  color: #70746e;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-link:hover {
  border-color: var(--brass);
  color: var(--wine);
  transform: translateY(-1px);
}

.primary-link {
  gap: 10px;
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.primary-link:hover {
  color: #ffffff;
  border-color: var(--wine);
  background: var(--wine);
}

.primary-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

@media (max-width: 1080px) {
  h1,
  .lead {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  /* Tablet/mobile layout adjustments. */
  .page-shell {
    width: min(100% - 24px, 680px);
    place-items: start center;
  }

  .topbar,
  .intro-grid,
  .contact-bar {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .brand-mark {
    flex-basis: 124px;
    width: 124px;
    height: 49px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 30px;
  }

  .visual {
    width: min(100%, 220px);
    justify-self: center;
  }

  h1 {
    font-size: 31px;
  }

  .lead {
    font-size: 17px;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .detail-block {
    padding: 22px 20px;
  }

  .detail-block + .detail-block {
    border-left: 0;
    border-top: 1px solid var(--soft-line);
  }

  .contact-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-links {
    justify-content: flex-start;
  }

  .contact-link {
    justify-content: center;
  }

  .privacy-note {
    flex-basis: auto;
    width: 100%;
  }
}

@media (max-width: 500px) {
  /* Narrow phone layout adjustments. */
  .page-shell {
    width: 100%;
    padding: 0;
  }

  .profile-card {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .brand-copy span:first-child {
    font-size: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    flex-basis: 88px;
    width: 88px;
    height: 34px;
    min-width: 68px;
  }

  .language-nav {
    width: 100%;
  }

  .language-nav a {
    flex: 1;
  }

  .intro-grid {
    padding-top: 26px;
  }

  .visual {
    width: min(68vw, 190px);
  }

  h1 {
    font-size: 27px;
  }

  .lead {
    font-size: 16px;
  }

  .quote {
    font-size: 17px;
  }

  .profile-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .profile-links .contact-link {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}
