/* FONTS */
@font-face {
    font-family: 'Michigan Signature';
    src: url('fonts/michigan-signature.otf') format('opentype'),
         url('fonts/michigan-signature.ttf') format('truetype');
    font-display: swap;
}

/* COLORS AND BASICS */
:root {
    --cream: #fff9df;
    --dark: #222725;
    --yellow: #ffda70;
    --pink: #ff90d3;
    --magenta: #a32460;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--dark);
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }

/* HEADER (SAME AS THE HOME PAGE) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4vw;
    background: var(--cream);
}
.logo img { display: block; width: 130px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 44px); }
.site-header nav a {
    font-size: clamp(15px, 1.6vw, 22px);
    text-decoration: none;
    transition: color 0.2s;
}
.site-header nav a:hover { color: var(--magenta); }
.site-header .nav-button,
.start-button {
    white-space: nowrap;
    display: inline-block;
    padding: 12px 26px;
    border-radius: 40px;
    background: var(--dark);
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.site-header .nav-button:hover,
.start-button:hover,
.start-button:focus-visible { color: var(--yellow); }

/* PAGE LAYOUT */
.about-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    min-height: calc(100vh - 140px);
    padding: 5vh 4vw 8vh;
}

/* TEXT */
.about-text { display: flex; flex-direction: column; align-items: flex-start; }
/* Page heading: same style on About, Work and Contact. */
.about-text h1 {
    margin: 0 0 28px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(56px, 7vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 700;
}
.about-text p { margin: 0 0 22px; font-size: clamp(20px, 2vw, 30px); }
.start-button {
    margin-top: auto;
    font-size: clamp(18px, 1.8vw, 26px);
}
.start-button:hover { transform: translateY(-2px); }

/* PHOTO */
.about-photo-area { position: relative; align-self: center; }
/* Frame matches the photo exactly (2478 x 2585), never taller than the screen */
.about-photo {
    width: min(100%, calc(78vh * 0.958));
    aspect-ratio: 2478 / 2585;
    background: var(--cream);
    overflow: hidden;
}
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* "HELLO!" FLOWER ON THE PHOTO'S EDGE */
.hello-flower {
    --size: clamp(200px, 19vw, 330px);
    position: absolute;
    top: 50%;
    left: calc(var(--size) / -2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    margin-top: calc(var(--size) / -2);
    animation: bob 5s ease-in-out infinite;
    transition: transform 0.35s ease;
}
.hello-flower::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/shape-left.png') center / contain no-repeat;
    animation: spin 24s linear infinite;
}
.hello-flower span {
    position: relative;
    font-family: 'Michigan Signature', cursive;
    font-size: calc(var(--size) * 0.15);
    color: #fff;
    transform: rotate(-6deg);
}
.about-photo-area:hover .hello-flower { transform: scale(1.1) rotate(-8deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hello-flower, .hello-flower::before { animation: none; }
    .hello-flower, .start-button, .site-header nav a { transition: none; }
}

/* CURRENT PAGE IN THE NAV */
.site-header nav a[aria-current="page"]:not(.nav-button) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* FOOTER (SAME AS THE HOME PAGE) */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 4vw;
    border-top: 2px solid var(--dark);
    font-size: 15px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--magenta); text-decoration: underline; }

/* BIO  */
.about-text .about-bio {
    max-width: 34ch;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.45;
}

/* SECTIONS: TITLE ON THE LEFT, CONTENT ON THE RIGHT */
.about-section {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 4vw;
    margin: 0 4vw;
    padding: 10vh 0;
    border-top: 2px solid var(--dark);
}
.section-intro { align-self: start; position: sticky; top: 110px; }
.section-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #655e50;
}
.section-intro h2 {
    margin: 0;
    font-size: clamp(40px, 4.5vw, 72px);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

/* WHAT I DO */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 4vw; }
.service h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.2vw, 34px);
    letter-spacing: -0.02em;
}
.service p { margin: 0; font-size: 18px; line-height: 1.45; }

/* HOW I WORK: ONE CARD PER STEP, IN THE BRAND COLORS */
.process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step {
    padding: 28px;
    border-radius: 24px;
    transition: transform 0.25s ease;
}
.step:hover { transform: translateY(-4px) rotate(-1deg); }
.step-pink { background: var(--pink); }
.step-yellow { background: var(--yellow); }
.step-blue { background: #007fa8; color: var(--cream); }
.step-dark { background: var(--dark); color: var(--cream); }
.step-number { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; }
.step h3 { margin: 40px 0 10px; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.03em; }
.step p { margin: 0; font-size: 17px; line-height: 1.45; }

/* TOOLS */
.tools { margin: 0; padding: 0; list-style: none; }
.tools li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 20px 0;
    border-top: 2px solid var(--dark);
}
.tools li:last-child { border-bottom: 2px solid var(--dark); }
.tools strong { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; }
.tools span { font-size: 17px; color: #655e50; }

/* CLOSING CALL TO ACTION (SAME AS THE HOME PAGE) */
.cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 4vw;
    margin: 4vh 4vw 10vh;
    padding: clamp(36px, 6vw, 90px);
    border-radius: 32px;
    background: #fff1b8;
}
.cta h2 {
    margin: 0 0 20px;
    font-size: clamp(44px, 6vw, 100px);
    line-height: 0.9;
    letter-spacing: -0.04em;
}
.cta p { max-width: 30ch; margin: 0 0 30px; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; }
.cta .start-button { font-size: clamp(17px, 1.6vw, 22px); }

@media (prefers-reduced-motion: reduce) {
    .step { transition: none; }
}

/* WHAT I DO */
.service { padding-top: 18px; border-top: 2px solid var(--dark); }

/* VISION */
.vision { max-width: 62ch; }
.vision p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; }
.vision .vision-lead {
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* TOOLS & SKILLS: EACH PROGRAM WITH WHAT I DO IN IT */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 4vw; }
.skill { padding-top: 18px; border-top: 2px solid var(--dark); }
.skill h3 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
.skill ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill li {
    padding: 7px 14px;
    border: 1.5px solid var(--dark);
    border-radius: 30px;
    font-size: 15px;
}

/* TABLET */
@media (max-width: 900px) {
    .about-page { grid-template-columns: 1fr; gap: 72px; min-height: 0; padding: 5vh 6vw 8vh; }
    .about-text h1 { font-size: 11vw; }
    .about-text .about-bio { max-width: 46ch; }
    .start-button { margin-top: 8px; }
    .hello-flower { --size: 190px; top: 0; left: -12px; margin-top: -60px; }
    .about-section { grid-template-columns: 1fr; gap: 32px; margin: 0 6vw; padding: 56px 0; }
    .section-intro { position: static; }
    .cta { margin: 16px 6vw 56px; }
    .site-footer { padding: 28px 6vw; }
}

/* PHONE */
@media (max-width: 600px) {
    .site-header { padding: 14px 16px; gap: 12px; }
    .logo img { width: 84px; }
    .site-header nav { gap: 12px; }
    .site-header nav a { font-size: 14px; }
    .site-header .nav-button { padding: 8px 12px; }
    .about-page { padding: 32px 16px 56px; }
    .about-text h1 { font-size: 12.5vw; }
    .hello-flower { --size: 160px; left: -8px; margin-top: -48px; }
    .about-section { margin: 0 16px; padding: 48px 0; }
    .services, .process, .skills { grid-template-columns: 1fr; }
    .step h3 { margin-top: 24px; }
    .tools li { flex-direction: column; }
    .cta { margin: 16px 16px 48px; border-radius: 24px; }
    .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {
    .logo img { width: 70px; }
    .site-header nav { gap: 8px; }
    .site-header nav a { font-size: 13px; }
    .site-header .nav-button { padding: 7px 10px; }
}

/* NO STRANDED WORDS: the browser balances headings and avoids a single word alone on a paragraph's last line */
h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
