
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #1d1d1f; /* Apple's specific near-black */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: 50px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* The classic glassmorphism effect */
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.overline {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #86868b; /* Subtle grey text */
    margin-bottom: 8px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 21px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
}

/* Article Content */
article {
    font-size: 18px;
    color: #333336;
}

article p {
    margin-bottom: 24px;
}

h2 {
    font-size: 28px;
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

blockquote {
    font-style: italic;
    font-size: 24px;
    border-left: 3px solid #1d1d1f;
    padding-left: 20px;
    margin: 40px 0;
    color: #1d1d1f;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid #d2d2d7;
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    color: #86868b;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    h1 { font-size: 32px; }
    .subtitle { font-size: 18px; }
}


/* Blockquotes (Org: #+BEGIN_QUOTE) */
blockquote {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #515154;
    border-left: 3px solid #0071e3; /* Apple Blue accent */
    padding: 10px 0 10px 24px;
    margin: 40px 0;
    font-style: italic;
}

/* Inline Code */
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: #f5f5f7;
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-size: 85%;
    color: #bf4800; /* Subtle rust for contrast, common in code docs */
}

/* Code Blocks (Org: #+BEGIN_SRC) */
pre {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid #d2d2d7;
}

pre code {
    background: none;
    padding: 0;
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.5;
}

/* Tables (Org: | column | column |) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 16px;
    border-bottom: 1px solid #d2d2d7;
}

th {
    text-align: left;
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid #d2d2d7;
    color: #1d1d1f;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f7;
    color: #424245;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fafafa; /* Subtle hover state */
}

/* Lists (Org: - item or 1. item) */
ul, ol {
    margin: 24px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
}

/* Horizontal Rule (Org: ----) */
hr {
    border: 0;
    border-top: 1px solid #d2d2d7;
    margin: 48px 0;
}
