/* Daily Smile News: subpages. Warm white, with a sunflower page hero on a smile-curved edge. */

:root {
    --sunflower: #FFC83D;
    --sunflower-soft: #FFEDB8;
    --espresso: #241A12;
    --espresso-soft: #5A4C40;
    --espresso-line: #DDD2C1;
    --sky: #CFEAF7;
    --tomato: #D1341C;
    --tomato-deep: #A92814;
    --white: #FFFFFF;
    --warm: #FFF8E6;
    --display: "Rozha One", Georgia, "Times New Roman", serif;
    --body: "Wix Madefor Text", "Segoe UI", Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
    margin: 0;
    background: var(--warm);
    color: var(--espresso);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: clip;
}

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

h1, h2, h3, p, dl, dd { margin: 0; }

a { color: var(--tomato-deep); text-underline-offset: 3px; overflow-wrap: anywhere; }

:focus-visible {
    outline: 3px solid var(--espresso);
    outline-offset: 2px;
}

.site-footer :focus-visible { outline-color: var(--sunflower); }

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

/* Header */
.site-header { position: static; background: var(--warm); }

.header-inner { padding-top: 16px; padding-bottom: 16px; }

.logo-link { display: inline-block; }

.logo-link img { width: auto; height: 52px; }

/* Page hero: a sunflower bowl with a pale sun rising inside it */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 116px);
    background: var(--sunflower);
    border-radius: 0 0 50% 50% / 0 0 clamp(36px, 7vw, 96px) clamp(36px, 7vw, 96px);
    text-align: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: -1;
    width: clamp(340px, 50vw, 680px);
    aspect-ratio: 2 / 1;
    border-radius: 999px 999px 0 0;
    background: var(--sunflower-soft);
    transform: translateX(-50%);
}

.page-hero .eyebrow {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 16px;
}

.page-hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    line-height: 1.04;
    text-wrap: balance;
}

.hero-copy {
    max-width: 62ch;
    margin: 14px auto 0;
    font-size: clamp(17px, 1.7vw, 19px);
    line-height: 1.5;
}

/* Reading layout: sections hang off a timeline, details sit to the right */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 40px clamp(36px, 6vw, 80px);
    align-items: start;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.content-main { max-width: 70ch; min-width: 0; }

.content-main > .eyebrow {
    margin: 0 0 22px;
    font-weight: 500;
    font-size: 16px;
    color: var(--espresso-soft);
}

.section {
    position: relative;
    padding: 0 0 clamp(26px, 3vw, 36px) 40px;
}

.section::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: -10px;
    width: 3px;
    background: var(--espresso);
}

.section:last-child::before { display: none; }

.section::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 17px;
    height: 17px;
    border: 3px solid var(--espresso);
    border-radius: 50%;
    background: var(--sunflower);
}

.section h2, .contact-panel h2, .side-panel h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    margin-bottom: 8px;
}

.section h3, .contact-panel h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0 4px;
}

.section p + p { margin-top: .8em; }

/* Company details */
.side-panel {
    position: sticky;
    top: 24px;
    min-width: 0;
    padding: 24px;
    border-radius: 6px 34px 34px 34px;
    background: var(--white);
}

.detail-list { font-size: 16px; line-height: 1.45; }

.detail-list > div { padding: 10px 0; border-top: 1.5px solid var(--espresso-line); }

.detail-list dt { font-weight: 700; }

.notice {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--sky);
    font-size: 15px;
    line-height: 1.5;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.contact-panel {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 6px 34px 34px 34px;
    background: var(--white);
}

.contact-panel:first-child {
    background: var(--sky);
}

.contact-panel:first-child .detail-list > div { border-top-color: var(--espresso); }

form { margin-top: 18px; }

label {
    display: block;
    margin: 14px 0 4px;
    font-weight: 700;
    font-size: 16px;
}

input, textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 18px;
    border: 2px solid var(--espresso);
    border-radius: 24px;
    background: var(--warm);
    color: var(--espresso);
    font: inherit;
    font-size: 16px;
}

textarea { resize: vertical; }

button {
    min-height: 50px;
    margin-top: 18px;
    padding: 10px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--tomato);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover { background: var(--tomato-deep); }

/* Footer */
.site-footer {
    padding: clamp(36px, 5vw, 56px) 0;
    background: var(--espresso);
    color: var(--warm);
    font-size: 15px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    margin-bottom: 16px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--white);
    font-size: 16px;
}

.footer-nav a:hover { color: var(--sunflower); }

.footer-note + .footer-note { margin-top: 8px; }

@media (max-width: 820px) {
    .content-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .side-panel { position: static; }
    .content-main { max-width: none; }
    .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

@media (max-width: 400px) {
    .footer-nav { grid-template-columns: minmax(0, 1fr); }
}
