@font-face {
    font-family: "Instrument Serif";
    src: url("instrument-serif-v1.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("instrument-serif-italic-v1.woff2") format("woff2");
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("dm-sans-v1.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Almarai";
    src: url("almarai-bold-v1.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f7f5ef;
    --ink: #222720;
    --muted: #575d52;
    --olive: #303d2e;
    --line: #dcded3;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 5px;
}

.page-width {
    width: min(100% - 96px, 1312px);
    margin-inline: auto;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    min-height: 88px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: var(--sans);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.055em;
    white-space: nowrap;
}

.brand img {
    display: block;
    object-fit: contain;
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    text-underline-offset: .25em;
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(32px, 5.4vw, 82px);
    padding-block: 42px 46px;
}

.hero-copy {
    padding-inline-start: clamp(0px, 1.9vw, 28px);
}

.hero h1 {
    margin: 0;
    font: 400 clamp(58px, 7.2vw, 112px)/.88 var(--serif);
    letter-spacing: -.036em;
}

.hero h1 span,
.hero h1 em {
    display: block;
}

.hero h1 em {
    color: var(--olive);
    font-weight: inherit;
}

.hero-copy p {
    max-width: 39ch;
    margin: 28px 0 27px;
    color: var(--muted);
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.62;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 17px;
    border: 1px solid #a8aea0;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.platform-link:hover {
    background: #eeeee5;
    border-color: var(--olive);
}

.platform-link.primary {
    min-width: 126px;
    color: #fff;
    background: var(--olive);
    border-color: var(--olive);
}

.platform-link.primary:hover {
    background: #475843;
    border-color: #475843;
}

.link-arrow {
    position: relative;
    flex: 0 0 14px;
    height: 14px;
}

.link-arrow::before,
.link-arrow::after {
    position: absolute;
    content: "";
}

.link-arrow::before {
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.link-arrow::after {
    top: 7px;
    left: 1px;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-45deg);
}

.hero-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.18;
    border-radius: 6px;
    background: #d9cdb7;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 50%;
}

.company-markets {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(32px, 5.4vw, 82px);
    padding: 30px clamp(0px, 1.9vw, 28px);
    border-block: 1px solid var(--line);
}

.company-markets h2 {
    margin: 0;
    font: 400 clamp(32px, 3vw, 45px)/1 var(--serif);
    letter-spacing: -.015em;
}

.company-markets dl {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr;
    gap: 18px;
    margin: 0;
}

.company-markets dl > div {
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--line);
}

.company-markets dt {
    margin-bottom: 4px;
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 700;
}

.company-markets dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    min-height: 74px;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

.country-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 24px;
    background: radial-gradient(ellipse at 50% 0%, #e7ebdf, var(--paper) 67%);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
}

.country-panel {
    width: min(100%, 580px);
    padding: clamp(26px, 6vw, 57px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fdfcf8;
    text-align: center;
    box-shadow: 0 18px 64px rgba(35, 48, 33, .07);
}

.country-panel .brand {
    gap: 12px;
    font-size: 34px;
}

.country-panel h1 {
    margin: 24px 0 29px;
    font-size: clamp(23px, 4.5vw, 32px);
    line-height: 1.4;
}

.country-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.country-option {
    display: grid;
    min-height: 151px;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 16px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f7f1;
    font-size: clamp(13px, 2.4vw, 16px);
    font-weight: 700;
    line-height: 1.4;
    transition: background-color .18s ease, border-color .18s ease;
}

.country-option:hover {
    border-color: #84957d;
    background: #eef1e8;
}

.country-option img {
    display: block;
    width: min(90px, 100%);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(34, 39, 32, .08);
}

@media (max-width: 1000px) {
    .page-width {
        width: calc(100% - 56px);
    }

    .hero-copy {
        padding-inline-start: 0;
    }
}

@media (max-width: 740px) {
    .page-width {
        width: calc(100% - 36px);
    }

    .site-header {
        min-height: 70px;
    }

    .hero,
    .company-markets {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        gap: 27px;
        padding-block: 33px 30px;
    }

    .hero h1 {
        font-size: clamp(57px, 11.8vw, 84px);
    }

    .hero h1 span,
    .hero h1 em {
        display: inline;
    }

    .hero-copy p {
        margin-block: 18px 21px;
    }

    .hero-image {
        aspect-ratio: 1.3;
    }

    .company-markets {
        gap: 19px;
        padding-block: 24px;
    }

    .company-markets dl {
        gap: 8px;
    }

    .company-markets dl > div {
        padding-inline-start: 9px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 53px;
    }

    .platform-link {
        gap: 10px;
        padding-inline: 11px;
    }

    .platform-link.primary {
        min-width: 91px;
    }

    .country-page {
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-link,
    .country-option {
        transition: none;
    }
}
