/*
 * FARFARAWAY shared blog stylesheet
 * One page frame and five article types: reference, nakshatra, hub, guide and list.
 */

@font-face {
    font-family: "FFA Lato";
    src: url("../fonts/lato-regular-webfont.woff2") format("woff2"),
         url("../fonts/lato-regular-webfont.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "FFA Lato";
    src: url("../fonts/lato-bold-webfont.woff2") format("woff2"),
         url("../fonts/lato-bold-webfont.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "FFA Courier";
    src: url("../fonts/cour-webfont.woff2") format("woff2"),
         url("../fonts/cour-webfont.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --page-background: #f1f1ef;
    --paper: #ffffff;
    --soft-paper: #fafafa;
    --ink: #343434;
    --muted-ink: #676767;
    --line: #dededb;
    --accent: #0ab581;
    --article-width: 50%;
    --nav-height: 50px;
}

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

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

body {
    margin: 0;
    background: var(--page-background);
    color: var(--ink);
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.sr-only,
.article-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* One shared header: article navigation on the left, account controls on the right. */
.navbar-custom {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--nav-height);
    border-bottom: 1px solid transparent;
    background: transparent;
    opacity: 1;
    transform: translateY(0);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    pointer-events: auto;
    overflow: visible;
}

.navbar-custom.preview-navbar-visible {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar-custom .container {
    width: 100%;
    height: 100%;
    padding: 0 3vw 0 5vw;
    overflow: visible;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    overflow: visible;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-left {
    min-width: 0;
    gap: 17px;
    height: 100%;
    overflow: visible;
}

.navbar-right {
    flex: 0 0 auto;
    gap: 20px;
}

.navbar-brand {
    display: block;
    align-self: flex-start;
    height: auto;
    padding-top: 6px;
    flex: 0 0 auto;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
    width: 49px;
    height: auto;
    max-height: none;
}

.goodtimes-class {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-class {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-family: "FFA Courier", monospace;
    font-size: 13px !important;
    letter-spacing: 1px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.about-class:hover,
.about-class:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.back-arrow {
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
}

.navbar-toggle {
    display: none;
}

/* Hero. */
.whole-div,
.intro {
    position: relative;
    width: 100%;
}

.intro {
    overflow: hidden;
    background: #e8e8e5;
    line-height: 0;
}

.hero-picture,
.hero-picture img,
#intro_bg {
    display: block;
    width: 100%;
}

.hero-login {
    color: #111;
    font-family: "FFA Courier", monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
}

.hero-login:hover,
.hero-login:focus {
    border-bottom: 1px solid currentColor;
}

.hero-menu {
    position: relative;
}

.c-hamburger {
    position: relative;
    display: block;
    width: 30px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.c-hamburger:focus {
    outline: 1px solid rgba(0, 0, 0, 0.5);
    outline-offset: 4px;
}

.c-hamburger:focus:not(:focus-visible) {
    outline: 0;
}

.c-hamburger span,
.c-hamburger::before,
.c-hamburger::after {
    position: absolute;
    left: 2px;
    display: block;
    width: 26px;
    height: 2px;
    background: #111;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
}

.c-hamburger::before {
    top: 3px;
}

.c-hamburger span {
    top: 11px;
    overflow: hidden;
    text-indent: -9999px;
}

.c-hamburger::after {
    top: 19px;
}

.c-hamburger.is-active::before {
    top: 11px;
    transform: rotate(45deg);
}

.c-hamburger.is-active span {
    opacity: 0;
}

.c-hamburger.is-active::after {
    top: 11px;
    transform: rotate(-45deg);
}

.hero-menu .navbar-nav {
    position: absolute;
    top: 41px;
    right: 0;
    width: 190px;
    margin: 0;
    padding: 15px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    list-style: none;
    line-height: 1.4;
}

.hero-menu .navbar-nav li + li {
    margin-top: 12px;
}

.hero-menu .navbar-nav a {
    color: #1d1d1d;
    font-family: "FFA Courier", monospace;
    font-size: 10px;
    letter-spacing: 1.1px;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-menu .navbar-nav a:hover,
.hero-menu .navbar-nav a:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.gif-img {
    position: absolute;
    right: 0;
    bottom: 42%;
    left: 0;
    text-align: center;
}

.gif-img img {
    width: auto;
    margin: 0 auto;
}

.top-button {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: 20px;
    left: 0;
    margin: 0;
    text-align: center;
    line-height: 1;
}

.btn-circle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 44px;
    color: #111;
    text-decoration: none;
}

.btn-circle::after {
    position: absolute;
    top: 9px;
    left: 13px;
    width: 18px;
    height: 18px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 150ms ease;
}

.btn-circle:hover::after,
.btn-circle:focus::after {
    transform: translateY(4px) rotate(45deg);
}

/*
 * The outer column owns the white background. This is the key rule that keeps
 * the white strip continuous, regardless of how long an article becomes.
 */
.article-column {
    width: var(--article-width);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--paper);
}

.intro-body {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 54px 6.5% 24px;
    background: transparent;
}

.story_f {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.story_f h2,
.story_f h3,
.story_f h2[data-original-heading="h1"] {
    margin: 30px 0 10px;
    color: #3b3b3b;
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.55px;
    line-height: 1.45;
    text-transform: uppercase;
}

.story_f p,
.content-f p,
.content-f-img p {
    margin: 5px 0;
    color: var(--ink);
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.65px;
    line-height: 25px;
    text-align: justify;
}

.italic-font {
    font-style: italic;
}

.story_f iframe,
.story_f video,
.story_f object,
.story_f embed {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    border: 0;
    aspect-ratio: 16 / 9;
}

.story_f pre,
.story_f code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.content-f,
.content-f-img {
    display: block;
    width: 100%;
    margin: 18px 0;
}

.content-f-img::after {
    display: table;
    clear: both;
    content: "";
}

.content-f-img > img,
.content-f-img > a > img {
    width: 42% !important;
    margin-top: 7px;
}

.content-f-img img.left,
.content-f-img a img.left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.content-f-img img.right,
.content-f-img a img.right {
    float: right;
    margin-bottom: 10px;
    margin-left: 20px;
}

.link-far {
    color: #242424;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.link-far:hover,
.link-far:focus {
    color: #000;
}

.responsive,
#time img,
.\33 3chart,
.\33 3chart img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

#time {
    width: 100%;
    margin: 18px 0;
}

.chart-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px 0;
    border-collapse: collapse;
    table-layout: fixed;
    border-color: #a7a7a7;
    color: rgba(0, 0, 0, 0.95);
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 10px;
    line-height: 12.5px;
}

.chart-table th,
.chart-table td {
    min-width: 0;
    padding: 6px;
    border: 1px solid #a7a7a7;
    color: #000;
    font-family: "FFA Courier", monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
    text-align: left;
    vertical-align: middle;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.chart-table img,
.chart-table iframe,
.chart-table video {
    max-width: 100% !important;
    height: auto !important;
}

.article-invitation {
    margin: 10px 6.5% 0;
    padding: 30px 0 46px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.article-invitation p {
    margin: 5px 0;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0.55px;
    line-height: 1.7;
}

.article-invitation__lead {
    font-weight: 700;
}

.site-footer {
    position: relative;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
    color: #000;
    text-align: center;
}

.site-footer p {
    position: absolute;
    right: 0;
    left: 0;
    margin: 0;
    padding: 0;
    color: #000;
    letter-spacing: normal;
    white-space: nowrap;
}

.site-footer__copy {
    top: 6px;
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
}

.site-footer__made {
    top: 27px;
    height: 16px;
    font-family: "FFA Courier", monospace;
    font-size: 12px;
    line-height: 16px;
}

.site-footer__made img {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 2px;
    vertical-align: middle;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .site-footer__youtube {
    position: absolute;
    top: 12px;
    right: 7px;
    display: block;
    width: 21px;
    height: 25px;
    color: #000;
    line-height: 25px;
    text-decoration: none;
}

.site-footer__youtube svg {
    display: block;
    width: 21px;
    height: 21px;
    margin-top: 2px;
    fill: currentColor;
}

/* The five types share the frame; only genuine content differences remain. */
.blog-page--nakshatra .chart-table {
    font-size: 11px;
}

.blog-page--guide .content-f-img > img,
.blog-page--guide .content-f-img > a > img {
    max-width: 360px;
}

.blog-page--list .gif-img img {
    max-width: min(240px, 30vw);
}

/* Protected preview index. */
.blog-index-page {
    min-height: 100vh;
    background: var(--page-background);
}

.preview-index {
    width: 60%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 14vh 0 70px;
    background: var(--paper);
}

.preview-index h1 {
    margin: 0 0 32px;
    color: #222;
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
}

.preview-index__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: blog-list;
}

.preview-index__list li {
    position: relative;
    display: block;
    margin: 0;
    padding: 8px 0 8px 30px;
    counter-increment: blog-list;
}

.preview-index__list li::before {
    position: absolute;
    top: 18px;
    left: 0;
    width: 24px;
    color: #767676;
    font-family: "FFA Courier", monospace;
    font-size: 11px;
    content: counter(blog-list) ".";
}

.preview-index__list a {
    color: #282828;
    font-family: "FFA Lato", Arial, sans-serif;
    font-size: clamp(21px, 1.55vw, 30px);
    font-weight: 400;
    line-height: 1.35;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.preview-index__list span {
    display: inline;
    margin-left: 6px;
    color: var(--muted-ink);
    font-family: "FFA Courier", monospace;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

@media (max-width: 767px) {
    :root {
        --article-width: 100%;
        --nav-height: 44px;
    }

    .navbar-custom .container {
        padding: 0 12px;
    }

    .navbar-brand img {
        width: 37px;
        height: auto;
    }

    .navbar-brand {
        padding-top: 5px;
    }

    .navbar-left {
        gap: 9px;
    }

    .navbar-right {
        gap: 11px;
    }

    .about-class {
        max-width: 125px;
        font-size: 10px !important;
        letter-spacing: 0.8px;
        text-align: left;
    }

    .hero-login {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .intro-body {
        padding: 36px 20px 20px;
    }

    .content-f,
    .content-f-img {
        margin: 20px 0;
    }

    .content-f-img > img,
    .content-f-img > a > img,
    .content-f-img img.left,
    .content-f-img a img.left,
    .content-f-img img.right,
    .content-f-img a img.right {
        float: none;
        width: 100% !important;
        max-width: none;
        margin: 0 0 14px;
    }

    .story_f p,
    .content-f p,
    .content-f-img p {
        letter-spacing: 0.4px;
        text-align: left;
    }

    .chart-table th,
    .chart-table td {
        padding: 4px;
        font-size: 10px;
        line-height: 13px;
    }

    .article-invitation {
        margin-right: 20px;
        margin-left: 20px;
    }

    .site-footer__copy {
        font-size: 10.5px;
    }

    .site-footer__made {
        padding-right: 23px;
        font-size: 9px;
    }

    .site-footer .site-footer__youtube {
        right: 3px;
    }

    .top-button {
        bottom: 12px;
    }

    .preview-index {
        width: 100%;
        margin: 0;
        padding: 11vh 20px 45px;
    }

    .preview-index h1 {
        margin-bottom: 24px;
        font-size: 26px;
    }

    .preview-index__list li {
        padding: 9px 0 9px 25px;
    }

    .preview-index__list li::before {
        top: 13px;
        width: 20px;
    }

    .preview-index__list a {
        font-size: 19px;
    }

    .preview-index__list span { margin-left: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
