/* ========================================
   GEORGEDELAIR.COM-STYLE (editorial index)
   ======================================== */

:root {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --muted: rgba(10, 10, 10, 0.68);

    --container-max: 1400px;
    --gutter: clamp(24px, 5vw, 72px);

    --rule: 2px;
    --rule-thick: 4px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
}

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

a:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 4px;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ========================================
   Masthead
   ======================================== */
.masthead {
    padding-top: clamp(24px, 4vw, 56px);
}

.masthead-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 24px;
}

.masthead-left .brand {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav {
    margin-top: 18px;
    display: grid;
    gap: 6px;
}

.nav-link {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-link.nav-experiments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    color: rgba(10, 10, 10, 0.5);
}

.nav-link.nav-experiments:hover {
    color: var(--fg);
}

/* Center social icons */
.masthead-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding-top: 2px;
}

.icon-link {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
}

.icon-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.icon-link:hover {
    transform: translateY(-1px);
}

/* Right column kept empty for alignment */
.masthead-right {
    height: 1px;
}

/* ========================================
   Rules
   ======================================== */
.rule {
    height: var(--rule);
    background: var(--fg);
    margin-top: clamp(24px, 4vw, 56px);
}

.rule-thick {
    height: var(--rule-thick);
}

/* ========================================
   Index / Entries
   ======================================== */
.index {
    margin-top: 0;
}

.section-header-only {
    padding: clamp(18px, 3.5vw, 44px) 0;
    border-bottom: var(--rule) solid var(--fg);
}

.entry {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: clamp(16px, 3vw, 48px);
    padding: clamp(18px, 3.5vw, 44px) 0;
    border-bottom: var(--rule) solid var(--fg);
}

.entry-title {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.entry-meta {
    min-width: 240px;
    text-align: right;
    padding-top: 6px;
}

.entry-meta-top {
    font-size: 18px;
    font-weight: 400;
}

.entry-meta-bottom {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.entry:hover .entry-title {
    text-decoration: underline;
    text-underline-offset: 12px;
}

/* ========================================
   Sections (About / Services / Contact)
   ======================================== */
.section {
    padding: clamp(28px, 4vw, 56px) 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(20px, 4vw, 64px);
    align-items: start;
}

.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-body {
    max-width: 78ch;
}

.section-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.section-body strong {
    color: var(--fg);
    font-weight: 700;
}

.lede {
    font-size: 22px !important;
    line-height: 1.5 !important;
    color: var(--fg) !important;
    margin-bottom: 18px !important;
}

/* Services list */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.service {
    padding: 18px 0;
    border-top: 1px solid rgba(10, 10, 10, 0.18);
}

.service:first-child {
    border-top: 1px solid rgba(10, 10, 10, 0.18);
}

.service-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--fg);
}

.service-desc {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 18px 0 28px;
}

.contact-block .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--muted);
}

.contact-link {
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-social {
    margin-top: 28px;
}

.contact-social .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--muted);
}

.contact-social .social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-social .icon-link {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
}

.contact-social .icon-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-social .icon-link:hover {
    transform: translateY(-2px);
}

/* Form */
.form {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.form-row .label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--muted);
}

.input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid rgba(10, 10, 10, 0.28);
    background: transparent;
    font-family: var(--font);
    font-size: 16px;
    color: var(--fg);
}

.input:focus {
    outline: none;
    border-color: rgba(10, 10, 10, 0.9);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.button {
    justify-self: start;
    padding: 12px 18px;
    border: 2px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.button:hover {
    background: transparent;
    color: var(--fg);
}

/* Footer */
.footer {
    padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 90px);
    display: flex;
    justify-content: center;
}

.footer p {
    margin: 0;
    color: var(--fg);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .masthead-grid {
        grid-template-columns: 1fr;
    }

    .masthead-center {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .entry {
        grid-template-columns: 1fr;
    }

    .entry-meta {
        text-align: left;
        min-width: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Blog Post
   ======================================== */
.post {
    padding: clamp(28px, 4vw, 56px) 0;
}

.post-header {
    margin-bottom: clamp(32px, 4vw, 56px);
}

.post-title {
    margin: 0 0 18px 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.post-meta {
    display: flex;
    gap: 24px;
    font-size: 16px;
    color: var(--muted);
}

.post-date {
    font-weight: 400;
}

.post-reading-time {
    font-weight: 400;
}

.post-content {
    max-width: 65ch;
    font-size: 20px;
    line-height: 1.7;
    color: var(--muted);
}

.post-content p {
    margin: 0 0 24px 0;
}

.post-content p:first-child {
    font-size: 24px;
    line-height: 1.5;
    color: var(--fg);
    margin-bottom: 28px;
}

.post-content h2 {
    margin: 48px 0 24px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.post-content h3 {
    margin: 36px 0 18px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--fg);
}

.post-content a {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-content a:hover {
    text-decoration-thickness: 2px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.post-content li {
    margin: 0 0 8px 0;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    background: rgba(10, 10, 10, 0.06);
    border-radius: 3px;
}

.post-content pre {
    margin: 0 0 24px 0;
    padding: 20px;
    background: rgba(10, 10, 10, 0.03);
    border-left: 3px solid var(--fg);
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 3px solid var(--fg);
    font-style: italic;
    color: var(--muted);
}

.post-nav {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: clamp(28px, 4vw, 48px);
    border-top: var(--rule) solid var(--fg);
}

.post-nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
}

.post-nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ========================================
   Booking / Meet Page
   ======================================== */
.booking-section {
    padding: clamp(28px, 4vw, 56px) 0;
}

.booking-embed {
    width: 100%;
    min-height: 600px;
}

.booking-embed iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

.booking-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 2px dashed rgba(10, 10, 10, 0.2);
    border-radius: 8px;
    text-align: center;
    padding: 48px;
}

.booking-placeholder p {
    margin: 0;
    color: var(--muted);
}

.booking-placeholder .booking-instructions {
    margin-top: 12px;
    font-size: 14px;
}