/*
Theme Name: Edgars Dev Portfolio
Theme URI: https://edgars-dev.com
Author: Edgars Jaudzems
Description: Lightweight portfolio theme for Edgars Dev iOS apps.
Version: 1.0.20
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Private
Text Domain: edgars-dev-portfolio
*/

:root {
    --ed-white: #ffffff;
    --ed-black: #000000;
    --ed-text: #050507;
    --ed-muted: #77777f;
    --ed-footer-muted: #969696;
    --ed-blue: #3d89f6;
    --ed-rule: rgba(0, 0, 0, 0.08);
    --ed-radius: 36px;
    --ed-max: 1360px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ed-text);
    background: var(--ed-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.ed-header {
    display: flex;
    width: min(100%, var(--ed-max));
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 48px 60px 0;
}

.ed-brand {
    font-size: 13px;
    font-weight: 700;
}

.ed-main {
    width: min(100%, var(--ed-max));
    margin: 0 auto;
    padding: 0 44px 180px;
}

.ed-hero {
    padding: 92px 16px 86px;
    text-align: center;
}

.ed-hero-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0 auto 50px;
    padding: 0 26px;
    border: 1px solid #e8eaef;
    border-radius: 20px;
    background: #f8f8fa;
    color: #8b8b92;
    font-size: clamp(16px, 1.35vw, 22px);
    font-weight: 600;
    line-height: 1.1;
}

.ed-hero h1 {
    margin: 0;
    font-size: clamp(54px, 7vw, 84px);
    font-weight: 900;
    line-height: 0.98;
}

.ed-hero-tagline {
    max-width: 760px;
    margin: 34px auto 0;
    color: #8b8b92;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 400;
    line-height: 1.28;
}

.ed-apps {
    display: grid;
    gap: 150px;
}

.ed-app {
    --app-bg: #edf4ff;
    --app-accent: #3d89f6;
    display: grid;
    min-height: 660px;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    border-radius: var(--ed-radius);
    padding: 64px 46px;
    background: var(--app-bg);
}

.ed-app--weights {
    --app-bg: #edf4ff;
    --app-accent: #3d89f6;
}

.ed-app--static {
    --app-bg: #f4f1ff;
    --app-accent: #5d55eb;
}

.ed-app--lv {
    --app-bg: #ffeff3;
    --app-accent: #964054;
}

.ed-app--lt {
    --app-bg: #ecf9f3;
    --app-accent: #2d7a58;
}

.ed-app--ee {
    --app-bg: #edf7ff;
    --app-accent: #2d84d7;
}

.ed-app-copy {
    display: grid;
    align-content: start;
}

.ed-app-number {
    color: var(--app-accent);
    font-size: 12px;
    font-weight: 800;
}

.ed-app-icon {
    width: 76px;
    height: 76px;
    margin-top: 32px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
}

.ed-app h2 {
    max-width: 390px;
    margin: 44px 0 0;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 900;
    line-height: 0.96;
}

.ed-app-subtitle {
    margin: 14px 0 0;
    color: var(--ed-muted);
    font-size: 15px;
    font-weight: 500;
}

.ed-app-promo {
    max-width: 370px;
    margin: 32px 0 0;
    color: #33343a;
    font-size: 17px;
    line-height: 1.42;
}

.ed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.ed-app-store,
.ed-website-link {
    display: inline-flex;
    width: 121px;
    height: 41px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 7px;
}

.ed-app-store img {
    width: 121px;
    height: 41px;
}

.ed-website-link {
    color: #ffffff;
    background: #000000;
    font-size: 14px;
    font-weight: 800;
}

.ed-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 145px));
    gap: 0;
    margin: 92px 0 0;
}

.ed-meta dt {
    margin: 0 0 10px;
    color: var(--app-accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ed-meta dd {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.ed-screenshot-panel {
    display: flex;
    min-height: 504px;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-radius: 30px;
    padding: 34px 46px;
    background: #ffffff;
}

.ed-screenshot-panel img {
    width: min(30%, 202px);
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.ed-footer {
    color: #ffffff;
    background: #000000;
}

.ed-footer-inner {
    display: grid;
    width: min(100%, var(--ed-max));
    grid-template-columns: minmax(280px, 470px) minmax(180px, 1fr) minmax(160px, 1fr);
    justify-content: space-between;
    gap: 88px;
    margin: 0 auto;
    padding: 96px 64px 120px;
}

.ed-footer h2 {
    margin: 0 0 28px;
    font-size: 18px;
    font-weight: 800;
}

.ed-footer p {
    max-width: 430px;
    margin: 0;
    color: #d2d2d2;
    font-size: 15px;
    line-height: 1.55;
}

.ed-footer strong {
    display: block;
    margin-top: 42px;
    font-size: 14px;
}

.ed-footer-role {
    display: block;
    margin-top: 6px;
    color: var(--ed-footer-muted);
    font-size: 11px;
}

.ed-footer-about img {
    width: 88px;
    height: 88px;
    margin-top: 20px;
    border-radius: 22px;
    object-fit: cover;
    object-position: center 32%;
}

.ed-footer-list {
    display: grid;
    align-content: start;
}

.ed-footer-list a {
    color: var(--ed-footer-muted);
    font-size: 13px;
    line-height: 2;
}

.ed-footer-list a:hover,
.ed-footer-bottom a:hover {
    color: #ffffff;
}

.ed-footer-bottom {
    display: flex;
    width: min(100%, var(--ed-max));
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    border-top: 1px solid #1f1f1f;
    padding: 28px 64px 34px;
    color: #777777;
    font-size: 10px;
}

.ed-policy {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 96px 28px 140px;
}

.ed-policy article {
    color: #151515;
}

.ed-policy h1 {
    margin: 0 0 52px;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.ed-policy h2 {
    margin: 42px 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.ed-policy p,
.ed-policy li {
    color: #242424;
    font-size: 17px;
    line-height: 1.65;
}

.ed-policy p {
    margin: 0 0 16px;
}

.ed-policy ul {
    margin: 0 0 22px;
    padding-left: 24px;
}

.ed-policy a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ed-error {
    display: grid;
    min-height: calc(100svh - 96px);
    width: min(100%, 860px);
    align-content: center;
    justify-items: center;
    margin: 0 auto;
    padding: 72px 28px 128px;
    text-align: center;
}

.ed-error-code {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 0 32px;
    padding: 0 20px;
    border: 1px solid #e8eaef;
    border-radius: 16px;
    background: #f8f8fa;
    color: #8b8b92;
    font-size: 14px;
    font-weight: 800;
}

.ed-error h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 86px);
    font-weight: 900;
    line-height: 0.98;
}

.ed-error p:not(.ed-error-code) {
    max-width: 420px;
    margin: 24px auto 0;
    color: var(--ed-muted);
    font-size: 18px;
    line-height: 1.42;
}

.ed-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

.ed-error-primary,
.ed-error-secondary {
    display: inline-flex;
    min-width: 146px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
}

.ed-error-primary {
    color: #ffffff;
    background: #000000;
}

.ed-error-secondary {
    border: 1px solid var(--ed-rule);
    color: #161616;
    background: #ffffff;
}

@media (max-width: 900px) {
    .ed-header {
        padding: 28px 14px 0;
    }

    .ed-main {
        padding: 0 10px 62px;
    }

    .ed-hero {
        padding: 46px 12px 46px;
    }

    .ed-hero-role {
        min-height: 40px;
        margin-bottom: 24px;
        padding: 0 18px;
        border-radius: 16px;
        font-size: 14px;
    }

    .ed-hero h1 {
        font-size: 34px;
    }

    .ed-hero-tagline {
        max-width: 310px;
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.25;
    }

    .ed-apps {
        gap: 24px;
    }

    .ed-app {
        display: block;
        min-height: auto;
        border-radius: 30px;
        padding: 28px 24px 22px;
    }

    .ed-app-number {
        font-size: 12px;
    }

    .ed-app-icon {
        width: 56px;
        height: 56px;
        margin-top: 24px;
        border-radius: 13px;
    }

    .ed-app h2 {
        max-width: 100%;
        margin-top: 30px;
        font-size: 27px;
        line-height: 0.98;
    }

    .ed-app-subtitle {
        margin-top: 7px;
        font-size: 10px;
    }

    .ed-app-promo {
        max-width: none;
        margin-top: 18px;
        font-size: 11px;
        line-height: 1.42;
    }

    .ed-actions {
        gap: 12px;
        margin-top: 24px;
    }

    .ed-app-store,
    .ed-website-link {
        width: 104px;
        height: 35px;
        border-radius: 7px;
    }

    .ed-app-store img {
        width: 104px;
        height: 35px;
    }

    .ed-website-link {
        font-size: 10px;
    }

    .ed-meta {
        grid-template-columns: repeat(2, minmax(0, 112px));
        margin-top: 24px;
    }

    .ed-meta dt {
        margin-bottom: 7px;
        font-size: 8px;
    }

    .ed-meta dd {
        font-size: 10px;
    }

    .ed-screenshot-panel {
        min-height: 0;
        gap: 12px;
        margin-top: 50px;
        border-radius: 24px;
        padding: 18px 10px;
    }

    .ed-screenshot-panel img {
        width: min(31%, 108px);
    }

    .ed-footer-inner {
        display: block;
        padding: 28px 24px 36px;
    }

    .ed-footer-about {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
    }

    .ed-footer-about h2 {
        display: none;
    }

    .ed-footer-about img {
        grid-row: 1 / 3;
        width: 58px;
        height: 58px;
        margin: 0;
        border-radius: 16px;
    }

    .ed-footer-about strong {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .ed-footer-role {
        grid-column: 2;
        grid-row: 2;
        margin-top: 2px;
    }

    .ed-footer-about p {
        grid-column: 1 / -1;
        margin-top: 28px;
        font-size: 12px;
    }

    .ed-footer-list {
        margin-top: 30px;
    }

    .ed-footer-list:nth-of-type(2) {
        display: none;
    }

    .ed-footer-list h2 {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .ed-footer-list a {
        display: inline-block;
        width: 48%;
        font-size: 11px;
        line-height: 2.6;
    }

    .ed-footer-bottom {
        padding: 22px 24px 28px;
        font-size: 9px;
    }

    .ed-policy {
        padding: 64px 24px 96px;
    }

    .ed-policy h1 {
        margin-bottom: 36px;
        text-align: left;
    }

    .ed-policy p,
    .ed-policy li {
        font-size: 15px;
    }

    .ed-error {
        min-height: calc(100svh - 56px);
        padding: 52px 24px 92px;
    }

    .ed-error-code {
        min-height: 38px;
        margin-bottom: 24px;
        border-radius: 14px;
        font-size: 12px;
    }

    .ed-error h1 {
        font-size: 42px;
    }

    .ed-error p:not(.ed-error-code) {
        margin-top: 18px;
        font-size: 15px;
    }

    .ed-error-actions {
        width: 100%;
        margin-top: 30px;
    }

    .ed-error-primary,
    .ed-error-secondary {
        min-width: 0;
        width: 100%;
    }
}
