/* Rock Software Oy — site styles. Palette taken from rapakivi granite. */
:root {
    --basalt: #1f2a2e;      /* text, dark surfaces */
    --quartz: #eef0ee;      /* page background */
    --feldspar: #c88a72;    /* the stone's pink, rules */
    --feldspar-deep: #8f5e4f;
    --rim: #e9e6dc;         /* the pale rim around each ovoid */
    --lichen: #3f5e50;      /* links, focus */
    --muted: #55636a;

    --font: "Familjen Grotesk", system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --measure: 62ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--quartz);
    color: var(--basalt);
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.55;
}

a { color: var(--lichen); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--lichen); outline-offset: 3px; border-radius: 2px; }

/* Masthead */
.masthead {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    align-items: baseline;
    justify-content: space-between;
    padding: 24px var(--gutter);
}
.wordmark {
    color: var(--basalt);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.masthead-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 1rem; }
.masthead-nav a { color: var(--basalt); text-decoration: none; }
.masthead-nav a:hover { text-decoration: underline; }

/* Hero: text on the left, the stone on the right */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--gutter);
    align-items: stretch;
    padding: clamp(24px, 6vw, 88px) 0 0 var(--gutter);
}
.hero-text { align-self: center; padding-bottom: clamp(24px, 6vw, 88px); }
.hero h1 {
    margin: 0 0 0.6em;
    font-size: clamp(2.5rem, 6.4vw, 5.25rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 14ch;
}
.lede { margin: 0; max-width: 46ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); }

.hero-stone {
    position: relative;
    margin: 0;
    min-height: 420px;
    border-radius: 0 0 0 28px;
    overflow: hidden;
    background: var(--feldspar-deep);
}
.hero-stone svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-stone figcaption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--basalt);
    color: var(--rim);
    font-size: 0.875rem;
}

/* Offerings: heading in a narrow column, text beside it */
.offerings { padding: clamp(40px, 8vw, 112px) var(--gutter) 0; }
.offering {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 16px var(--gutter);
    padding: 40px 0 48px;
    border-top: 2px solid var(--feldspar);
    scroll-margin-top: 24px;
}
.offering h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.offering-body p { margin: 0 0 1.25em; max-width: var(--measure); }
.offering-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.offering-body li {
    padding: 6px 14px;
    border: 1.5px solid var(--basalt);
    border-radius: 999px;
    font-size: 0.9375rem;
}

/* Contact */
.contact {
    margin-top: clamp(40px, 8vw, 112px);
    padding: clamp(40px, 6vw, 72px) var(--gutter) 32px;
    background: var(--basalt);
    color: var(--rim);
}
.contact h2 { margin: 0 0 24px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
.contact dl { display: flex; flex-wrap: wrap; gap: 24px 64px; margin: 0 0 48px; }
.contact dt { font-size: 0.875rem; color: var(--feldspar); }
.contact dd { margin: 4px 0 0; font-size: 1.25rem; }
.contact a { color: var(--rim); }
.contact a:focus-visible { outline-color: var(--feldspar); }
.contact .small { margin: 0; font-size: 0.875rem; opacity: 0.7; }

/* Phones */
@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; padding: 16px var(--gutter) 0; }
    .hero-text { padding-bottom: 0; }
    .hero-stone { min-height: 220px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
    .offering { grid-template-columns: 1fr; padding: 28px 0 36px; }
}
