/* The New Year page (/new-year-letter) and the small banner that leads to it from the home page in season.
   Mobile first; colours and fonts come from theme.css. No animation. */

/* ---------- the banner on the home page (Pages/Shared/_NewYearBanner.cshtml) ---------- */

.ny-banner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--tint-cool);
    color: var(--ink);
    text-decoration: none;
}

.ny-banner:hover,
.ny-banner:focus-visible {
    border-color: var(--teal);
}

.ny-banner img {
    flex: none;
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.ny-banner__text {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.45;
}

.ny-banner__link {
    display: block;
    color: var(--teal-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 640px) {
    .ny-banner__text { font-size: 16px; }
    .ny-banner__link { display: inline; margin-left: 6px; }
}

/* ---------- the page ---------- */

.ny-hero {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 28px 0 0;
}

.ny-eyebrow {
    margin: 0 0 6px;
    color: var(--terracotta-deep);
    font-family: var(--font-hand);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.ny-hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    color: var(--ink);
}

.ny-hero__lede {
    max-width: 38ch;
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
}

.ny-hero__art {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.ny-hero__art img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 900px) {
    .ny-hero {
        grid-template-columns: minmax(0, 1fr) 520px;
        gap: 40px;
        padding-top: 40px;
    }
}

.ny-section {
    margin: 48px 0 0;
}

.ny-section h2 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    line-height: 1.2;
    color: var(--ink);
}

.ny-section__lede,
.ny-section__note {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
}

.ny-section__note {
    margin: 14px 0 0;
    font-size: 15px;
}

.ny-why {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ny-why li {
    padding: 18px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--card);
}

.ny-why h3 {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--teal-deep);
}

.ny-why p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 760px) {
    .ny-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ny-prompts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 0 0 1.4em;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
}

.ny-prompts li::marker {
    color: var(--terracotta);
    font-weight: 700;
}

@media (min-width: 760px) {
    .ny-prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

.ny-examples {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .ny-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ny-example {
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--letter);
}

.ny-example__label {
    margin: 0 0 8px;
    color: var(--terracotta-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ny-example__text {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
}

/* the choice of New Year's Eve above the letter form */
.ny-write {
    margin-top: 48px;
}

.ny-when {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto 16px;
    padding: 0 4px;
}

.ny-when__label {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.ny-when__choices {
    display: grid;
    gap: 10px;
}

@media (min-width: 640px) {
    .ny-when__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ny-when__choice {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ny-when__choice:hover {
    border-color: var(--teal);
}

.ny-when__choice[aria-pressed="true"] {
    border-color: var(--teal);
    background: var(--tint-cool);
    box-shadow: inset 0 0 0 1px var(--teal);
}

.ny-when__name {
    font-weight: 700;
    font-size: 16px;
}

.ny-when__date {
    color: var(--ink-soft);
    font-size: 15px;
}

.ny-when__note {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- the press page (/press) ---------- */

.press-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 0 0;
}

.press-page h1 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.15;
}

.press-page h2 {
    margin: 36px 0 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.press-page p,
.press-page li {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.press-page ul:not(.press-pictures) {
    padding-left: 1.2em;
}

.press-page a {
    color: var(--teal);
    font-weight: 600;
}

.press-pictures {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .press-pictures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.press-pictures figure {
    margin: 0;
}

.press-pictures img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.press-pictures figcaption {
    margin-top: 6px;
    font-size: 14px;
}
