/* =========================================================
   ANTHONYCS PORTFOLIO
   Clean professional portfolio frontend
   ========================================================= */


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #171717;
    background: #ffffff;

    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 40px));
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid #e8e8e8;
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.site-brand {
    font-size: 1.15rem;
    font-weight: 750;

    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;

    gap: 26px;
}

.site-nav a {
    color: #555;
    text-decoration: none;

    font-size: 0.94rem;
}

.site-nav a:hover {
    color: #111;
}

.site-nav a.active {
    color: #111;
    font-weight: 650;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    padding: 100px 0 90px;

    border-bottom: 1px solid #ececec;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(280px, 0.8fr);

    gap: 80px;

    align-items: center;
}

.eyebrow {
    margin-bottom: 14px;

    font-size: 0.75rem;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 0.13em;

    color: #666;
}

.hero h1 {
    margin-bottom: 12px;

    font-size: clamp(3rem, 7vw, 5.5rem);

    letter-spacing: -0.055em;

    font-weight: 760;
}

.hero-title {
    margin-bottom: 24px;

    font-size: 1.18rem;
    font-weight: 600;

    color: #333;
}

.hero-description {
    max-width: 720px;

    margin-bottom: 34px;

    font-size: 1.06rem;

    color: #555;
}

.hero-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button {
    min-height: 44px;

    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #222;
    border-radius: 4px;

    font-size: 0.94rem;
    font-weight: 650;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.button.primary {
    color: #fff;
    background: #171717;
}

.button.primary:hover {
    background: #333;
}

.button.secondary {
    color: #171717;
    background: #fff;
}

.button.secondary:hover {
    background: #f4f4f4;
}


/* ---------------------------------------------------------
   HERO INFO PANEL
   --------------------------------------------------------- */

.hero-panel {
    border-left: 1px solid #ddd;

    padding-left: 34px;
}

.hero-panel h2 {
    margin-bottom: 25px;

    font-size: 1rem;
}

.quick-info {
    margin: 0;
}

.quick-info > div {
    padding: 18px 0;

    border-top: 1px solid #e5e5e5;
}

.quick-info > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.quick-info dt {
    margin-bottom: 5px;

    font-size: 0.75rem;
    font-weight: 700;

    color: #777;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quick-info dd {
    margin: 0;

    font-size: 0.95rem;

    color: #333;
}


/* ---------------------------------------------------------
   STANDARD SECTIONS
   --------------------------------------------------------- */

.section {
    padding: 90px 0;
}

.section-alt {
    background: #f7f7f7;

    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.section-heading {
    max-width: 680px;

    margin-bottom: 46px;
}

.section-heading h2 {
    margin-bottom: 16px;

    font-size: clamp(2rem, 4vw, 3rem);

    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    color: #666;
}

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.two-column p {
    color: #454545;
}

.section-action {
    margin-top: 28px;
}

.text-link {
    font-weight: 650;

    text-decoration: none;

    border-bottom: 1px solid #aaa;
}

.text-link:hover {
    border-color: #111;
}


/* ---------------------------------------------------------
   FOCUS CARDS
   --------------------------------------------------------- */

.focus-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.focus-card {
    padding: 34px;

    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    background: #fff;
}

.focus-card h3 {
    margin-bottom: 12px;

    font-size: 1.18rem;
}

.focus-card p {
    margin: 0;

    color: #555;
}


/* ---------------------------------------------------------
   PROJECT LIST
   --------------------------------------------------------- */

.project-list {
    border-top: 1px solid #ddd;
}

.project-row {
    display: grid;

    grid-template-columns:
        60px
        minmax(0, 1fr)
        150px;

    gap: 28px;

    align-items: start;

    padding: 34px 0;

    border-bottom: 1px solid #ddd;
}

.project-number {
    color: #888;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.project-content h3 {
    margin-bottom: 10px;

    font-size: 1.35rem;
}

.project-content p {
    max-width: 680px;

    margin: 0;

    color: #555;
}

.project-link {
    text-align: right;
}

.project-link a {
    font-size: 0.9rem;
    font-weight: 650;

    text-decoration: none;
}

.project-link a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   CONTACT PREVIEW
   --------------------------------------------------------- */

.contact-preview {
    background: #171717;

    color: #fff;
}

.contact-preview-inner {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 50px;
}

.contact-preview .eyebrow {
    color: #999;
}

.contact-preview h2 {
    margin-bottom: 12px;

    font-size: 2.2rem;
}

.contact-preview p {
    max-width: 650px;

    margin-bottom: 0;

    color: #c9c9c9;
}

.contact-preview .button.primary {
    color: #171717;

    background: #fff;

    border-color: #fff;
}

.contact-preview .button.primary:hover {
    background: #e9e9e9;
}

.contact-preview .button.secondary {
    color: #fff;

    background: transparent;

    border-color: #777;
}

.contact-preview .button.secondary:hover {
    background: #292929;
}

.contact-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* ---------------------------------------------------------
   PAGE HEADER
   --------------------------------------------------------- */

.page-header {
    padding: 100px 0 70px;

    border-bottom: 1px solid #e8e8e8;
}

.page-header h1 {
    margin-bottom: 20px;

    font-size: clamp(2.8rem, 6vw, 4.8rem);

    letter-spacing: -0.05em;
}

.page-intro {
    max-width: 680px;

    margin-bottom: 0;

    font-size: 1.15rem;

    color: #555;
}


/* ---------------------------------------------------------
   ARTICLE / ABOUT
   --------------------------------------------------------- */

.article-content h2 {
    margin-top: 60px;
    margin-bottom: 18px;

    font-size: 1.7rem;

    letter-spacing: -0.025em;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 20px;

    color: #444;

    font-size: 1.03rem;
}

.article-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 60px;
    padding-top: 34px;

    border-top: 1px solid #ddd;
}


/* ---------------------------------------------------------
   CONTACT PAGE
   --------------------------------------------------------- */

.contact-list {
    border-top: 1px solid #ddd;
}

.contact-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 40px;

    padding: 34px 0;

    border-bottom: 1px solid #ddd;
}

.contact-card h2 {
    margin-bottom: 8px;

    font-size: 1.45rem;
}

.contact-card p {
    max-width: 520px;

    margin-bottom: 0;

    color: #555;
}

.contact-label {
    margin-bottom: 8px !important;

    color: #888 !important;

    font-size: 0.72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.primary-contact {
    padding-top: 40px;
    padding-bottom: 40px;
}

.contact-note {
    margin-top: 70px;

    padding-top: 40px;

    border-top: 1px solid #ddd;
}

.contact-note h2 {
    margin-bottom: 12px;

    font-size: 1.6rem;
}

.contact-note p {
    max-width: 600px;

    color: #555;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    padding: 34px 0;

    border-top: 1px solid #e5e5e5;

    background: #fff;
}

.footer-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-inner p {
    margin: 0;

    font-size: 0.9rem;
    font-weight: 650;
}

.footer-links {
    display: flex;

    gap: 22px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #666;

    font-size: 0.85rem;

    text-decoration: none;
}

.footer-links a:hover {
    color: #111;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .hero {
        padding-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero-panel {
        border-left: 0;
        border-top: 1px solid #ddd;

        padding-left: 0;
        padding-top: 30px;
    }

    .two-column {
        grid-template-columns: 1fr;

        gap: 10px;
    }

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

    .project-row {
        grid-template-columns:
            45px
            minmax(0, 1fr);
    }

    .project-link {
        grid-column: 2;

        text-align: left;
    }

    .contact-preview-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 650px) {

    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .nav-container {
        min-height: auto;

        padding: 18px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 14px;
    }

    .site-header {
        position: static;
    }

    .site-nav {
        width: 100%;

        gap: 16px;

        overflow-x: auto;

        white-space: nowrap;

        padding-bottom: 2px;
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 65px 0;
    }

    .page-header {
        padding: 65px 0 50px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-title {
        font-size: 1rem;
    }

    .focus-card {
        padding: 26px;
    }

    .project-row {
        padding: 28px 0;
    }

    .contact-card {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .contact-card .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #777;
    outline-offset: 3px;
}
