/* Win-Win Technologies — company surface

   The company's own palette, from BRAND.md:

     oxblood    #5C1A17   the mark, headings, links
     parchment  #EFE3C6   the ground
     crest      #FFFFFF   the mark's snow line

   Oxblood was chosen over navy so the company mark cannot be mistaken for
   Recursivity's pale-blue-on-navy spiral at listing size. It is a deeper
   cousin of that app's light-theme accent #713331, so the two are related
   without repeating.

   Supporting tones are shared with /privacy, which wears the app's own
   parchment theme:

     ink    #2C2218   body text
     muted  #6A5F49   secondary text — a darker relative of the app's #A49164,
                      which at 2.5:1 on parchment was too faint to set text in

   Each product keeps its own colours inside its own page. Recursivity's dark
   page then reads as deliberate contrast rather than a clash. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --oxblood: #5C1A17;
    --parchment: #EFE3C6;
    --wash: #F6EEDB;
    --ink: #2C2218;
    --muted: #6A5F49;
    --line: rgba(44, 34, 24, 0.16);
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Literata', Georgia, 'Times New Roman', serif;
}

html {
    /* The ground is painted on body, so html needs it too or rubber-banding
       past either end shows white behind the page. */
    background-color: var(--parchment);
    overscroll-behavior-y: none;
}

body {
    font-family: var(--serif);
    background: var(--parchment);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: var(--oxblood);
}

.container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, .sans {
    font-family: var(--sans);
}

/* Header */
.site-header {
    padding: 2rem 0 0;
}

.lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}

.lockup img {
    width: 40px;
    height: 40px;
    display: block;
}

.lockup span {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Hero */
.hero {
    padding: 3.5rem 0 1rem;
}

.hero h1,
.hero .lede {
    max-width: 34rem;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--oxblood);
    margin-bottom: 1.25rem;
}

.hero .lede {
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
}

.hero .lede a {
    color: var(--oxblood);
}

/* Products */
.products {
    padding: 3.5rem 0 1rem;
}

.products .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 2.5rem;
}

.product {
    border-top: 2px solid var(--oxblood);
    padding-top: 1.25rem;
}

.product .kicker {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.product h2 {
    font-size: 1.3125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.product p {
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.product .status {
    font-family: var(--sans);
    font-size: 0.8125rem;
    color: var(--muted);
}

.product a {
    color: var(--oxblood);
}

.more {
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* About + contact */
.about {
    padding: 3.5rem 0 0;
}

.about p {
    max-width: 36rem;
}

.about p + p {
    margin-top: 1.25rem;
}

.about a {
    color: var(--oxblood);
}

.contact {
    padding: 2.5rem 0 1rem;
}

.contact-heading {
    font-size: 1.3125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}

.contact-note {
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.contact-form {
    max-width: 30rem;
}

.field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.125rem;
}

.field label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--ink);
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 7rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--oxblood);
    box-shadow: 0 0 0 3px rgba(92, 26, 23, 0.14);
}

/* Spam trap, hidden from people and from assistive tech alike */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-fallback {
    margin-top: 1.5rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--muted);
}

.contact-fallback a {
    color: var(--oxblood);
}

.contact-link {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9375rem;
    background: var(--oxblood);
    color: var(--parchment);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s ease;
}

button.contact-link {
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
}

.contact-link:hover {
    background: #46110F;
    transform: translateY(-1px);
}

.contact-link:focus-visible {
    outline: 2px solid var(--oxblood);
    outline-offset: 3px;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 1.75rem 0 3rem;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 0.8125rem;
    color: var(--muted);
}

footer p + p {
    margin-top: 0.4rem;
}

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

footer a:hover {
    color: var(--oxblood);
}

@media (prefers-reduced-motion: reduce) {
    .contact-link { transition: none; }
}

@media (max-width: 640px) {
    .hero { padding-top: 2.5rem; }
    .products { padding-top: 2.5rem; }
    .products .grid { gap: 2rem; }
    .about { padding-top: 2.5rem; }
}
