body {
    background-color: #fffbf5;
    margin: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
}
header {
    background-color: rgb(251, 240, 223);
    border-width: 2px 0;
    border-style: solid;
    border-color: rgb(243, 233, 217);
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12pt;
}
.header-link {
    height: 30px;
    align-content: center;
    margin: 0 5px 0 5px;
    color: #000000;
    text-align: center;
    text-decoration: none;
}
.header-link:hover {
    color: #57000e;
}
#header-link-current {
    align-content: flex-start;
    pointer-events: none;
    height: 24px;
    padding-top: 8px;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #57000e;
    color: #57000e;
}
main {
    max-width: 640px;
    padding: 20px;
    margin: 35px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.hi-heading {
    text-align: center;
    margin: 15px 0 15px 0;
}
p {
    margin: 5px 0 5px 0;
    line-height: 1.4;
    font-size: 13pt;
}
.intro-paragraph {
    text-indent: 2.5em;
}
a {
    color: #000000;
}
a:hover {
    color: #57000e;
}
img {
    display: block;
    margin: 20px auto 20px auto;
    border-width: 2px;
    border-radius: 100px;
    border-style: solid;
    border-color: rgb(243, 233, 217);
}
.links-container {
    display: flex;
    flex-direction: row;
    margin: 15px 0;
    gap: 5px;
}
.link-group {
    flex: 1 0 auto;
    width: 32.5%;
    background-color: rgb(251, 240, 223);
    border-color: rgb(243, 233, 217);
    border-style: solid;
    border-width: 1px;
    font-size: 12pt;
    padding-bottom: 18px;
}
@media (max-width: 500px) {
  .links-container {
    flex-direction: column;
  }
  .link-group {
    width: 100%;
  }
}
.link-group h4 {
    margin: 15px 0 10px 0;
    text-align: center;
    font-size: 13.5pt;
}
.icon-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
.icon-link {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    color: #000000;
    transition: color 0.15s ease;
}
.icon-link:hover {
    color: #57000e;
}
.icon-link svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}
.icon-link .tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2b2b2b;
    color: #fff;
    font-size: 9.5pt;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.icon-link .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #2b2b2b transparent transparent transparent;
}
.icon-link:hover .tooltip {
    opacity: 1;
}
.quote-section {
    margin: 10px 0 0 0;
}
.quote {
    font-size: 12pt;
    text-align: left;
    line-height: 1.2em;
}
.quote-author {
    text-align: right;
    font-size: 12pt;
}
footer {
    width: 100%;
    flex: 1 0 auto;
    margin: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    font-size: 11pt;
    color: #A57476;
}


/* ===== Resume page (native, responsive — no iframe) ===== */

.resume-page {
    max-width: 760px;
    width: 100%;
    padding: 30px 20px 40px;
    margin: 20px auto 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.resume-download-btn {
    display: block;
    width: max-content;
    margin: 0 auto 28px;
    padding: 10px 22px;
    background-color: #57000e;
    color: #fffbf5;
    font-size: 12.5pt;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}
.resume-download-btn:hover {
    background-color: #7a0114;
    color: #fffbf5;
}
.resume-download-btn:visited {
    color: #fffbf5;
}

.r-header {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
.r-name-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.r-name {
    font-size: 23pt;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.15;
}
.r-role {
    font-size: 10.5pt;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    line-height: 1.4;
}
.r-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 10.5pt;
    color: #464646;
    margin-top: 10px;
}
.r-contact a {
    color: #464646;
}
.r-contact a:visited {
    color: #464646;
}
.r-contact a:hover {
    color: #57000e;
}
.r-sep {
    color: #cfcfcc;
}

.r-section {
    margin-bottom: 26px;
}
.r-h2 {
    font-size: 13pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5pt;
    border-bottom: 1.5pt solid #1a1a1a;
    padding-bottom: 4px;
    margin: 0 0 10px;
}

.r-prose {
    font-size: 11.5pt;
    line-height: 1.55;
    margin: 0;
}
.r-prose a {
    color: #57000e;
}
.r-prose a:visited {
    color: #57000e;
}

.r-proj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}
.r-card {
    padding: 17px;
}
.r-proj-grid .r-card:nth-child(odd) {
    background-color: #f5f0e7;
}
.r-proj-grid .r-card:nth-child(even) {
    background-color: transparent;
}

.r-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}
.r-card-name {
    font-size: 12pt;
    font-weight: 700;
    margin: 0;
}
.r-card-date {
    font-size: 9.5pt;
    color: #6e6e6e;
    white-space: nowrap;
}
.r-card-sub {
    font-size: 9.5pt;
    color: #6e6e6e;
    margin-top: 2px;
}
.r-card-sub a, .r-feat-name a {
    color: #57000e;
}
.r-card-sub a:visited, .r-feat-name a:visited {
    color: #57000e;
}

.r-bullets {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.r-bullets li {
    font-size: 11.5pt;
    line-height: 1.5;
    margin-bottom: 5px;
    padding-left: 14px;
    position: relative;
}
.r-bullets li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #6e6e6e;
}

.r-pair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    margin-top: 14px;
}
.r-feat {
    padding: 17px;
}
.r-pair-grid .r-feat:nth-child(odd) {
    background-color: #f5f0e7;
}
.r-pair-grid .r-feat:nth-child(even) {
    background-color: transparent;
}
.r-feat-name {
    font-size: 11.5pt;
    font-weight: 700;
    margin-bottom: 4px;
}

.r-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 30px;
    row-gap: 14px;
}
@media (min-width: 600px) {
    .r-skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.r-skill {
    font-size: 10.5pt;
    line-height: 1.5;
}
.r-skill strong {
    display: block;
    font-size: 9.5pt;
    text-transform: uppercase;
    letter-spacing: 0.3pt;
    margin-bottom: 2px;
}

.r-edu-line {
    font-size: 11.5pt;
    line-height: 1.5;
}
.r-deg {
    font-weight: 700;
    font-size: 12pt;
}
.r-courses {
    font-size: 10pt;
    line-height: 1.6;
    color: #464646;
    margin-top: 6px;
}