/* donstech.com — single-page portfolio site.
 *
 * Design notes:
 * - Muted slate accent — neutral umbrella color so each app's accent
 *   stands out in its card without competing.
 * - System fonts, comfortable measure, generous spacing.
 * - App cards use per-app accent colors as left-border treatment to
 *   echo each app's brand without dominating the page.
 * - Single column above, three-card grid for app section on wide
 *   screens, stacked on mobile.
 * - No JS.
 */

/* ---- Variables ---- */

:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --fg-muted: #545962;
    --fg-tertiary: #8a8e96;

    /* Slate accent — neutral umbrella over the three apps. Reads as
     * "the portfolio is the brand" rather than competing with WFD
     * coral or GoSosh coral. */
    --accent: #3a4a5e;
    --accent-dark: #2c3a4c;
    --accent-light: #eef0f4;

    /* Per-app accents used on app card left borders. */
    --wfd-accent: #d65d3a;     /* WFD coral */
    --gososh-accent: #d65d3a;  /* GoSosh coral (same as WFD by coincidence) */
    --sandeeze-accent: #c4763e; /* Sandeeze orange — bed/clock icon palette */

    --border: #e6e8ec;
    --surface: #f7f8fa;

    --maxw: 44rem;
    --maxw-wide: 60rem;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Header / nav ---- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 0.95rem 0;
    margin-bottom: 2.8rem;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--fg);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ---- Headings ---- */

h1, h2, h3 {
    line-height: 1.25;
    color: var(--fg);
    letter-spacing: -0.018em;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 0.4rem;
    font-weight: 700;
}

h2 {
    font-size: 1.55rem;
    margin: 3rem 0 1.2rem;
    font-weight: 700;
    color: var(--accent-dark);
}

h3 {
    /* App card titles. */
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
    font-weight: 700;
    color: var(--fg);
}

p {
    margin: 0 0 1.1rem;
}

/* The italic subtitle line under H1 — bigger, softer than body. */
main > p:first-of-type em {
    font-style: italic;
    color: var(--fg-muted);
    font-size: 1.2rem;
    display: inline-block;
}

strong {
    color: var(--fg);
    font-weight: 700;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.8rem 0 1.5rem;
}

/* The footer link row after the closing hr — centered, smaller. */
main > hr + p {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.98rem;
}

/* ---- Links ---- */

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-dark);
}

/* ---- App grid ---- */

.app-grid {
    display: grid;
    gap: 1.2rem;
    margin: 1.5rem 0 2rem;
}

.app-card {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 1.4rem 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: background 0.15s ease;
}

.app-card:hover {
    background: var(--accent-light);
}

.app-card-wfd {
    border-left-color: var(--wfd-accent);
}

.app-card-gososh {
    border-left-color: var(--gososh-accent);
}

.app-card-sandeeze {
    border-left-color: var(--sandeeze-accent);
}

/* App card body copy — slightly smaller than main body to keep
 * cards tight. */
.app-card p {
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0 0 0.7rem;
    color: var(--fg-muted);
}

/* The "Live on the App Store" / "In beta" line. */
.app-card p strong {
    color: var(--accent-dark);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* The "Learn more →" link at the bottom of each card. */
.app-card p:last-child {
    margin-bottom: 0;
}

.app-card p:last-child a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: color 0.15s ease;
}

.app-card-wfd p:last-child a { color: var(--wfd-accent); }
.app-card-gososh p:last-child a { color: var(--gososh-accent); }
.app-card-sandeeze p:last-child a { color: var(--sandeeze-accent); }

.app-card p:last-child a:hover {
    text-decoration: underline;
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 4rem;
    padding: 1.8rem 0;
    color: var(--fg-muted);
}

.site-footer .container {
    text-align: center;
}

.site-footer .tagline {
    font-style: italic;
    margin: 0 0 0.45rem;
    color: var(--fg-muted);
    font-size: 0.98rem;
}

.site-footer .meta {
    font-size: 0.88rem;
    margin: 0;
    color: var(--fg-tertiary);
}

.site-footer a {
    color: var(--fg-muted);
}

.site-footer a:hover {
    color: var(--accent);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 2.0rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.18rem; }
    .container { padding: 0 1.2rem; }
    main > p:first-of-type em { font-size: 1.08rem; }
    .app-card { padding: 1.2rem 1.3rem; }
}
