body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header, main, footer {
    background-color: #ffffff;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: #0b3d91;
    margin-top: 0;
}

header p.tagline {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333333;
}

p.mission-statement {
    font-size: 1rem;
    font-style: italic;
    color: #555555;
    margin-top: 0.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.badge-link {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.badge-link .external-link-icon {
    flex-shrink: 0;
    color: #0056b3;
}

a {
    color: #0056b3;
    text-decoration: underline;
    font-weight: 500;
}

a:hover {
    color: #003d82;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.reveal-contact:focus-visible {
    outline: 3px solid #0b3d91;
    outline-offset: 2px;
    text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.expertise-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.expertise-layout > ul {
    flex: 1 1 0%;
    min-width: 0;
}

.credential-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #d7dde3;
    border-radius: 8px;
}

.brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.mitsu-tomoe-wrapper {
    position: relative;
    display: flex;
    flex-shrink: 0;
    font-size: 1.5rem;
    width: 4.5em;
    height: 4.5em;
}

.header-logo {
    width: 4.5em;
    height: 4.5em;
    display: block;
    animation: rotate 16s linear infinite;
    transform-origin: center;
}

.header-logo .sub-tomoe {
    transform-box: fill-box;
    transform-origin: center;
    animation: rotate-flipped 8s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-flipped {
    from {
        transform: scaleX(-1) rotate(0deg);
    }

    to {
        transform: scaleX(-1) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-logo,
    .header-logo .sub-tomoe {
        animation: none;
    }

    .header-logo .sub-tomoe {
        transform: scaleX(-1);
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0.75rem;
    }

    header, main, footer {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
    }

    .expertise-layout {
        flex-direction: column;
    }

    .mitsu-tomoe-wrapper,
    .header-logo {
        width: 3em;
        height: 3em;
    }
}

.cta-button {
    display: inline-block;
    background-color: #0b3d91;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 1rem;
}

.cta-button:hover, .cta-button:focus {
    background-color: #072a66;
    color: #ffffff;
}

footer {
    text-align: center;
    font-size: 0.95rem;
    color: #555555;
}

footer h2 {
    font-size: 1.5rem;
}

footer address {
    font-style: normal;
}

.contact-reveal {
    margin: 1.25rem 0 2rem;
}

.cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

.turnstile-hint {
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.reveal-contact {
    min-height: 2.75rem;
    border: 2px solid #0b3d91;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: #0b3d91;
    background-color: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.reveal-contact:hover,
.reveal-contact:focus-visible {
    color: #ffffff;
    background-color: #0b3d91;
}

.revealed-contact {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
}


/* ---- Site navigation ---- */

.site-nav {
    margin-top: 1.5rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin-bottom: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background-color: #ffffff;
    color: #0b3d91;
    padding: 0.75rem 1rem;
    z-index: 10;
}

.skip-link:focus {
    left: 0;
}

/* ---- Long-form articles ---- */

article {
    max-width: 38em;
}

article h2 {
    margin-top: 2.5rem;
}

article p {
    margin-bottom: 1.25rem;
}

article figure {
    margin: 1.5rem 0;
}

article figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555555;
}

article blockquote {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 4px solid #0b3d91;
    font-style: italic;
    color: #333333;
}

article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background-color: #eef1f4;
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

.article-meta {
    color: #555555;
    font-size: 0.95rem;
}

.article-list {
    list-style: none;
    padding-left: 0;
}

.article-list li {
    margin-bottom: 2rem;
}

.article-list h3 {
    margin-bottom: 0.25rem;
}

.author-note {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d7dde3;
    font-size: 0.95rem;
    color: #555555;
}
