/*
Theme Name: Armstrong Thanksgiving
Description: Private gathering theme; visual direction to be based on the event flyers.
Version: 0.2.6
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: armstrong-thanksgiving
*/

:root {
  --at-cream: #f6ede1;
  --at-orange: #b34717;
  --at-coral: #b33f31;
  --at-mustard: #f4b62f;
  --at-olive: #706e3d;
  --at-brown: #4c2518;
  --at-ink: #2f201a;
  --at-shadow: 0 18px 45px rgba(76, 37, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--at-cream);
  color: var(--at-ink);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}
h1, h2, h3, h4, h5, h6 { font-family: Georgia, 'Times New Roman', serif; font-kerning: normal; font-weight: 700; letter-spacing: -.025em; }
input, select, textarea, button { font-family: inherit; }
a { color: var(--at-brown); text-decoration-thickness: .12em; text-underline-offset: .16em; }
a:hover { color: var(--at-orange); }

.at-site-header {
  position: relative;
  z-index: 2;
  padding: 1.2rem clamp(1rem, 4vw, 4rem) 1rem;
  border-bottom: 1px solid rgba(76, 37, 24, .12);
}
.at-header-inner { position: relative; z-index: 1; max-width: 76rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.at-wordmark { display: inline-block; white-space: nowrap; text-decoration: none; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.04em; color: var(--at-orange); }
.at-wordmark span { color: var(--at-brown); }
.at-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; font-size: .86rem; font-weight: 700; }
.at-nav a { display: inline-block; padding: .45rem .7rem; color: var(--at-brown); text-decoration: none; border-radius: 999px; }
.at-nav a:hover, .at-nav a:focus-visible { background: var(--at-orange); color: #fff; }

.at-main { min-height: 70vh; }
.at-shell { width: min(100% - 2rem, 76rem); margin: 0 auto; }
.at-hero { position: relative; padding: clamp(3.5rem, 9vw, 8rem) 0 5rem; }
.at-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(16rem, .95fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.at-kicker { margin: 0 0 1rem; color: var(--at-orange); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.home .at-wordmark { display: none; }
.home .at-header-inner { justify-content: flex-end; }
.at-hero h1 { margin: 0; color: var(--at-orange); font-size: clamp(3.5rem, 11vw, 9.5rem); line-height: .86; letter-spacing: -.045em; }
.at-hero h1 > span, .at-hero h1 > em { display: inline-block; white-space: nowrap; }
.at-hero h1 em { color: var(--at-coral); font-family: Georgia, serif; font-size: .32em; line-height: 1.5; letter-spacing: -.04em; font-style: normal; text-transform: lowercase; }
.at-lead { max-width: 36rem; margin: 1.8rem 0 0; color: var(--at-brown); font-family: Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.at-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.at-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1.15rem; border-radius: 999px; background: var(--at-coral); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 0 rgba(76, 37, 24, .12); }
.at-button:hover, .at-button:focus-visible { background: var(--at-brown); color: #fff; transform: translateY(-1px); }
.at-button.is-secondary { background: var(--at-olive); }
.at-illustration { position: relative; min-height: 22rem; border-radius: 48% 52% 45% 55% / 42% 44% 56% 58%; background: var(--at-orange); box-shadow: var(--at-shadow); transform: rotate(3deg); }
.at-illustration::before { content: ""; position: absolute; inset: 11% 15%; border: 1.4rem solid var(--at-mustard); border-radius: 55% 45% 58% 42%; transform: rotate(-11deg); }
.at-illustration::after { content: "✦"; position: absolute; top: 18%; right: 18%; color: #fff; font-size: 3.5rem; transform: rotate(-12deg); }
.at-date-card { position: absolute; left: 12%; bottom: 8%; padding: 1rem 1.4rem; border-radius: 1.6rem; background: var(--at-olive); color: #fff; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: .95; text-align: center; transform: rotate(-6deg); }
.at-date-card small { display: block; margin-top: .5rem; font-family: inherit; font-size: .45em; letter-spacing: .04em; }

.at-section { padding: 4rem 0; }
.at-section.is-olive { background: var(--at-olive); color: #fff; }
.at-section.is-olive a { color: #fff; }
.at-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.at-section-heading h2 { margin: 0; color: var(--at-orange); font-size: clamp(2rem, 5vw, 4rem); line-height: .92; letter-spacing: -.07em; }
.is-olive .at-section-heading h2 { color: #fff; }
.at-section-heading p { max-width: 28rem; margin: 0; font-family: Georgia, serif; }
.at-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.at-card { position: relative; min-height: 13rem; padding: 1.4rem; border: 1px solid rgba(76, 37, 24, .13); border-radius: 1.5rem; background: rgba(255,255,255,.42); box-shadow: 0 8px 25px rgba(76,37,24,.06); }
.at-card:nth-child(2) { transform: translateY(1rem) rotate(1deg); background: #fff8ef; }
.at-card:nth-child(3) { transform: rotate(-1deg); background: #f4dfbd; }
.at-card h3 { margin: 0 0 .5rem; color: var(--at-brown); font-size: 1.45rem; }
.at-card p, .at-card-link { color: var(--at-brown); }
.at-section.is-olive .at-card-link { color: var(--at-brown); }
.at-card .at-card-link { position: absolute; right: 1.3rem; bottom: 1.1rem; font-weight: 800; }
.at-quote { max-width: 45rem; margin: 0 auto; color: var(--at-brown); font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.12; text-align: center; }

.at-page-header { padding: 4.5rem 0 2rem; }
.at-page-header h1 { margin: 0; color: var(--at-orange); font-size: clamp(3rem, 8vw, 6.5rem); line-height: .92; letter-spacing: -.045em; }
.at-page-header p { max-width: 38rem; margin: 1.25rem 0 0; font-family: Georgia, serif; font-size: 1.2rem; }
.at-content-card { padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1.5rem; background: rgba(255,255,255,.5); box-shadow: var(--at-shadow); }
.at-content-card h2 { color: var(--at-brown); }
.at-not-found { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(4rem, 12vw, 8rem) 0; }
.at-not-found h1 { max-width: 46rem; margin: 0; color: var(--at-orange); font-size: clamp(3rem, 9vw, 7rem); line-height: .92; }
.at-not-found > p:not(.at-kicker) { max-width: 38rem; margin: 1.4rem 0 0; color: var(--at-brown); font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.at-not-found .at-actions { margin-top: 2rem; }
.at-form-note { padding: 1rem 1.25rem; border-left: .4rem solid var(--at-coral); background: #fff8ef; }
.at-footer { margin-top: 4rem; padding: 2rem 1rem; background: var(--at-brown); color: #fff; }
.at-footer-inner { width: min(100%, 76rem); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.at-footer a { color: #fff; }
.at-footer-links:empty { display: none; }
.at-sign-out { text-underline-offset: .18em; }

/* bbPress: let the classic forum structure borrow the flyer palette. */
#bbpress-forums, .bbp-user-page { color: var(--at-ink); }
#bbpress-forums .bbp-breadcrumb { display: none; }
#bbpress-forums .bbp-forum-description, #bbpress-forums .bbp-topic-description,
#bbpress-forums .bbp-pagination-count,
#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-topic-form .bbp-template-notice,
#bbpress-forums .bbp-forum-topic-count, #bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-forum-freshness, #bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count, #bbpress-forums .bbp-topic-freshness,
#bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-author-role,
#bbpress-forums .bbp-reply-ip, #bbpress-forums .bbp-admin-links,
#bbpress-forums .bbp-subscribe-link, #bbpress-forums .subscription-toggle,
#bbpress-forums #subscription-toggle, #bbpress-forums #favorite-toggle,
#bbpress-forums [id^="subscribe-"], #bbpress-forums .bbp-topic-favorite-link,
#bbpress-forums .favorite-toggle, #bbpress-forums [id^="favorite-"],
#bbpress-forums .bbp-reply-permalink,
#bbpress-forums li.bbp-footer, #bbpress-forums .bbp-topic-tags,
#bbpress-forums .bbp-topic-type, #bbpress-forums .bbp-topic-status,
#bbpress-forums .bbp-topic-form .bbp-topic-tags,
#bbpress-forums .bbp-topic-form .bbp-topic-type,
#bbpress-forums .bbp-topic-form .bbp-topic-status { display: none; }
#bbpress-forums p:has(#bbp_topic_tags),
#bbpress-forums p:has(#bbp_stick_topic_select),
#bbpress-forums p:has(#bbp_topic_status_select) { display: none; }
#bbpress-forums .bbp-forum-info, #bbpress-forums .bbp-topic-title { width: 100%; }
#bbpress-forums .bbp-reply-content, #bbpress-forums .bbp-topic-content { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; }
#bbpress-forums .bbp-author-name { font-weight: 700; }
#bbpress-forums a { color: var(--at-brown); }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { color: var(--at-orange); font-weight: 800; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--at-olive); color: #fff; border: 0; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { background: rgba(255,255,255,.48); border-color: rgba(76,37,24,.12); }
#bbpress-forums fieldset.bbp-form { padding: 1rem; border: 1px solid rgba(76,37,24,.18); border-radius: 1rem; background: rgba(255,255,255,.48); }
#bbpress-forums input, #bbpress-forums textarea, #bbpress-forums select { max-width: 100%; border: 1px solid rgba(76,37,24,.25); border-radius: .6rem; background: #fffaf4; }
#bbpress-forums input#bbp_topic_submit, #bbpress-forums input#bbp_reply_submit { border: 0; border-radius: 999px; background: var(--at-coral); color: #fff; font-weight: 800; }

/* WP Photo Album Plus: stable plugin selectors, kept in the theme for updates. */
.wppa-container, .wppa-box { color: var(--at-ink); font-family: inherit; }
.wppa-container a, .wppa-box a { color: var(--at-brown); }
.wppa-thumb, .wppa-cover-box { border-radius: 1rem; overflow: hidden; box-shadow: none !important; }
.wppa-title, .wppa-album-title { color: var(--at-orange); font-weight: 800; }
.wppa-button, .wppa-upload-button { border: 0; border-radius: 999px; background: var(--at-coral); color: #fff; font-weight: 800; }
.wppa-container .wppa-nav.wppa-bc { background: transparent !important; border: 0 !important; padding: 0 0 .75rem !important; }
.wppa-container .wppa-cover-box { background: #fff8ef !important; border: 1px solid rgba(76,37,24,.14) !important; }
.wppa-container .wppa-box { background: rgba(255,255,255,.48) !important; border-color: rgba(76,37,24,.14) !important; border-radius: 1rem !important; box-shadow: none !important; }
.wppa-container .wppa-cover-box, .wppa-container .wppa-thumb { border-radius: 1rem !important; box-shadow: none !important; }
.wppa-container .wppa-title { color: var(--at-orange) !important; }
.wppa-container .wppa-cover-box * { max-width: 100%; overflow-wrap: break-word; word-break: normal; }
.wppa-container .wppa-box-text-desc { display: none !important; }
.wppa-container .wppa-nav, .wppa-container .wppa-bc, .wppa-container .wppa-metadata,
.wppa-container .wppa-owner, .wppa-container .wppa-help, .wppa-container .wppa-comment-count { display: none !important; }
.wppa-container .wppa-thumb, .wppa-container .wppa-cover-box { background: #fffaf4 !important; }
.wppa-container input, .wppa-container select, .wppa-container textarea { font: inherit; border-radius: .7rem; }
.wppa-container button, .wppa-container input[type="submit"], .wppa-container .wppa-button, .wppa-container .wppa-upload-button { min-height: 2.7rem; padding: .65rem 1.1rem; }

/* A topic is still useful, but the forum should feel like a small gathering
 * board rather than a general-purpose message-board administration screen. */
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { font-family: Georgia, 'Times New Roman', serif; }
#bbpress-forums .bbp-form { box-shadow: none; }
#bbpress-forums li.bbp-header > *, #bbpress-forums li.bbp-footer > * { font-size: .95rem; line-height: 1.35; }
#bbpress-forums .bbp-meta a.bbp-reply-permalink { display: none !important; }

@media (max-width: 850px) {
  #bbpress-forums .bbp-reply-author { width: auto; float: none; min-height: 0; padding: .8rem 0 0; text-align: left; }
  #bbpress-forums .bbp-reply-content { margin-left: 0; padding: 1rem 0; }
  #bbpress-forums .bbp-body div.bbp-reply-content { margin-left: 0; }
}

@media (max-width: 850px) {
  .at-header-inner, .at-footer-inner { align-items: flex-start; flex-direction: column; }
  .at-nav { justify-content: flex-start; }
  .at-hero { padding-top: 3rem; }
  .at-hero-grid { grid-template-columns: 1fr; }
  .at-illustration { min-height: 16rem; max-width: 25rem; width: 90%; margin: 0 auto; }
  .at-cards { grid-template-columns: 1fr; }
  .at-card:nth-child(2) { transform: none; }
  .at-section-heading { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 851px) and (max-width: 1200px) {
  .at-hero { padding: 4.5rem 0 3.5rem; }
  .at-hero-grid { gap: 3rem; }
  .at-hero h1 { font-size: clamp(4rem, 9vw, 7rem); }
  .at-illustration { min-height: 18rem; }
}

:focus-visible { outline: 3px solid var(--at-mustard); outline-offset: 3px; }
