/*
Theme Name: Simple Elegant Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A simple and elegant WordPress theme inspired by the spirit of Twenty Twenty-One.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: simple-elegant-theme
*/

:root {
    --background: #d1e4dd;
    --text: #1f2a26;
    --muted: #5d6a65;
    --link: #1f2a26;
    --link-hover: #000000;

    --content-width: 740px;
    --wide-width: 1120px;

    --space-xs: 0.35rem;
    --space-sm: 0.6rem;
    --space-md: 0.9rem;
    --space-lg: 1.2rem;
    --space-xl: 1.8rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Ubuntu Mono", "Courier New", Courier, monospace;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section-inner {
    width: min(100% - 2rem, var(--wide-width));
    margin-left: auto;
    margin-right: auto;
}

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

.site-header .section-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.branding {
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.1;
    font-weight: 400;
}

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

.site-subtitle {
    margin: 0.22rem 0 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--muted);
}

/* Menus */
.top-navigation ul,
.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-navigation a,
.footer-navigation a {
    font-size: 0.95rem;
}

/* Main content */
.site-main {
    flex: 1;
    padding: 0.15rem 0 0.55rem;
}

.content-area {
    width: min(100% - 2rem, var(--wide-width));
    margin-left: auto;
    margin-right: auto;
}

.entry-content,
.page-content,
.post-content {
    max-width: var(--wide-width);
    margin-left: auto;
    margin-right: auto;
}

.entry-content > *,
.page-content > *,
.post-content > * {
    max-width: var(--wide-width);
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .alignwide,
.page-content > .alignwide,
.post-content > .alignwide {
    max-width: var(--wide-width);
}

.entry-content > .alignfull,
.page-content > .alignfull,
.post-content > .alignfull {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.entry-content > * + *,
.page-content > * + *,
.post-content > * + * {
    margin-top: 1rem;
}

/* Titles */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.4em;
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0;
}

ul,
ol {
    padding-left: 1.2rem;
}

/* Gutenberg blocks */
.wp-block-group,
.wp-block-columns,
.wp-block-image,
.wp-block-cover,
.wp-block-media-text,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-table,
.wp-block-embed {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Entry title */
.entry-title {
    max-width: var(--wide-width);
    margin: 0 auto 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 400;
}

/* Footer */
.site-footer {
    padding: 0.55rem 0 1rem;
}

.site-footer .section-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-navigation {
    margin-left: auto;
}

.footer-navigation .social-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

.footer-navigation .social-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-navigation .social-menu a:hover,
.footer-navigation .social-menu a:focus {
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-navigation .social-menu svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.footer-navigation .social-menu .menu-item-social--linkedin svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Forms */
input,
textarea,
select,
button {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

/* Accessibility */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile */
@media (max-width: 720px) {
    .site-header .section-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-navigation ul,
    .footer-navigation ul,
    .footer-navigation .social-menu {
        gap: 0.75rem;
    }
}
