/* mytime. design foundation */

:root {
  --ml-color-text: var(--wp--preset--color--text, #3d3a40);
  --ml-color-secondary: var(--wp--preset--color--secondary, #77727b);
  --ml-color-secondary-strong: #747078;
  --ml-color-background: var(--wp--preset--color--background, #faf8f3);
  --ml-color-white: var(--wp--preset--color--white, #ffffff);
  --ml-color-border: var(--wp--preset--color--border, #e6e0d9);
  --ml-color-accent: var(--wp--preset--color--accent, #5d586f);
  --ml-color-soft-accent: var(--wp--preset--color--soft-accent, #f1eef4);
  --ml-color-dusty-lavender: var(--wp--preset--color--dusty-lavender, #b9b1c8);
  --ml-color-milk-tea: var(--wp--preset--color--milk-tea, #d8c6ae);
  --ml-color-sage: var(--wp--preset--color--sage, #c9d2c7);
  --ml-color-dusty-rose: var(--wp--preset--color--dusty-rose, #d8bfc1);
  --ml-color-lamp-gold: var(--wp--preset--color--lamp-gold, #d6a75f);
  --ml-color-sky: #dce6ee;
  --ml-font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ml-space-xs: 0.5rem;
  --ml-space-sm: 0.75rem;
  --ml-space-md: 1.5rem;
  --ml-space-lg: 3rem;
  --ml-space-xl: 5rem;
  --ml-space-2xl: 7.5rem;
  --ml-content-width: 720px;
  --ml-site-width: 1200px;
  --ml-page-padding: 2rem;
}

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

html {
  background: var(--ml-color-white);
  color: var(--ml-color-text);
  font-family: var(--ml-font-sans);
  font-size: 100%;
  line-height: 1.9;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ml-color-white);
  color: var(--ml-color-text);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: inherit;
}

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

a {
  color: var(--ml-color-text);
  text-decoration-line: underline;
  text-decoration-color: var(--ml-color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ml-color-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ml-color-accent);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ml-color-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 var(--ml-space-md);
  font-size: 2.625rem;
  line-height: 1.35;
}

h2 {
  margin: var(--ml-space-xl) 0 var(--ml-space-md);
  padding-bottom: var(--ml-space-sm);
  border-bottom: 1px solid var(--ml-color-border);
  font-size: 1.75rem;
  line-height: 1.45;
}

h3 {
  margin: var(--ml-space-lg) 0 var(--ml-space-sm);
  font-size: 1.3125rem;
  line-height: 1.55;
}

h4 {
  margin: var(--ml-space-md) 0 var(--ml-space-xs);
  font-size: 1.125rem;
  line-height: 1.6;
}

p {
  margin: 0 0 1.5em;
}

strong,
b {
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 1.5em;
  padding-left: 1.6em;
}

.ml-entry-content li + li {
  margin-top: 0.35em;
}

blockquote {
  margin: var(--ml-space-lg) 0;
  padding: var(--ml-space-xs) 0 var(--ml-space-xs) var(--ml-space-md);
  border-left: 2px solid var(--ml-color-accent);
  color: var(--ml-color-secondary);
}

blockquote > :last-child {
  margin-bottom: 0;
}

figure {
  margin: var(--ml-space-lg) 0;
}

figcaption,
.wp-element-caption {
  margin-top: var(--ml-space-xs);
  color: var(--ml-color-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.wp-block-image img {
  margin-right: auto;
  margin-left: auto;
}

.wp-block-table,
.ml-entry-content > table {
  margin: var(--ml-space-lg) 0;
  overflow-x: auto;
}

.ml-entry-content > table {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.7;
}

th,
td {
  padding: 0.75em 0.9em;
  border: 1px solid var(--ml-color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ml-color-background);
  font-weight: 600;
}

hr,
.wp-block-separator {
  margin: var(--ml-space-xl) 0;
  border: 0;
  border-top: 1px solid var(--ml-color-border);
}

.ml-entry-content a,
.ml-entry-content code,
.ml-entry-content pre {
  overflow-wrap: anywhere;
  word-break: normal;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 767px) {
  :root {
    --ml-page-padding: 1.125rem;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.875rem;
    line-height: 1.4;
  }

  h2 {
    margin-top: var(--ml-space-lg);
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.0625rem;
  }

  ul,
  ol {
    padding-left: 1.4em;
  }

  blockquote {
    margin: var(--ml-space-md) 0;
    padding-left: var(--ml-space-sm);
  }

  th,
  td {
    padding: 0.65em 0.7em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
