/* ==========================================================================
   IndeedClean - Base styles
   Brand palette is taken from the logo:
     blue  #4CA0E8   green #69C06A   mint #5EC491
   ========================================================================== */

:root {
    /* Logo colours */
    --blue: #FF6B4A;
    --blue-dark: #2f86d4;
    --blue-soft: #dcebf8;
    --blue-soft-2: #bedcf5;
    --green: #69c06a;
    --green-dark: #45a05f;
    --mint: #5ec491;

    /* Dark surfaces (deep shades of the logo green) */
    --dark: #133a26;
    --dark-2: #1b4e33;
    --dark-3: #2a6b44;

    /* Light surfaces */
    --bg: #fafdfb;
    --cream: #f4faf6;
    --mint-100: #ddf0e4;
    --mint-200: #c6e7d5;
    --mint-300: #a9dcc0;

    /* Text */
    --heading: #133a26;
    --body: #5a6b60;
    --muted: #8a9a90;
    --on-dark: #ffffff;
    --on-dark-soft: #a8cdb5;

    --line: #e4eee8;
    --white: #ffffff;

    /* Layout */
    --container: 1160px;
    --radius: 14px;
    --radius-lg: 20px;

    /* Fonts */
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.15;
}

h1 {
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 24px;
}

p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Helpers
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 104px 0 100px;
}

/* Simple 12 column row. Columns stack on small screens (see responsive.css). */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-8 {
    grid-column: span 8;
}

.row--middle {
    align-items: center;
}

/* --------------------------------------------------------------------------
   Slider / carousel

   Shared by the projects and blog sections. --per is how many cards are
   visible at once, so a breakpoint only has to change that one value.
   -------------------------------------------------------------------------- */

.slider {
    --per: 3;
    --gap: 26px;
    position: relative;
    overflow: hidden;
}

.slider__track {
    display: flex;
    gap: var(--gap);
    will-change: transform;
}

.slider__track > * {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
}

.slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.slider__dots:empty {
    display: none;
}

.slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--mint-300);
    cursor: pointer;
    transition: width 0.25s, background-color 0.25s;
}

.slider__dot--active {
    width: 22px;
    background: var(--blue);
}

/* Italic serif accent used inside headings */
.accent-italic {
    font-style: italic;
    color: var(--green-dark);
}

.accent-italic-blue {
    font-style: italic;
    color: var(--blue);
}

/* Small letter-spaced monospace label */
.label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.label--dot::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--blue);
    vertical-align: 2px;
}

.label--dash {
    color: var(--green-dark);
}

.label--dash::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-right: 10px;
    background: currentColor;
    vertical-align: 4px;
}

.label--on-dark {
    color: var(--blue);
}

.lead {
    font-size: 16px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--blue {
    background: var(--blue);
    color: var(--white);
}

.btn--blue:hover {
    background: var(--blue-dark);
}

.btn--dark {
    background: var(--dark);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--dark-3);
}

.btn--outline {
    background: transparent;
    color: var(--heading);
    border-color: var(--line);
}

.btn--outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.btn--sm {
    padding: 11px 20px;
    font-size: 13px;
}

/* Monospace inline link with arrow */
.link-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--green-dark);
    font-weight: 500;
}

.link-mono:hover {
    color: var(--blue);
}

.link-mono--blue {
    color: var(--blue);
}

.link-mono--dark {
    color: var(--heading);
}

/* Section heading row: title left, supporting copy right */
.section-head {
    display: grid;
    grid-template-columns: 520px 345px;
    gap: 181px;
    align-items: start;
    margin-bottom: 56px;
}

.section-head p {
    padding-top: 10px;
}
