/* (c) 2026 Alexander Labrie */

@font-face {
    font-family: 'Acumin';
    src: url('/static/font/Acumin-RPro.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Acumin';
    src: url('/static/font/Acumin-ItPro.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Acumin';
    src: url('/static/font/Acumin-BdPro.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Acumin';
    src: url('/static/font/Acumin-BdItPro.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@media print {
    .icon, input[type=checkbox], dialog {
        display: none;
    }
    aside {
        print-color-adjust: exact;
    }
}

@media (max-width: 849px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 4rem);
        min-height: calc(100dvh - 4rem);
    }
    header {
        height: 3.5rem;
    }
    h1 {
        font-size: 1.3rem;
    }
    .icon img {
        height: 1.4rem;
    }
    dialog {
        width: 60%;
    }
    dialog h2 {
        font-size: 2rem;
    }
    input[type=email], button:not(#action button), dialog p {
        font-size: 1rem;
    }
    aside {
        margin-bottom: 1.5rem;
        flex-grow: 1;
        min-height: 33vh;
    }
    main {
        margin-bottom: 2rem;
        font-size: 1.4rem;
        line-height: 2rem;
    }
    footer .icon img, #action .icon img {
        width: 1.4rem;
    }
    footer .icon::before {
        margin-bottom: 1.8rem;
    }
    #action {
        margin-bottom: 1rem;
    }
    #notifications {
        margin-bottom: 2rem;
    }
}

@media (min-width: 850px) {
    header {
        height: 8.5rem;
    }
    h1 {
        font-size: 2rem;
    }
    .icon img {
        height: 1.6rem;
    }
    dialog {
        width: 30%;
    }
    dialog h2 {
        font-size: 1.8rem;
    }
    aside {
        float: right;
        margin-left: 7rem;
        height: calc(100vh - 11.5rem);
        height: calc(100dvh - 11.5rem);
        width: calc(50% - 3.5rem);
    }
    main {
        margin-bottom: 3.3rem;
        font-size: 2.3rem;
        line-height: 3.3rem;
        min-height: calc(100vh - 17.4rem);
        min-height: calc(100dvh - 17.4rem);
    }
    footer .icon img, #action .icon img {
        width: 1.6rem;
    }
    footer .icon::before {
        margin-bottom: 2rem;
    }
    article {
        font-size: 0.8em;
    }
    #aside-margin-bottom {
        margin-bottom: 3.5rem;
    }
    @media (max-width: 1150px) {
        #blog-aside-margin-bottom {
            margin-bottom: 3.5rem;
        }
    }
    #quotes #action {
        width: calc(50% - 1.5rem);
    }
    #notifications {
        font-size: 1.84rem; /* Same as article in main */
        width: calc(50% - 3.5rem);
    }
}

html, body {
    font: 100% 'Acumin', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #033;
    padding: 1rem;
    color: #fff;
}

header {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

h1 {
    margin: 0;
    font-weight: normal;
}

input[name="hidden"], input[type=checkbox], dialog, #inactive, #overlay {
    display: none;
}

input[type=checkbox]:checked ~ dialog {
    display: block;
    inset: auto;
    position: absolute;
    top: 4.8rem;
    right: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 0;
    border-radius: 1rem;
    background-color: #fff;
    padding: 0.5rem 1.6rem 1.2rem 1.6rem;
    color: #000;
}

input[type=checkbox]:checked ~ #overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    tap-highlight-color: transparent;
    -webkit-tap-highlight-color: transparent;
}

dialog h2 {
    margin: 0;
}

input[type=email] {
    border: 1px solid #ccc;
    border-radius: 1rem;
    padding: 1rem 5%;
    margin: 0.5rem 0 1rem 0;
    width: 90%;
}

.icon, .close {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.icon {
    background-color: transparent;
    color: transparent;
}

.close {
    margin-left: -1rem;
    display: inline-block;
}

h2, main p {
    margin-top: 0;
}

main p:last-of-type {
    margin: 0;
}

aside {
    background: url('/static/images/number-16-1950.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:not(#action button) {
    border: 1px solid #000;
    border-radius: 1rem;
    background-color: #fff;
    padding: 0.9rem;
    color: #000;
}

p a {
    border-bottom: 1px solid #fff;
}

footer {
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
}

footer a:not(:last-of-type), footer label {
    margin-right: 1.6rem;
}

footer .icon::before {
  content: attr(aria-label);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
}

footer .icon:active::before, footer .icon:hover::before {
  opacity: 1;
}

article {
    line-height: 1.5em;
}

time {
    font-size: 0.7em;
}

#action {
    margin-top: 0.5rem;
    font-size: initial;
    line-height: initial;
    text-align: center;
}

#action button {
    border: none;
    background: none;
    padding: 0;
}

#links {
    font-size: 1.3rem;
    line-height: 1.9rem;
}

#links p:not(:last-of-type) {
    margin-bottom: 2rem;
}

#notifications h2 {
    margin-bottom: 0.3rem;
}