/* ===== memory card — case study theme ===== */
:root {
  --cs-bg: #0d0d0d;
  --cs-text: #c9c9c9;
  --cs-dim: #7d7d7d;
  --cs-bright: #f2f2f2;
  --cs-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body,
body .wp-site-blocks,
.wp-block-post-title,
.wp-block-site-title,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cs-mono);
}

body {
  background-color: var(--cs-bg);
  color: var(--cs-text);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---- single post hero ---- */
.single .wp-block-post-featured-image {
  margin-bottom: 3.5rem;
}

.single .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single .wp-block-post-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: var(--cs-bright);
  margin: 0 0 3.5rem;
}

/* ---- two column case study body ---- */
.case-study {
  gap: 3.5rem;
}

.case-study .cs-meta {
  text-align: right;
}

.case-study .cs-meta p {
  margin: 0;
}

.case-study .cs-meta .cs-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-dim);
  margin-bottom: 0.35rem;
}

.case-study .cs-meta .cs-value {
  font-size: 1.7rem;
  line-height: 1.1;
  color: #a5a5a5;
  margin-bottom: 2.6rem;
}

.case-study .cs-body p,
.case-study .cs-body li {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--cs-text);
}

.case-study .cs-body p {
  margin: 0 0 2rem;
}

.case-study .cs-body h2,
.case-study .cs-body h3,
.case-study .cs-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-bright);
  margin: 3rem 0 1.2rem;
}

.case-study .cs-body ul {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
}

.case-study .cs-body li {
  margin-bottom: 0.5rem;
}

@media (max-width: 781px) {
  .case-study .cs-meta {
    text-align: left;
  }
  .case-study .cs-meta .cs-value {
    margin-bottom: 1.6rem;
  }
}


/* ---- hero sizing ---- */
.single .wp-block-post-featured-image img {
  max-height: 74vh;
  object-fit: cover;
  object-position: center;
}

/* ---- default post body typography ---- */
.single .wp-block-post-content p,
.single .wp-block-post-content li {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--cs-text);
}

.single .wp-block-post-content h2,
.single .wp-block-post-content h3,
.single .wp-block-post-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-bright);
  margin: 3rem 0 1.2rem;
}

.single .wp-block-post-content hr,
.single .wp-block-separator {
  border: 0;
  border-top: 1px solid #2a2a2a;
  margin: 3rem 0;
}

.single .wp-block-post-content figcaption {
  font-size: 0.85rem;
  color: var(--cs-dim);
}


/* ===== engagement: subscribe, comments, likes ===== */
.cs-engage {
  margin-top: 6rem;
}

.cs-rule,
.cs-engage .wp-block-separator {
  border: 0;
  border-top: 1px solid #232323;
  opacity: 1;
  margin: 0;
}

.cs-subscribe {
  margin: 3.5rem 0;
}

.cs-subscribe h3,
.cs-comments .wp-block-comments-title {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-dim);
  margin: 0 0 1.6rem;
}

/* --- subscribe form --- */
.wp-block-jetpack-subscriptions__form,
.wp-block-jetpack-subscriptions form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wp-block-jetpack-subscriptions input[type="email"],
.cs-comments input[type="text"],
.cs-comments input[type="email"],
.cs-comments input[type="url"],
.cs-comments textarea {
  font-family: var(--cs-mono) !important;
  font-size: 0.95rem !important;
  background: transparent !important;
  color: var(--cs-text) !important;
  border: 1px solid #232323 !important;
  border-radius: 2px !important;
  padding: 0.85rem 1rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
}

.wp-block-jetpack-subscriptions input[type="email"]::placeholder,
.cs-comments textarea::placeholder {
  color: #5a5a5a;
}

.wp-block-jetpack-subscriptions input[type="email"]:focus,
.cs-comments input:focus,
.cs-comments textarea:focus {
  border-color: #5a5a5a !important;
  outline: none !important;
}

.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions .wp-block-button__link,
.cs-comments .form-submit input[type="submit"],
.cs-comments .wp-block-button__link {
  font-family: var(--cs-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  color: var(--cs-bright) !important;
  border: 1px solid #4a4a4a !important;
  border-radius: 2px !important;
  padding: 0.85rem 1.6rem !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wp-block-jetpack-subscriptions button:hover,
.cs-comments .form-submit input[type="submit"]:hover {
  background: #1a1a1a !important;
  border-color: #7a7a7a !important;
}

/* --- comments --- */
.cs-comments {
  margin-top: 3.5rem;
}

.cs-comment {
  padding: 1.6rem 0;
  border-bottom: 1px solid #1c1c1c;
}

.cs-comment-meta {
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.cs-comment .wp-block-comment-author-name,
.cs-comment .wp-block-comment-author-name a {
  font-size: 0.9rem;
  color: var(--cs-bright);
  text-decoration: none;
}

.cs-comment .wp-block-comment-date,
.cs-comment .wp-block-comment-date a {
  font-size: 0.75rem;
  color: var(--cs-dim);
  text-decoration: none;
}

.cs-comment .wp-block-comment-content p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--cs-text);
  margin: 0 0 0.8rem;
}

.cs-comment .wp-block-comment-reply-link a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-dim);
}

.cs-comments .comment-form {
  margin-top: 2.5rem;
}

.cs-comments .comment-form label,
.cs-comments .comment-notes,
.cs-comments .comment-form-cookies-consent label {
  font-size: 0.78rem;
  color: var(--cs-dim);
}

.cs-comments .comment-reply-title {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-dim);
}

.cs-comments textarea {
  width: 100%;
  min-height: 8rem;
}

/* --- jetpack likes --- */
.sd-title,
.jetpack-likes-widget-wrapper .sd-title {
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-dim) !important;
}

.jetpack-likes-widget-wrapper {
  margin: 2.5rem 0 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.jetpack-likes-widget-wrapper:hover {
  opacity: 1;
}

.sharedaddy.sd-block,
.sharedaddy h3.sd-title {
  border: 0 !important;
}

@media (max-width: 600px) {
  .wp-block-jetpack-subscriptions__form,
  .wp-block-jetpack-subscriptions form {
    flex-direction: column;
  }
  .wp-block-jetpack-subscriptions input[type="email"],
  .wp-block-jetpack-subscriptions button {
    width: 100%;
  }
}


/* --- Turkish locale: only uppercase text we author ourselves --- */
.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions .wp-block-button__link,
.cs-comments .form-submit input[type="submit"],
.cs-comments .comment-reply-title,
.cs-comments .wp-block-comments-title,
.cs-comment .wp-block-comment-reply-link a {
  text-transform: none !important;
  letter-spacing: 0.06em !important;
}

.cs-comments .wp-block-comments-title,
.cs-comments .comment-reply-title {
  font-size: 0.82rem;
  color: var(--cs-dim);
}

/* drop Jetpack's untranslated "Like this:" heading */
.sd-title {
  display: none !important;
}

.jetpack-likes-widget-wrapper {
  margin: 3rem 0 0;
}


/* --- subscribe field width --- */
.wp-block-jetpack-subscriptions__form,
.wp-block-jetpack-subscriptions form {
  width: 100%;
  max-width: 32rem;
  align-items: stretch;
}

.wp-block-jetpack-subscriptions__textfield,
.wp-block-jetpack-subscriptions p:has(input[type="email"]) {
  flex: 1 1 auto;
  min-width: 0;
}

.wp-block-jetpack-subscriptions input[type="email"] {
  width: 100% !important;
  min-width: 16rem;
  box-sizing: border-box;
}

.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-subscriptions .wp-block-button__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .wp-block-jetpack-subscriptions input[type="email"] {
    min-width: 0;
  }
}


/* --- subscribe: stretch the real flex container --- */
.wp-block-jetpack-subscriptions__form-elements {
  width: 100% !important;
  gap: 0.75rem;
}

.wp-block-jetpack-subscriptions__form-elements > p:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.wp-block-jetpack-subscriptions__form-elements > p:last-child {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.wp-block-jetpack-subscriptions input[type="email"] {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.85rem 1rem !important;
}
