/* Shared styles for the oops site (index.html, pages/impressum.html) */

html, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography follows pages/netzag.php */
body > .content {
    font-family: "Platypi", "Open Sans", serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.85);
}

h1,
h2,
h3 {
    font-family: "Mona Sans", "Open Sans", sans-serif;
    letter-spacing: normal;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Like .hero-title, minus the uppercase */
h1 {
    font-size: clamp(2rem, 5vw, 44px);
    font-weight: 800;
    font-stretch: condensed;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.25rem, 2vw, 26px);
    font-weight: 800;
    font-stretch: 87.5%;
}

/* Like .cta-button */
h3 {
    font-size: 20px;
    font-weight: 700;
    font-stretch: 95%;
}

strong {
    font-weight: 600;
}

small {
    font-size: 16px;
    font-style: italic;
    opacity: 0.75;
    line-height: 1.3;
}

section h2,
section h3 {
    margin-top: 1.5rem;
}

/* Keep each contact's heading tight to its address, with room between contacts */
.contact {
    margin-top: 1rem;
}

.contact h3 {
    margin: 0 0 0.15rem;
}

.contact small {
    display: block;
    margin-top: 0.25rem;
}

.contact + p {
    margin-top: 1rem;
}

/* Same for the dorm names and their address lines */
.nearby-dorms > h3 {
    margin-bottom: 0.15rem;
}

section ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.5;
}

section li + li {
    margin-top: 0.5rem;
}

body {
    text-align: start;
    font-family: 'Open Sans', 'Segoe UI', Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*height: 100vh;
    width: 100vw;*/
}

/* Wide enough that the longest paragraph stays on one line */
.content {
    max-width: 1100px;
}

/* Static copy of the navbar from landing.css */
header {
    align-self: stretch;
    /* Brand purple #a02c89 is oklch(50.4% 0.182 337); start from a lighter, softer version of the same hue */
    background: linear-gradient(to bottom in oklch, oklch(81% 0.07 337), oklch(81% 0.07 337 / 0));
}

header .logo {
    display: block;
    padding: 1rem 0 0.5rem;
}

header .logo svg {
    display: block;
    margin: auto;
    width: auto;
    height: 6vh;
    min-height: 28px;
    max-height: 36px;
}

header nav {
    overflow: hidden;
}

/* Line link text up with the page text (li padding + this = 1rem) */
header nav .content {
    display: flow-root;
    padding: 0;
}

header .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    float: left;
}

header .menu li {
    float: left;
    user-select: none;
    height: 10vh;
    min-height: 30px;
    max-height: 50px;
}

header .menu li a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.85);
    padding: 0 16px;
    display: block;
    height: 100%;
}

header .menu li a::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

header .menu li:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

@media only screen and (max-width: 1200px) {
    header .menu li a {
        padding: 0 8px;
        font-size: 12px;
    }

    header nav .content {
        padding: 0 8px;
    }

    header .menu li {
        height: 35px;
        min-height: unset;
        max-height: unset;
    }

    header .logo svg {
        height: 28px;
    }
}

p {
    padding: 0;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}
